Submission #1098904

# Submission time Handle Problem Language Result Execution time Memory
1098904 2024-10-10T10:00:18 Z ohad Boarding Passes (BOI22_passes) C++14
0 / 100
1 ms 348 KB
#include <iostream>
#include <string>
using namespace std;
typedef long long ll;

int main() {
	string a;
	cin >> a;
	ll size = a.length();
	if (size % 2 == 0)
		cout << (size / 2 * (size / 2 - 1)) / 2;
	else
	{
		cout << (size / 2 * (size / 2 - 1)) / 4 + ((size / 2 + 1) * (size / 2)) / 4;
	}
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB 1st numbers differ - expected: '100800.5000000000', found: '100800.0000000000', error = '0.0000049603'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB 1st numbers differ - expected: '1.0000000000', found: '3.0000000000', error = '2.0000000000'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB 1st numbers differ - expected: '1.0000000000', found: '3.0000000000', error = '2.0000000000'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB 1st numbers differ - expected: '100800.5000000000', found: '100800.0000000000', error = '0.0000049603'
2 Halted 0 ms 0 KB -