#include<iostream>
using namespace std;
int main() {
string s; cin >> s;
int n = s.size();
double r = 0;
double x = n * 0.25;
r += x * (x - 2);
x = (n + 1) * 0.25;
r += x * (x - 2);
cout << r << endl;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
1st numbers differ - expected: '100800.5000000000', found: '100238.0000000000', error = '0.0055803295' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
1st numbers differ - expected: '1.0000000000', found: '-1.1875000000', error = '2.1875000000' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
1st numbers differ - expected: '1.0000000000', found: '-1.1875000000', error = '2.1875000000' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
1st numbers differ - expected: '100800.5000000000', found: '100238.0000000000', error = '0.0055803295' |
2 |
Halted |
0 ms |
0 KB |
- |