问
  • 板块灌水区
  • 楼主ananzzx
  • 当前回复6
  • 已保存回复6
  • 发布时间2024/8/23 20:49
  • 上次更新2024/8/23 23:57:07
查看原帖
问
1038289
ananzzx楼主2024/8/23 20:49

为什么这个不会超时(30+ms),甚至N = 1e9也不会

#include <bits/stdc++.h>
using namespace std;
signed main(){
    const int N = 1e8;
    int k;
    for(int i = 1;i <= N;i++){
        k--;
    }
    int a,b;
    cin >> a >> b;
    write(a+b);
    return 0;
}

2024/8/23 20:49
加载中...