이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
int rand(int l, int r) {
return l + rand() % (r - l + 1);
}
int main(int argc, char* argv[]) {
srand(atoi(argv[1]));
int n = rand(1, 50), q = rand(1, 50);
cout << n << " " << q << endl;
for (int i = 1; i <= n; i++) {
cout << rand(0, 1);
}
cout << endl;
for (int i = 0; i < q; i++) {
if (rand(0, 1)) {
cout << "query ";
int a = rand(1, n);
cout << a << " " << rand(a + 1, n + 1) << "\n";
} else {
cout << "toggle " << rand(1, n) << "\n";
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |