QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#880201#9699. Loving You in My Humble WayA_programmerWA 1ms3840kbC++17648b2025-02-02 23:24:042025-02-02 23:24:12

Judging History

This is the latest submission verdict.

  • [2025-02-02 23:24:12]
  • Judged
  • Verdict: WA
  • Time: 1ms
  • Memory: 3840kb
  • [2025-02-02 23:24:04]
  • Submitted

answer

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

typedef long long ll;
const ll mod = 1e9 + 7;

struct edge
{
    int a, b, c;
};
vector<edge> e;

void print()
{
    cout << e.size() << "\n";
    for (edge nw : e) cout << nw.a << " " << nw.b << " " << nw.c << "\n";
}

int main()
{
    ios::sync_with_stdio(false), cin.tie(0);

    int B = 631, id = 0;
    for (int j = 1; j + 23 <= B; j += 24)
        for (int k = 1; k + 23 <= B; k += 24)
        {
            id++; if (id > B) return print(), 0;
            for (int i = 0; i < 24; i++) e.emplace_back((edge){id, j + i + B, k + i + B + B});
        }
    return 0;
}

詳細信息

Test #1:

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

input:

<no-input>

output:

15144
1 632 1263
1 633 1264
1 634 1265
1 635 1266
1 636 1267
1 637 1268
1 638 1269
1 639 1270
1 640 1271
1 641 1272
1 642 1273
1 643 1274
1 644 1275
1 645 1276
1 646 1277
1 647 1278
1 648 1279
1 649 1280
1 650 1281
1 651 1282
1 652 1283
1 653 1284
1 654 1285
1 655 1286
2 632 1287
2 633 1288
2 634 12...

result:

wrong answer Invalid graph.