97532024-03-06 13:00:45FulopMateEmezen Rt.cpp17Wrong answer 0/100150ms54752 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;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer3ms1828 KiB
subtask20/16
2Wrong answer3ms2060 KiB
3Wrong answer3ms2144 KiB
4Wrong answer3ms2332 KiB
5Wrong answer3ms2552 KiB
6Wrong answer3ms2776 KiB
7Wrong answer3ms2772 KiB
8Wrong answer3ms2784 KiB
9Wrong answer3ms3000 KiB
10Runtime error3ms3320 KiB
11Runtime error3ms3552 KiB
12Runtime error3ms4016 KiB
13Runtime error3ms3908 KiB
14Runtime error3ms3908 KiB
15Runtime error3ms3912 KiB
16Runtime error3ms4028 KiB
subtask30/18
17Wrong answer64ms14104 KiB
18Wrong answer138ms25200 KiB
19Wrong answer143ms26924 KiB
20Wrong answer4ms8912 KiB
21Wrong answer67ms19028 KiB
22Wrong answer104ms25364 KiB
23Wrong answer148ms32392 KiB
24Wrong answer143ms34520 KiB
25Wrong answer150ms36920 KiB
26Wrong answer148ms39272 KiB
subtask40/66
27Wrong answer4ms21004 KiB
28Wrong answer13ms22664 KiB
29Wrong answer32ms26224 KiB
30Wrong answer107ms37252 KiB
31Wrong answer145ms44556 KiB
32Wrong answer148ms46692 KiB
33Wrong answer148ms49048 KiB
34Wrong answer144ms51288 KiB
35Wrong answer149ms53044 KiB
36Wrong answer140ms54752 KiB
37Wrong answer4ms36256 KiB
38Wrong answer8ms37132 KiB
39Wrong answer18ms39296 KiB
40Wrong answer4ms36692 KiB
41Wrong answer4ms36748 KiB
42Runtime error3ms36672 KiB
43Runtime error3ms36580 KiB
44Runtime error3ms36680 KiB
45Runtime error3ms36652 KiB