QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#61061#3828. László BabaiNYCU_Yamada#WA 2ms3340kbC++23462b2022-11-09 19:18:572022-11-09 19:19:00

Judging History

This is the latest submission verdict.

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-09 19:19:00]
  • Judged
  • Verdict: WA
  • Time: 2ms
  • Memory: 3340kb
  • [2022-11-09 19:18:57]
  • Submitted

answer

#include <bits/stdc++.h>
using namespace std;

#define fastIO() ios_base::sync_with_stdio(0), cin.tie(0)

void solve() {
    int m1; cin >> m1;
    for (int i = 0, u, v; i < m1; ++i) cin >> u >> v;
    int m2; cin >> m2;
    for (int i = 0, u, v; i < m2; ++i) cin >> u >> v;
    
    cout << (m1 == m2 ? "yes" : "no") << "\n";
}

int32_t main() {
    fastIO();
    
    int t = 1; // cin >> t;
    while (t--) solve();
    
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 2ms
memory: 3340kb

input:

100
1
2 3
2
1 3
1 2
3
1 2
2 3
1 3
3
1 3
1 2
3 2
1
3 2
0
2
1 2
3 2
3
3 2
1 3
2 1
1
3 2
2
3 1
3 2
0
1
3 2
0
0
1
3 2
2
2 3
3 1
0
1
2 3
2
3 2
1 3
2
3 1
3 2
3
1 3
2 1
2 3
3
3 1
2 3
2 1
3
1 2
3 2
3 1
0
2
1 3
2 3
2
2 1
3 2
0
0
2
3 2
1 3
0
2
1 3
1 2
1
1 3
0
0
2
2 3
1 2
3
2 3
3 1
1 2
1
1 2
0
2
1 2
1 3
2
2 3
...

output:

no

result:

wrong answer 2nd lines differ - expected: 'yes', found: ''