# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1044111 | 2024-08-05T07:26:57 Z | CyberCow | COVID tests (CEOI24_covid) | C++17 | 7000 ms | 344 KB |
#include <cassert> #include <cstdio> #include <string> #include <vector> #include <iostream> using namespace std; int N; double P; bool test_students(int g) { cout << "Q "; for (int i = 0; i < g; i++) { cout << 0; } cout << 1; for (int i = g + 1; i < N; i++) { cout << 0; } cout << endl; char c; cin >> c; if (c == 'P') return 1; return 0; } void find_positive(vector<bool> v) { cout << "A "; for (int i = 0; i < v.size(); i++) { cout << v[i] << ' '; } cout << endl; char c; cin >> c; } int main() { int T; cin >> N >> P >> T; for (int i = 0; i < T; i++) { vector<bool> answer; for (int j = 0; j < N; j++) { if (test_students(j)) { answer.push_back(1); } else { answer.push_back(0); } } } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 344 KB | Unexpected end of file - token expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 39 ms | 344 KB | Unexpected end of file - token expected |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 7041 ms | 340 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |