| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1323894 | MuhammadSaram | 홀-짝 수열 (IZhO11_oddeven) | C++20 | 0 ms | 332 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main()
{
int s=0, e=15e8,n;
cin>>n;
while (s+1<e)
{
int mid=(s+e)/2;
if (mid*(mid+1)/2>=n) e=mid;
else s=mid;
}
cout<<n*2-e<<endl;
return 0;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
