제출 #337062

#제출 시각아이디문제언어결과실행 시간메모리
337062kutbilim_one홀-짝 수열 (IZhO11_oddeven)C++14
0 / 100
1 ms364 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.0+ sqrt(8.0*n-7.0))/2.0 ); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...