Submission #223434

# Submission time Handle Problem Language Result Execution time Memory
223434 2020-04-15T09:17:06 Z dwsc Matching (COCI20_matching) C++14
5 / 110
8 ms 2688 KB
#include <bits/stdc++.h>
using namespace std;
vector<int> adj[100010];
int main(){
    int n;
    cin >> n;
    for (int i = 0; i < n; i++){
        int x,y;
        cin >> x >> y;
        adj[x].push_back(i+1);
    }
    cout << "DA\n";
    for (int i = 0; i < 100010; i++){ if (adj[i].size()) cout << adj[i][0] << " " << adj[i][1] << "\n";}
}
# Verdict Execution time Memory Grader output
1 Correct 6 ms 2688 KB Output is correct
2 Correct 8 ms 2688 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 2688 KB Output is correct
2 Correct 8 ms 2688 KB Output is correct
3 Correct 6 ms 2688 KB Output is correct
4 Correct 7 ms 2688 KB Output is correct
5 Incorrect 7 ms 2688 KB Integer parameter [name=b] equals to 0, violates the range [1, 20]
6 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 2688 KB Output is correct
2 Correct 8 ms 2688 KB Output is correct
3 Correct 6 ms 2688 KB Output is correct
4 Correct 7 ms 2688 KB Output is correct
5 Incorrect 7 ms 2688 KB Integer parameter [name=b] equals to 0, violates the range [1, 20]
6 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 2688 KB Output is correct
2 Correct 8 ms 2688 KB Output is correct
3 Correct 6 ms 2688 KB Output is correct
4 Correct 7 ms 2688 KB Output is correct
5 Incorrect 7 ms 2688 KB Integer parameter [name=b] equals to 0, violates the range [1, 20]
6 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 2688 KB Output is correct
2 Correct 8 ms 2688 KB Output is correct
3 Correct 6 ms 2688 KB Output is correct
4 Correct 7 ms 2688 KB Output is correct
5 Incorrect 7 ms 2688 KB Integer parameter [name=b] equals to 0, violates the range [1, 20]
6 Halted 0 ms 0 KB -