QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#51615#4855. Puzzle: X-Sums SudokularryzhongAC ✓113ms3668kbC++171.9kb2022-10-03 01:43:232022-10-03 01:43:24

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3548kb

input:

4
2 1 top 1
2 1 bottom 2
2 1 left 3
2 1 right 4

output:

1
34
27
3

result:

ok 4 lines

Test #2:

score: 0
Accepted
time: 2ms
memory: 3540kb

input:

4
11 19 top 1053766555
12 26 top 230781535210
14 10 right 8344647
7 30 right 70120568170

output:

565741033271081135
31719572400444316026492
112693473538824
477453505821905419941

result:

ok 4 lines

Test #3:

score: 0
Accepted
time: 1ms
memory: 3568kb

input:

1
1 1 right 1

output:

10

result:

ok single line: '10'

Test #4:

score: 0
Accepted
time: 113ms
memory: 3668kb

input:

100000
20 29 top 257095114618907
13 23 left 54481547025
12 30 left 3617852247968
9 2 top 336
29 5 top 4512541036
11 20 top 1441537922
11 22 bottom 663925222
22 6 bottom 161962542
10 10 top 623031
1 13 right 13855
29 2 right 814001609
7 21 top 258317404
12 16 right 127899460
2 12 right 2608
21 24 bot...

output:

72365878684739299349500249330
588017022058838439666
9662552090602663949581947
239776
37869457663672028144
1548057695947494022
34042524198475305980
14205938085912676
326660065713
102273529
574770226186886766
34663716399392240
27135914299638562
7972435
488424528027186861329373749
852
105967175721525
2...

result:

ok 100000 lines