第32349题 单选题
以下Python代码的时间复杂度为多少?
def count(n):
    res = 0
    for i in range(n):
        for j in range(n):
            res += i + j
    return res
A

O(n)

B

O(n²)

C

O(logn)

D

O(nlogn)

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析