更新学习的数据结构

This commit is contained in:
2025-10-19 22:16:38 +08:00
parent a950a73c81
commit e1fcb9b565
+2 -1
View File
@@ -18,7 +18,8 @@ double duration;
void MyFunction()
{
long long sum = 0;
for (int i = 1; i <= 1000000; i++) {
for (int i = 1; i <= 1000000; i++)
{
sum += i;
}
printf("计算结果:1到1000000的和为 %lld\n", sum);