190182025-11-17 12:09:47CWMAI rizikócpp17Wrong answer 0/1002ms500 KiB
#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main()
{
    int n, m;
    cin >> n >> m;
    int t1 = n / 3;
    int t2 = (n - t1) / 2;
    int t3 = (n - t1 - t2);
    if (m > t1 + t2 + 1) {
        cout << "filippo";
    }
    else if (m == t1 + t2 + 1) {
        cout << "draw";
    }
    else {
        cout << "tommaso";
    }
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer1ms316 KiB
subtask20/30
2Wrong answer1ms500 KiB
3Wrong answer1ms316 KiB
subtask30/30
4Wrong answer1ms500 KiB
5Wrong answer1ms316 KiB
6Wrong answer1ms316 KiB
7Wrong answer1ms316 KiB
subtask40/40
8Wrong answer2ms316 KiB
9Wrong answer1ms500 KiB
10Wrong answer1ms316 KiB
11Wrong answer1ms316 KiB
12Wrong answer1ms316 KiB
13Wrong answer1ms316 KiB
14Wrong answer1ms316 KiB