9753 | 2024-03-06 13:00:45 | FulopMate | Emezen Rt. | cpp17 | Wrong answer 0/100 | 150ms | 54752 KiB |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define MAX(a, b) (a) = max((a), (b))
#define MIN(a, b) (a) = min((a), (b))
#define all(a) (a).begin(), (a).end()
#define sortedpair(a, b) {min((a), (b)), max((a), (b))}
const ll MOD = 1e9+7;
void solve(){
int n, m; cin>>n>>m;
set<pair<int, int>> s;
for(int i = 0; i < m; i++){
int a, b; cin>>a>>b;
if(a>b)swap(a,b);
s.insert({a, b});
}
assert(s.size() == m);
cout<<-1<<endl;
}
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
int _t = 1;
cin >> _t;
while (_t--) {
solve();
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1828 KiB | ||||
subtask2 | 0/16 | ||||||
2 | Wrong answer | 3ms | 2060 KiB | ||||
3 | Wrong answer | 3ms | 2144 KiB | ||||
4 | Wrong answer | 3ms | 2332 KiB | ||||
5 | Wrong answer | 3ms | 2552 KiB | ||||
6 | Wrong answer | 3ms | 2776 KiB | ||||
7 | Wrong answer | 3ms | 2772 KiB | ||||
8 | Wrong answer | 3ms | 2784 KiB | ||||
9 | Wrong answer | 3ms | 3000 KiB | ||||
10 | Runtime error | 3ms | 3320 KiB | ||||
11 | Runtime error | 3ms | 3552 KiB | ||||
12 | Runtime error | 3ms | 4016 KiB | ||||
13 | Runtime error | 3ms | 3908 KiB | ||||
14 | Runtime error | 3ms | 3908 KiB | ||||
15 | Runtime error | 3ms | 3912 KiB | ||||
16 | Runtime error | 3ms | 4028 KiB | ||||
subtask3 | 0/18 | ||||||
17 | Wrong answer | 64ms | 14104 KiB | ||||
18 | Wrong answer | 138ms | 25200 KiB | ||||
19 | Wrong answer | 143ms | 26924 KiB | ||||
20 | Wrong answer | 4ms | 8912 KiB | ||||
21 | Wrong answer | 67ms | 19028 KiB | ||||
22 | Wrong answer | 104ms | 25364 KiB | ||||
23 | Wrong answer | 148ms | 32392 KiB | ||||
24 | Wrong answer | 143ms | 34520 KiB | ||||
25 | Wrong answer | 150ms | 36920 KiB | ||||
26 | Wrong answer | 148ms | 39272 KiB | ||||
subtask4 | 0/66 | ||||||
27 | Wrong answer | 4ms | 21004 KiB | ||||
28 | Wrong answer | 13ms | 22664 KiB | ||||
29 | Wrong answer | 32ms | 26224 KiB | ||||
30 | Wrong answer | 107ms | 37252 KiB | ||||
31 | Wrong answer | 145ms | 44556 KiB | ||||
32 | Wrong answer | 148ms | 46692 KiB | ||||
33 | Wrong answer | 148ms | 49048 KiB | ||||
34 | Wrong answer | 144ms | 51288 KiB | ||||
35 | Wrong answer | 149ms | 53044 KiB | ||||
36 | Wrong answer | 140ms | 54752 KiB | ||||
37 | Wrong answer | 4ms | 36256 KiB | ||||
38 | Wrong answer | 8ms | 37132 KiB | ||||
39 | Wrong answer | 18ms | 39296 KiB | ||||
40 | Wrong answer | 4ms | 36692 KiB | ||||
41 | Wrong answer | 4ms | 36748 KiB | ||||
42 | Runtime error | 3ms | 36672 KiB | ||||
43 | Runtime error | 3ms | 36580 KiB | ||||
44 | Runtime error | 3ms | 36680 KiB | ||||
45 | Runtime error | 3ms | 36652 KiB |