QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#428500#8771. Dihedral Groupucup-team3600#WA 6ms7868kbC++171.1kb2024-06-01 19:53:522024-06-01 19:53:52

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 3
1 2 3
1 3 2

output:

1

result:

ok single line: '1'

Test #2:

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

input:

3 1
1 2 3
1

output:

1

result:

ok single line: '1'

Test #3:

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

input:

4 2
1 2 3 4
1 3

output:

0

result:

ok single line: '0'

Test #4:

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

input:

4 4
1 2 3 4
2 3 4 1

output:

1

result:

ok single line: '1'

Test #5:

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

input:

4 4
1 2 3 4
3 2 1 4

output:

1

result:

ok single line: '1'

Test #6:

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

input:

5 3
1 3 5 4 2
2 1 3

output:

1

result:

ok single line: '1'

Test #7:

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

input:

5 4
1 3 5 4 2
2 1 5 3

output:

0

result:

ok single line: '0'

Test #8:

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

input:

1 1
1
1

output:

1

result:

ok single line: '1'

Test #9:

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

input:

50000 50000
22577 42400 21546 3302 14673 38530 22117 34658 9767 8284 18979 21312 30964 13861 9502 17302 9772 23092 18502 26861 33431 46434 42862 33662 16736 26383 42119 18487 6112 34272 40503 9340 36859 22828 35809 1442 37730 28378 12422 12305 26736 32865 691 29405 7395 24658 20995 40821 23979 15723...

output:

1

result:

ok single line: '1'

Test #10:

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

input:

50000 50000
35130 7093 5888 13405 6205 14721 28267 16125 2951 48393 3592 9734 38272 14933 44581 48795 19209 48236 43907 12756 16959 41111 5430 21055 49060 925 37384 32101 5585 34643 36209 2236 22459 22364 17276 18146 25061 49067 46552 12258 8427 26462 13673 17506 30884 48643 22278 2383 12787 8607 47...

output:

1

result:

ok single line: '1'

Test #11:

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

input:

50000 50000
11452 47769 1305 22064 3040 20136 23013 10726 33785 5837 30028 4914 47911 16748 106 3373 6501 24664 16564 33298 15686 10750 27147 30460 8673 47664 26479 5700 16691 12422 23705 24809 15591 38417 12384 5546 12014 15751 47462 7043 43259 3836 9164 33496 40840 2812 11129 22541 41309 28222 219...

output:

1

result:

ok single line: '1'

Test #12:

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

input:

50000 50000
39318 18761 41072 14961 39514 45083 42960 5383 37971 8807 34879 49057 5538 196 5401 11979 33008 2101 31411 15125 6988 14984 37653 4858 1696 33907 31532 4521 18931 36899 15799 33452 41430 6909 20829 37430 16960 16578 24459 45203 38747 35859 22493 8368 4451 22357 22771 8344 38053 1210 3999...

output:

1

result:

ok single line: '1'

Test #13:

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

input:

50000 50000
22354 8925 44766 46620 29461 29861 34125 28812 17123 27288 1807 5544 46652 40596 11730 32137 968 40681 2627 29169 5317 18657 10736 41992 9803 14611 22509 39597 12160 3499 6939 18501 11722 1234 16191 48253 45266 32765 9561 19467 40703 6444 2230 25667 13825 2409 11519 37424 32531 19582 240...

output:

1

result:

ok single line: '1'

Test #14:

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

input:

50000 50000
19141 15348 4931 30402 22085 854 42879 14859 24742 36869 45006 12955 13372 1557 16223 38574 31130 44141 37756 9938 15969 29363 4840 26784 24986 31279 32778 19907 40494 30060 21943 46922 25712 17589 41974 30109 31553 41838 18325 30978 9996 30186 27911 42513 49822 16654 22943 15892 41868 4...

output:

1

result:

ok single line: '1'

Test #15:

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

input:

50000 5511
32911 17093 8964 9015 11417 2632 4777 4287 9855 4226 25271 28347 24594 38939 28090 33526 23926 17367 625 47785 3245 33072 17330 21373 10673 26556 42245 1344 41985 18351 13400 29099 5338 23659 48106 30697 26206 44699 45360 17390 27504 40276 39113 33120 8488 3633 21944 20214 20733 19706 448...

output:

1

result:

ok single line: '1'

Test #16:

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

input:

50000 1134
40669 46022 3800 5297 15971 8925 18158 29661 48341 49404 30426 28243 40875 11894 39095 17599 25737 47557 12042 33687 4109 32568 1717 7734 18432 7885 19047 12336 41134 35261 30456 2105 8227 1028 14021 8302 47219 11098 38221 11766 13003 847 3151 238 41193 26595 13792 39300 11714 13371 3441 ...

output:

1

result:

ok single line: '1'

Test #17:

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

input:

50000 3106
24516 1094 32286 2535 48443 9593 39341 45413 26914 28780 34181 6314 31982 11286 2510 27308 9006 8444 23519 18569 35927 20556 3739 11806 35026 28508 47850 27179 6477 10106 37123 36189 21099 4091 14002 31142 43891 26930 38569 35128 24491 23148 20341 33743 28682 2665 7122 9565 13299 47105 10...

output:

1

result:

ok single line: '1'

Test #18:

score: -100
Wrong Answer
time: 2ms
memory: 7828kb

input:

50000 8839
16473 9050 37282 41733 1968 6344 22474 16298 26629 7778 22177 7608 22448 10660 39147 16316 9407 10283 11211 31515 24713 2857 39017 22806 7374 23821 45284 49160 45524 47974 1273 386 39000 45549 17457 11243 13286 6985 34745 13233 11984 27679 31010 36458 15090 47335 45956 25779 44033 26282 6...

output:

0

result:

wrong answer 1st lines differ - expected: '1', found: '0'