# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
903613 | 2024-01-11T10:14:14 Z | Tenis0206 | 가로등 (APIO19_street_lamps) | C++11 | 1 ms | 600 KB |
#include <bits/stdc++.h> using namespace std; int n,q; int main() { freopen("nr.in","r",stdin); freopen("nr.out","w",stdout); srand(time(NULL)); cin>>n>>q; cout<<n<<' '<<q<<'\n'; for(int i=1;i<=n;i++) { cout<<rand() % 2; } cout<<'\n'; for(int i=1;i<=n;i++) { int tip = rand() % 2; if(tip == 0) { cout<<"toggle "; cout<<1 + rand() % n<<'\n'; } else { cout<<"query "; int st = 1 + rand() % (n + 1); int dr = 1 + rand() % (n + 1); while(st == dr) { st = 1 + rand() % (n + 1); dr = 1 + rand() % (n + 1); } if(st > dr) { swap(st,dr); } cout<<st<<' '<<dr<<'\n'; } } return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 344 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 600 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |