Submission #1044102

# Submission time Handle Problem Language Result Execution time Memory
1044102 2024-08-05T07:23:33 Z alex_2008 COVID tests (CEOI24_covid) C++14
0 / 100
3 ms 344 KB
#include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
#include <queue>
#include <stack>
typedef long long ll;
using namespace std;
const int N = 2e5 + 10;
int main() {
	int n, t;
	long double p;
	cin >> n >> t >> p;
	string ans = string(n, '0');
	for (int i = 1; i <= n; i++) {
		cout << "Q ";
		string s = string(n, '0');
		s[i - 1] = '1';
		cout << s << endl;
		char x;
		cin >> x;
		if (x == 'P') ans[i - 1] = '1';
	}
	cout << "A " << ans << endl;
	char x;
	cin >> x;
	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB translate:wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 3 ms 344 KB translate:wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 344 KB Unexpected end of file - token expected
2 Halted 0 ms 0 KB -