QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#879409 | #9699. Loving You in My Humble Way | ucup-team139# | AC ✓ | 0ms | 3968kb | C++17 | 465b | 2025-02-02 01:23:51 | 2025-02-02 01:23:51 |
Judging History
answer
#include <cstdio>
#include <vector>
using namespace std;
struct Edge
{
int a, b, c;
};
int main()
{
vector<Edge> ans;
for (int a{}, b{}, c{}; a < 631; a++)
{
for (int i = 0; i < 21; i++)
ans.push_back({a, b + i, c + i});
c += 21;
if (c + 20 >= 631)
{
b += 21;
c = 0;
}
}
printf("%zu\n", ans.size());
for (auto [aa, bb, cc] : ans)
printf("%d %d %d\n", aa + 1, bb + 1 + 631, cc + 1 + 631 + 631);
return 0;
}
这程序好像有点Bug,我给组数据试试?
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3968kb
input:
<no-input>
output:
13251 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 2 632 1284 2 633 1285 2 634 1286 2 635 1287 2 636 1288 2 637 12...
result:
ok Correct!
Extra Test:
score: 0
Extra Test Passed