Submission #993718

#TimeUsernameProblemLanguageResultExecution timeMemory
993718amine_arouaBoarding Passes (BOI22_passes)C++17
0 / 100
1 ms348 KiB
#include<bits/stdc++.h> //#pragma GCC optimize("O3") //#pragma GCC optimize("unroll-loops") using namespace std; #define int long long #define pb push_back #define fore(i , n) for(int i = 0 ; i<n;i++) #define forr(i , x , y) for(int i = x ; i <= y; i++) #define forn(i , x , y) for(int i = x ; i >= y; i--) #define nl '\n' signed main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); string s; cin>>s; double n = (double)s.size(); cout<<fixed<<setprecision(5); cout<<pow(n - 1 , 2) / 8.0<<nl; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...