답안 #137887

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
137887 2019-07-28T13:24:02 Z zoooma13 Minerals (JOI19_minerals) C++14
6 / 100
10 ms 408 KB
#include "bits/stdc++.h"
#include "minerals.h"
using namespace std;

void Solve(int N) {
    vector <bool> taken(2*N+1);
    for(int i=1; i<=2*N; i++) if(!taken[i]){
        Query(i);
        for(int j=i+1; j<=2*N; j++) if(!taken[j]){
            int x = Query(j);
            if(x == 1){
                Answer(i ,j);
                taken[i] = taken[j] = 1;
            }
            Query(j);
        }
        Query(i);
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 2 ms 248 KB Output is correct
3 Correct 2 ms 408 KB Output is correct
4 Correct 2 ms 248 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 10 ms 356 KB Wrong Answer [2]
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 2 ms 248 KB Output is correct
3 Correct 2 ms 408 KB Output is correct
4 Correct 2 ms 248 KB Output is correct
5 Incorrect 10 ms 356 KB Wrong Answer [2]
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 2 ms 248 KB Output is correct
3 Correct 2 ms 408 KB Output is correct
4 Correct 2 ms 248 KB Output is correct
5 Incorrect 10 ms 356 KB Wrong Answer [2]
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 2 ms 248 KB Output is correct
3 Correct 2 ms 408 KB Output is correct
4 Correct 2 ms 248 KB Output is correct
5 Incorrect 10 ms 356 KB Wrong Answer [2]
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 2 ms 248 KB Output is correct
3 Correct 2 ms 408 KB Output is correct
4 Correct 2 ms 248 KB Output is correct
5 Incorrect 10 ms 356 KB Wrong Answer [2]
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 2 ms 248 KB Output is correct
3 Correct 2 ms 408 KB Output is correct
4 Correct 2 ms 248 KB Output is correct
5 Incorrect 10 ms 356 KB Wrong Answer [2]
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 2 ms 248 KB Output is correct
3 Correct 2 ms 408 KB Output is correct
4 Correct 2 ms 248 KB Output is correct
5 Incorrect 10 ms 356 KB Wrong Answer [2]
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 248 KB Output is correct
2 Correct 2 ms 248 KB Output is correct
3 Correct 2 ms 408 KB Output is correct
4 Correct 2 ms 248 KB Output is correct
5 Incorrect 10 ms 356 KB Wrong Answer [2]
6 Halted 0 ms 0 KB -