QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#68959#3494. Symmetric PolynomialsLHAC ✓24ms7020kbPython21.7kb2022-12-22 08:12:362022-12-22 08:12:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
-5 -26 -19 59 111 26
5
-1 0 17 -9 -61 12

output:

5 1 92

result:

ok 

Test #2:

score: 0
Accepted
time: 13ms
memory: 6756kb

input:

1
1 0
3
1 0 0 0

output:

0 0 0

result:

ok 

Test #3:

score: 0
Accepted
time: 11ms
memory: 7012kb

input:

1
1 0
0
0

output:

1 0 0

result:

ok 

Test #4:

score: 0
Accepted
time: 6ms
memory: 6800kb

input:

0
279
0
-950

output:

950 279 0

result:

ok 

Test #5:

score: 0
Accepted
time: 15ms
memory: 6868kb

input:

1
224 -450
1
-893 354

output:

224 -893 0

result:

ok 

Test #6:

score: 0
Accepted
time: 5ms
memory: 7004kb

input:

1
-30 -156
2
199 -947 11

output:

199 0 45249

result:

ok 

Test #7:

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

input:

2
590 -559 90
1
806 -987

output:

0 -590 -357053

result:

ok 

Test #8:

score: 0
Accepted
time: 21ms
memory: 6924kb

input:

2
-958 -689 -320
2
848 -807 -815

output:

694032032 784059772 869336212813

result:

ok 

Test #9:

score: 0
Accepted
time: 16ms
memory: 6888kb

input:

2
537 460 615
2
830 104 -243

output:

811133270 -524793453 -572045350289

result:

ok 

Test #10:

score: 0
Accepted
time: 3ms
memory: 6864kb

input:

2
-705 155 724
2
-80 -421 -544

output:

-247840 2184090 1439502203

result:

ok 

Test #11:

score: 0
Accepted
time: 4ms
memory: 6892kb

input:

3
-365 272 -444 -798
3
649 874 -466 -581

output:

0 0 0

result:

ok 

Test #12:

score: 0
Accepted
time: 12ms
memory: 6864kb

input:

3
380 -674 458 -658
0
280

output:

243675 0 132627988

result:

ok 

Test #13:

score: 0
Accepted
time: 13ms
memory: 6960kb

input:

0
114
3
-230 552 686 369

output:

0 -25 28833

result:

ok 

Test #14:

score: 0
Accepted
time: 3ms
memory: 6808kb

input:

4
-877 886 -578 -465 -369
0
311

output:

0 0 0

result:

ok 

Test #15:

score: 0
Accepted
time: 17ms
memory: 6684kb

input:

0
-209
10
998 -562 -201 796 169 -475 123 -507 -470 -82 830

output:

0 0 0

result:

ok 

Test #16:

score: 0
Accepted
time: 18ms
memory: 6852kb

input:

10
972 58 993 -237 -873 -156 584 255 -781 -906 -819
10
-876 908 -93 -131 -777 282 -467 74 364 442 -978

output:

0 0 0

result:

ok 

Test #17:

score: 0
Accepted
time: 18ms
memory: 6752kb

input:

0
0
0
0

output:

1 0 0

result:

ok 

Test #18:

score: 0
Accepted
time: 5ms
memory: 6832kb

input:

3
-664 -148 -581 -388
3
592 -166 518 -101

output:

-83 74 -24730

result:

ok 

Test #19:

score: 0
Accepted
time: 15ms
memory: 6988kb

input:

3
-292 -440 -951 -246
3
-4 140 133 -697

output:

-73 -1 10660

result:

ok 

Test #20:

score: 0
Accepted
time: 24ms
memory: 6948kb

input:

3
128 416 -200 -906
3
64 368 300 -523

output:

2 1 960

result:

ok 

Test #21:

score: 0
Accepted
time: 6ms
memory: 6932kb

input:

3
-250 -900 545 -357
2
250 600 -890

output:

-1 0 -1875

result:

ok 

Test #22:

score: 0
Accepted
time: 13ms
memory: 6980kb

input:

3
-500 725 660 902
3
125 350 -590 922

output:

-4 1 4250

result:

ok 

Test #23:

score: 0
Accepted
time: 16ms
memory: 6968kb

input:

2
729 162 -720
3
729 243 -702 649

output:

0 1 -729

result:

ok 

Test #24:

score: 0
Accepted
time: 12ms
memory: 6908kb

input:

2
256 192 548
3
512 576 984 827

output:

0 1 -512

result:

ok 

Test #25:

score: 0
Accepted
time: 15ms
memory: 6940kb

input:

0
-1000
3
1000 -300 -970 -401

output:

0 1 500

result:

ok 

Test #26:

score: 0
Accepted
time: 14ms
memory: 6968kb

input:

3
-729 972 297 469
3
729 -972 -297 -469

output:

-1 1 1458

result:

ok 

Test #27:

score: 0
Accepted
time: 12ms
memory: 6800kb

input:

4
-7 -32 214 972 299
4
4 74 212 11 182

output:

4 7 -780

result:

ok 

Test #28:

score: 0
Accepted
time: 12ms
memory: 6952kb

input:

4
625 500 775 270 26
0
0

output:

0 -1 0

result:

ok 

Test #29:

score: 0
Accepted
time: 16ms
memory: 7004kb

input:

4
-256 -640 64 360 557
4
-256 -896 -512 696 -511

output:

-1 1 1536

result:

ok 

Test #30:

score: 0
Accepted
time: 3ms
memory: 6868kb

input:

4
-625 1000 25 -340 -541
0
-625

output:

0 1 625

result:

ok 

Test #31:

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

input:

4
625 1000 -25 -965 -959
4
625 1000 -25 285 -459

output:

1 -1 0

result:

ok 

Test #32:

score: 0
Accepted
time: 12ms
memory: 6808kb

input:

5
-1 -19 -137 -503 -932 -680
5
-2 -28 -154 -401 -394 70

output:

1 2 -30

result:

ok 

Test #33:

score: 0
Accepted
time: 6ms
memory: 6944kb

input:

5
-243 -405 -675 -495 255 -772
2
243 162 -702

output:

1 0 891

result:

ok 

Test #34:

score: 0
Accepted
time: 13ms
memory: 6912kb

input:

5
243 405 -216 -396 -390 145
5
486 810 -432 -792 -780 -925

output:

-1 -2 -1215

result:

ok 

Test #35:

score: 0
Accepted
time: 8ms
memory: 7012kb

input:

6
128 -512 800 -320 -968 496 254
6
64 64 -400 -160 316 868 617

output:

1 -2 1920

result:

ok 

Test #36:

score: 0
Accepted
time: 4ms
memory: 6844kb

input:

6
-64 64 496 928 660 436 -403
6
256 832 736 96 352 500 694

output:

4 1 1632

result:

ok 

Test #37:

score: 0
Accepted
time: 13ms
memory: 6984kb

input:

7
1 -273 3 -819 5 819 -9 -371
7
-91 -3 -273 -9 -455 9 819 633

output:

1 -91 57974

result:

ok 

Test #38:

score: 0
Accepted
time: 15ms
memory: 6904kb

input:

6
-256 768 -384 -512 880 -496 480
7
-128 448 -480 80 136 -60 766 451

output:

0 -1 832

result:

ok 

Test #39:

score: 0
Accepted
time: 23ms
memory: 6996kb

input:

8
-5 68 -316 538 30 -706 -220 424 257
8
14 -102 266 -313 137 253 -47 -922 297

output:

14 5 1105

result:

ok 

Test #40:

score: 0
Accepted
time: 13ms
memory: 7016kb

input:

9
-4 36 -134 286 -440 559 -518 -85 554 -79
9
-10 90 -335 657 -752 600 -425 353 -558 194

output:

2 5 580

result:

ok 

Test #41:

score: 0
Accepted
time: 6ms
memory: 6904kb

input:

10
609 -310 870 -434 348 -682 870 0 870 682 534
10
434 435 620 609 248 957 620 0 620 -957 -13

output:

62 -87 -34239

result:

ok