# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
714148 | 2023-03-24T03:13:40 Z | DepressedMG | Uzastopni (COCI17_uzastopni) | C++17 | 1000 ms | 300 KB |
#include<bits/stdc++.h> #define ull unsigned long long using namespace std; int main(){ ull n,m,a,b,c,i,j,x,y; cin>>n; for(i=1;i<n;i++){ x=i; b=x*x-x+2*n; c=sqrt(b); if(c*c+c==b){ cout<<i<<" "<<c<<endl; } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 300 KB | Output is correct |
2 | Correct | 1 ms | 212 KB | Output is correct |
3 | Correct | 1 ms | 212 KB | Output is correct |
4 | Correct | 1 ms | 212 KB | Output is correct |
5 | Correct | 1 ms | 212 KB | Output is correct |
6 | Correct | 6 ms | 300 KB | Output is correct |
7 | Correct | 27 ms | 300 KB | Output is correct |
8 | Correct | 265 ms | 212 KB | Output is correct |
9 | Execution timed out | 1065 ms | 212 KB | Time limit exceeded |
10 | Execution timed out | 1085 ms | 212 KB | Time limit exceeded |