제출 #823755

#제출 시각아이디문제언어결과실행 시간메모리
823755PoonYaPatBoarding Passes (BOI22_passes)C++14
5 / 100
1 ms468 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll ans,n; int main() { ios_base::sync_with_stdio(0); cin.tie(0); string s; cin>>s; n=s.size(); if (n%2==0) ans=(n/2)*((n/2)-1); else ans=(n/2)*(n/2); if (ans%2==0) cout<<ans/2; else cout<<ans/2<<".5"; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...