제출 #337060

#제출 시각아이디문제언어결과실행 시간메모리
337060kutbilim_one홀-짝 수열 (IZhO11_oddeven)C++14
0 / 100
1 ms512 KiB
/** @kutbilimone **/ #include <bits/stdc++.h> using namespace std; #define endl '\n' #define all(x) x.begin(),x.end() #define int long long signed main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; cout << 2*n - floor( (1+ sqrt(8*n-7))/2 ); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...