QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#385718#8133. When Anton Saw This Task He Reacted With 😩ucup-team3057#TL 0ms3656kbC++179.0kb2024-04-11 00:34:092024-04-11 00:34:10

详细

Test #1:

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

input:

5 3
x 2 3
v 1 0 1
x 4 5
v 0 2 1
v 1 1 1
4 1 2 3
5 0 1 1
4 0 2 2

output:

998244351 0 2 
1 998244351 998244352 
0 0 0 

result:

ok 9 numbers

Test #2:

score: -100
Time Limit Exceeded

input:

199999 100000
x 137025 65661
v 572518668 158967010 74946561
x 129836 192657
x 141948 187810
v 574918069 328924434 141474729
x 143312 111002
x 52772 148497
v 922857701 690080961 651915759
v 656198340 28002884 129579416
v 639893144 265359784 646791226
v 796871409 411409966 598676495
v 882562617 224394...

output:

393120558 773766615 387297348 
759959566 981774500 128012497 
294611811 980011608 533642029 
404379574 745296852 53493560 
404565501 828869760 78021156 
592494858 647751304 881427733 
190018467 515243135 518180555 
628180500 509984554 257430135 
13737245 352087791 917410487 
932051309 366591227 4799...

result: