Submission #17724

#TimeUsernameProblemLanguageResultExecution timeMemory
17724ElibayEnergetic turtle (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...