Submission #875293

#TimeUsernameProblemLanguageResultExecution timeMemory
87529312345678Boarding Passes (BOI22_passes)C++17
0 / 100
0 ms348 KiB
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(NULL)->sync_with_stdio(false); int n; cin>>n; int k=n/2; double res=((double)(k-1)*k)/2; //cout<<res<<'\n'; if (n%2==0) cout<<res; else cout<<res+((double)((n+1)/2-1))/2; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...