# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
545383 | Trisanu_Das | Labels (NOI20_labels) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "attachments.h"
using namepsace 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';
}