QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#141838#7002. Acyclic OrientationssdoiAC ✓704ms38324kbC++235.6kb2023-08-18 02:45:142023-08-18 02:45:15

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3988kb

input:

4
1 1 998244353
1 2 998244353
2 1 998244353
2 2 998244353

output:

Case #1: 2
Case #2: 4
Case #3: 4
Case #4: 14

result:

ok 12 tokens

Test #2:

score: 0
Accepted
time: 704ms
memory: 38324kb

input:

600
47 3 874710371
40 4 910828207
59 52 144510923
58 42 715224283
58 51 520303051
34 59 637884239
6 32 236468069
23 56 458214971
18 24 217718749
8 59 106950269
59 20 365445151
14 49 496839593
14 18 429427133
14 14 226676027
25 6 148880261
1 42 254144413
49 10 666891161
7 36 973576573
18 16 744721877...

output:

Case #1: 291411709
Case #2: 376454972
Case #3: 37369868
Case #4: 269905859
Case #5: 66573966
Case #6: 535702698
Case #7: 160121756
Case #8: 38072162
Case #9: 167581703
Case #10: 77280571
Case #11: 5223820
Case #12: 34976221
Case #13: 327316275
Case #14: 198056899
Case #15: 18491923
Case #16: 7744413...

result:

ok 1800 tokens