QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#879409#9699. Loving You in My Humble Wayucup-team139#AC ✓0ms3968kbC++17465b2025-02-02 01:23:512025-02-02 01:23:51

Judging History

This is the latest submission verdict.

  • [2025-02-02 01:23:51]
  • Judged
  • Verdict: AC
  • Time: 0ms
  • Memory: 3968kb
  • [2025-02-02 01:23:51]
  • Submitted

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