下列代码段的时间复杂度为( )。
int cnt=0; for(int i=0; i<n; i++){ for(int j=0; j<n; j++){ if( (i+j) % 3 == 0) cnt++; } }
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。