| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 2757 | A班-何泓霏 | 1加到多少才超过N | C++ | Compile Error | 0 | 0 MS | 0 KB | 228 | 2024-12-21 11:55:57 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int temp=0; for(int i=1;i<n;i++) { if(temp>n) { cout<<i-1;break; } else { temp+=i; } } cour<<endl; return 0; }