QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#688211#8937. Stage: AgausscrabHTensor#WA 1ms3616kbC++231.1kb2024-10-30 00:41:172024-10-30 00:41:19

Judging History

This is the latest submission verdict.

  • [2024-10-30 00:41:19]
  • Judged
  • Verdict: WA
  • Time: 1ms
  • Memory: 3616kb
  • [2024-10-30 00:41:17]
  • Submitted

answer

#include <bits/stdc++.h>
#define dd(x) cout << #x << "\n"
#define d(x) cout << #x  << ": " << x << "\n"
#define SZ(x) ((int)(x).size())
using namespace std;
#define int long long
using pii = pair<int, int>;
using vpii = vector<pii>;
using vi = vector<int>;
using vii = vector<vector<int>>;
using a3 = array<int, 3>;
using ll = long long;
const int inf = 0x3f3f3f3f3f3f3f3fLL;

// #define MULTI_TEST

void solve() {
    int k; cin >> k;
    int cnt = 0;
    
    int n = k + 2;
    vector<pair<int, int>> edg;
    for(int i = 2; i <= k + 2; i++) {
        for(int j = 1; j < i; j++) {
            edg.push_back({i, n + j});
            edg.push_back({n + i, j});
            ++cnt;
        }
    }

    cout << 2 * (k + 2) << " " << cnt << " " << 2 << "\n";
    for(int i = 1; i <= k + 2; i++) cout << 1 << " ";
    for(int i = 1; i <= k + 2; i++) cout << 2 << " ";
    cout << "\n";
    for(auto [u, v] : edg) {
        cout << u << " " << v << "\n";
    }
}

signed main() {
    ios::sync_with_stdio(false); cin.tie(0);
#ifdef MULTI_TEST
    int T; cin >> T;
#else
    int T = 1;
#endif
    while(T--) solve();
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3616kb

input:

4
arcos 2
gausr 5
scrail 3
bei 3

output:

12 15 2
1 1 1 1 1 1 2 2 2 2 2 2 
2 7
8 1
3 7
9 1
3 8
9 2
4 7
10 1
4 8
10 2
4 9
10 3
5 7
11 1
5 8
11 2
5 9
11 3
5 10
11 4
6 7
12 1
6 8
12 2
6 9
12 3
6 10
12 4
6 11
12 5

result:

wrong answer 1st lines differ - expected: 'Stage: Agausscrab', found: '12 15 2'