Submission #545395

#TimeUsernameProblemLanguageResultExecution timeMemory
545395Trisanu_DasLabels (NOI20_labels)C++17
7 / 100
37 ms1968 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int d[n - 1]; for(int i = 0; i < n - 1; i++) cin >> d[i]; if(d[0] == 1) cout << 1 << ' ' << 2 << '\n'; else if(d[0] == -1) cout << 2 << ' ' << 1 << '\n'; else cout << -1 << '\n'; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...