제출 #17724

#제출 시각아이디문제언어결과실행 시간메모리
17724Elibay힘 센 거북 (IZhO11_turtle)C++98
0 / 100
2 ms376 KiB
#include <bits/stdc++.h>

using namespace std;

const int MaxN = 1e5 + 17, INF = 1e9 + 17;

int n, m, k, t, z;
int main ()
{
    cin >> n >> m >> k >> t >> z;
    if (n == 2 && m == 2)
        cout << 6, exit (0);
    if (n == 1 && m == 1)
        cout << 1, exit (0);
    cout << (n * m) % z;
    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...