제출 #551077

#제출 시각아이디문제언어결과실행 시간메모리
551077Soumya1가로등 (APIO19_street_lamps)C++17
0 / 100
1 ms340 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...