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 <iostream>
#include <vector>
using namespace std;
int k;
vector<pair<int,int>> rez;
int main()
{
cin>>k;/*
int nod = 0;
int per = 0;
while(per<k)
{
if(per+nod<=k)
{
per+=nod;
rez.push_back({nod+1,nod});
++nod;
continue;
}
rez.push_back({nod+1,k-per});
break;
}
cout<<nod+1<<'\n';
for(auto it : rez)
{
cout<<it.first-1<<' '<<it.second-1<<'\n';
}
*/
cout<<k+1<<'\n';
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |