12052 | 2024-11-26 13:27:51 | TortelliniJr | Csokiosztás 2 | cpp17 | Accepted 100/100 | 1ms | 540 KiB |
#include <iostream>
using namespace std;
int main() {
int M, N, K;
cin >> M >> N >> K;
if ((M + N) % K == 0)
{
cout << "IGEN" << endl;
}
else
{
cout << "NEM" << endl;
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 1ms | 320 KiB | ||||
2 | Accepted | 1ms | 320 KiB | ||||
subtask2 | 30/30 | ||||||
3 | Accepted | 1ms | 320 KiB | ||||
4 | Accepted | 1ms | 500 KiB | ||||
5 | Accepted | 1ms | 320 KiB | ||||
6 | Accepted | 1ms | 508 KiB | ||||
7 | Accepted | 1ms | 320 KiB | ||||
8 | Accepted | 1ms | 320 KiB | ||||
9 | Accepted | 1ms | 320 KiB | ||||
10 | Accepted | 1ms | 320 KiB | ||||
11 | Accepted | 1ms | 320 KiB | ||||
12 | Accepted | 1ms | 336 KiB | ||||
13 | Accepted | 1ms | 540 KiB | ||||
14 | Accepted | 1ms | 320 KiB | ||||
subtask3 | 70/70 | ||||||
15 | Accepted | 1ms | 320 KiB | ||||
16 | Accepted | 1ms | 508 KiB | ||||
17 | Accepted | 1ms | 508 KiB | ||||
18 | Accepted | 1ms | 320 KiB | ||||
19 | Accepted | 1ms | 320 KiB | ||||
20 | Accepted | 1ms | 320 KiB | ||||
21 | Accepted | 1ms | 320 KiB | ||||
22 | Accepted | 1ms | 320 KiB | ||||
23 | Accepted | 1ms | 320 KiB | ||||
24 | Accepted | 1ms | 320 KiB | ||||
25 | Accepted | 1ms | 508 KiB | ||||
26 | Accepted | 1ms | 320 KiB |