Submission #710367

# Submission time Handle Problem Language Result Execution time Memory
710367 2023-03-15T07:45:16 Z Darren0724 Minerals (JOI19_minerals) C++17
0 / 100
5 ms 340 KB
#include "minerals.h"
#include<bits/stdc++.h>
using namespace std;
void Solve(int N) {
    vector<int> v(N*2+1,-1);
    for(int i=1;i<=N*2;i++){
        Query(i);
        for(int j=i+1;j<=N*2;j++){
            int p=Query(j);
            Query(j);
            if(p==1){
                v[i]=j;
                v[j]=i;
                break;
            }
        }
        Query(i);
    }
    for(int i=1;i<=N;i++){
        //cout<<i<<' '<<v[i]<<endl;
        if(i<v[i])Answer(i,v[i]);
    }
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Wrong Answer [6]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 340 KB Wrong Answer [2]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Wrong Answer [6]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Wrong Answer [6]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Wrong Answer [6]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Wrong Answer [6]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Wrong Answer [6]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Wrong Answer [6]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 208 KB Wrong Answer [6]
2 Halted 0 ms 0 KB -