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