/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Accepted 242ms 1.066 MiB
#3 Wrong Answer 291ms 1.559 MiB

Code

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int t;
	cin >> t;
	while (t--)
	{
		int n,m,k;
		cin >> n >> m >> k;
		int ans = n-n%2 + m-m%2 + k-k%2;
		if (n%2 + m%2 + k%2 >= 1)
			ans++;
		cout << ans << '\n';
	}
}

Information

Submit By
Type
Submission
Problem
P1195 B. Palindrome
Contest
Brain Booster #10
Language
C++17 (G++ 13.2.0)
Submit At
2025-06-13 16:50:15
Judged At
2025-06-13 16:50:15
Judged By
Score
50
Total Time
291ms
Peak Memory
1.559 MiB