Submission #209536

#TimeUsernameProblemLanguageResultExecution timeMemory
209536model_codeIsland (NOI18_island)C++14
100 / 100
681 ms2808 KiB
#include <iostream> using namespace std; int cnt[200001], N, M, u; int main(){ cin >> N >> M; for(int i = 0; i < 2 * (N + M - 1); i++){ cin >> u; if(cnt[u] > 0) cout << cnt[u] << " 1" << endl; cnt[u]++; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...