Submission #1008734

#TimeUsernameProblemLanguageResultExecution timeMemory
1008734Rolo678Labels (NOI20_labels)C++14
7 / 100
24 ms2136 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >>n; vector<int>d(n); for(int i = 1;i<n;i++) { cin >>d[i]; } if(abs(d[1]) != 1) cout<<-1<<'\n'; else if (d[1] == -1) cout<< 2 << ' '<< 1 <<'\n'; else if (d[1] == 1) cout<< 1 << ' '<< 2 <<'\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...