# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
156756 | 2019-10-07T09:54:30 Z | martinunter | Preokret (COCI18_preokret) | C++14 | 3 ms | 504 KB |
#include <iostream> using namespace std; int main () { int final_score_a = 0; int final_score_b = 0; int preokret; int score_a;//broj koseva ekipe a int sekunda_a; int ekipa_a[score_a]; int score_b; int sekunda_b; int ekipa_b[score_b]; cin >> score_a; for (int i = 0; i < score_a;i ++){ cin >> sekunda_a; if (sekunda_a <= 1440){ final_score_a++; } } cin >> score_b; for (int i = 0; i < score_b;i ++){ cin >> sekunda_b; if (sekunda_b <= 1440){ final_score_b++; } if (ekipa_a[i] > ekipa_b[i]) { preokret ++; } if (ekipa_b[i] > ekipa_a[i]) { preokret ++; } } cout << final_score_a + final_score_b<< endl; cout << preokret << endl; return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Partially correct | 2 ms | 376 KB | Output is partially correct |
2 | Partially correct | 2 ms | 376 KB | Output is partially correct |
3 | Partially correct | 2 ms | 376 KB | Output is partially correct |
4 | Partially correct | 2 ms | 504 KB | Output is partially correct |
5 | Partially correct | 2 ms | 376 KB | Output is partially correct |
6 | Partially correct | 2 ms | 376 KB | Output is partially correct |
7 | Partially correct | 3 ms | 376 KB | Output is partially correct |
8 | Partially correct | 3 ms | 376 KB | Output is partially correct |
9 | Partially correct | 3 ms | 376 KB | Output is partially correct |
10 | Partially correct | 2 ms | 376 KB | Output is partially correct |