#include<bits/stdc++.h>
using namespace std;
using ll = long long;
void solve(){
string s; cin >> s;
int n = 899;
if(n == 1){
cout << 0; return ;
}
long double a = n / 2, b = (n + 1) / 2;
cout << setprecision(10) << fixed << (a - 1.0) * a / 4.0 + (b - 1.0) * b / 4.0;
}
int main(){
ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
int testcases = 1;
//cin >> testcases;
while(testcases --){
solve();
if(testcases) cout << '\n';
#ifdef LOCAL
else cout << '\n';
cout << "___________________" << endl;
#endif
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
found '100800.5000000000', expected '100800.5000000000', error '0.0000000000' |
2 |
Incorrect |
1 ms |
212 KB |
1st numbers differ - expected: '0.0000000000', found: '100800.5000000000', error = '100800.5000000000' |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
1st numbers differ - expected: '1.0000000000', found: '100800.5000000000', error = '100799.5000000000' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
1st numbers differ - expected: '1.0000000000', found: '100800.5000000000', error = '100799.5000000000' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
found '100800.5000000000', expected '100800.5000000000', error '0.0000000000' |
2 |
Incorrect |
1 ms |
212 KB |
1st numbers differ - expected: '0.0000000000', found: '100800.5000000000', error = '100800.5000000000' |
3 |
Halted |
0 ms |
0 KB |
- |