# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
714148 | DepressedMG | Uzastopni (COCI17_uzastopni) | C++17 | 1085 ms | 300 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |