답안 #381339

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
381339 2021-03-25T06:33:28 Z BilAktauAlmansur Košnja (COCI17_kosnja) C++17
0 / 50
136 ms 632 KB
#include <bits/stdc++.h>
using namespace std;
int main () {
	int k=0;
	cin>>k;
	int n=0, m=0;
	for (int i=0; i<k; i++) {
		cin>>n>>m;
		if (n==1 || m==1) {
			cout << 0;
		}
		else {
			if (max(n, m)%2==0)  {
				cout << max(n, m);
			}
			else {
				cout << max(n, m)+1;
			}
		}
	}
		return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 364 KB Output isn't correct
2 Incorrect 1 ms 364 KB Output isn't correct
3 Incorrect 1 ms 364 KB Output isn't correct
4 Incorrect 1 ms 364 KB Output isn't correct
5 Incorrect 1 ms 364 KB Output isn't correct
6 Incorrect 92 ms 492 KB Output isn't correct
7 Incorrect 132 ms 632 KB Output isn't correct
8 Incorrect 92 ms 492 KB Output isn't correct
9 Incorrect 136 ms 620 KB Output isn't correct
10 Incorrect 90 ms 492 KB Output isn't correct