제출 #580110

#제출 시각아이디문제언어결과실행 시간메모리
580110EliasBoarding Passes (BOI22_passes)C++17
5 / 100
1 ms468 KiB
#include <bits/stdc++.h> #ifndef _DEBUG #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx") #endif using namespace std; #define int int64_t template <class T> istream &operator>>(istream &in, vector<T> &v) { for (T &x : v) in >> x; return in; } signed main() { cin.tie(0); ios_base::sync_with_stdio(false); string s; cin >> s; int n = s.size(); double passes = 0; for (int i = 0; i < n; i++) { passes += min(i / 2., (n - i - 1) / 2.); } cout << setprecision(15) << passes; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...