# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
947671 | 2024-03-16T19:40:30 Z | fasdfhasjfaksdfjhalskdjhf | Football (info1cup20_football) | C++14 | 175 ms | 2156 KB |
#include <bits/stdc++.h> #include <functional> #include <queue> using namespace std; int main() { int T; cin >> T; while(T--){ int N, K; cin >> N >> K; priority_queue<int> pq; for(int i = 0; i < N; i++){ int x; cin >> x; pq.push(x); } bool turn = 0; while(!pq.empty()){ int t = pq.top(); pq.pop(); turn = turn ^ 1; if(t <= K){ K = t; } else{ int r = t % K; if((t / K) % 2 == 0) turn = 0; else turn = 1; pq.push(t % K); } } cout << turn; } }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 45 ms | 1380 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 30 ms | 600 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 148 ms | 1144 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 175 ms | 2156 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 41 ms | 1380 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 43 ms | 1644 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 45 ms | 1380 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |