QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#288352#3108. Elementary Mathlmq26052003WA 4ms4344kbC++202.7kb2023-12-22 15:43:182023-12-22 15:43:18

详细

Test #1:

score: 100
Accepted
time: 4ms
memory: 4344kb

input:

2500
1336 1
1716 1
1304 1
1874 1
1154 1
1389 1
1135 1
26 1
2275 1
2078 1
961 1
382 1
901 1
824 1
1382 1
493 1
303 1
2459 1
134 1
1575 1
1175 1
2474 1
663 1
1500 1
1128 1
1632 1
1310 1
1639 1
1636 1
472 1
1470 1
789 1
227 1
2325 1
1468 1
1672 1
1739 1
1030 1
401 1
1516 1
1012 1
2229 1
1565 1
873 1
60...

output:

1336 + 1 = 1337
1716 + 1 = 1717
1304 + 1 = 1305
1874 + 1 = 1875
1154 + 1 = 1155
1389 + 1 = 1390
1135 + 1 = 1136
26 - 1 = 25
2275 + 1 = 2276
2078 + 1 = 2079
961 + 1 = 962
382 - 1 = 381
901 + 1 = 902
824 + 1 = 825
1382 + 1 = 1383
493 + 1 = 494
303 + 1 = 304
2459 + 1 = 2460
134 - 1 = 133
1575 + 1 = 157...

result:

ok correct

Test #2:

score: 0
Accepted
time: 0ms
memory: 4144kb

input:

2500
944 1
2006 1
896 1
2491 1
1115 1
1731 1
289 1
869 1
2412 1
2132 1
1469 1
605 1
1706 1
1998 1
2374 1
2115 1
120 1
1640 1
2243 1
111 1
86 1
1215 1
2472 1
2411 1
1860 1
374 1
2149 1
1112 1
1675 1
2270 1
1717 1
1508 1
800 1
715 1
479 1
919 1
212 1
1651 1
187 1
705 1
1278 1
1116 1
2141 1
1606 1
2139...

output:

impossible

result:

ok correct

Test #3:

score: 0
Accepted
time: 0ms
memory: 3784kb

input:

1
1337 1337

output:

1337 - 1337 = 0

result:

ok correct

Test #4:

score: 0
Accepted
time: 0ms
memory: 3780kb

input:

5
1000000 1000000
1000000 1000000
1000000 1000000
-1000000 1000000
-1000000 1000000

output:

1000000 - 1000000 = 0
1000000 + 1000000 = 2000000
1000000 * 1000000 = 1000000000000
-1000000 - 1000000 = -2000000
-1000000 * 1000000 = -1000000000000

result:

ok correct

Test #5:

score: -100
Wrong Answer
time: 0ms
memory: 3544kb

input:

7
-4 0
-1 -3
-1 -3
-1 -3
10 0
-1 11
-1 11

output:

-4 * 0 = 0
-1 + -3 = -4
-1 * -3 = 3
-1 - -3 = 2
10 + 0 = 10
10 - 0 = 10
-1 - 11 = -12
-1 * 11 = -11

result:

wrong answer First number in equation 6 is 10 but must be -1