QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#527980#6983. ExamTAhmed33#30 1ms4692kbC++201.1kb2024-08-23 01:18:042024-08-23 01:18:04

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 14
Accepted

Test #1:

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

input:

2
2 1
1 2

output:

1

result:

ok single line: '1'

Test #2:

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

input:

4
2 2 3 2
2 2 1 1

output:

2

result:

ok single line: '2'

Test #3:

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

input:

7
8 1 8 4 4 2 2
3 3 4 5 3 8 3

output:

1

result:

ok single line: '1'

Test #4:

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

input:

10
1 2 1 1 1 1 2 2 2 2
1 3 3 1 1 1 2 3 3 3

output:

5

result:

ok single line: '5'

Test #5:

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

input:

10
1 1 1 3 2 3 4 2 1 4
2 3 1 4 3 3 1 4 2 4

output:

6

result:

ok single line: '6'

Test #6:

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

input:

10
10 9 8 7 6 5 4 3 2 1
4 5 7 3 3 6 10 2 9 9

output:

3

result:

ok single line: '3'

Subtask #2:

score: 0
Runtime Error

Test #7:

score: 0
Runtime Error

input:

1000
893776344 787725810 291017493 647342304 137945499 287626579 723898844 756587043 756587043 676427946 309067318 911812899 477531059 528842104 14133487 333005260 20588011 101004400 821063755 20588011 309067318 98607630 581609603 275810952 400342723 477531059 342507300 511996437 417465600 528842104...

output:


result:


Subtask #3:

score: 0
Runtime Error

Test #15:

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

input:

11
3041944 61317685 78688333 81175303 130536594 292412314 325285502 343151428 424440052 673288413 953725903
673288413 3041944 292412314 81175303 424440052 673288413 78688333 61317685 61317685 81175303 3041944

output:

3

result:

ok single line: '3'

Test #16:

score: 13
Accepted
time: 1ms
memory: 4692kb

input:

500
3668668 4325921 4509621 5944055 8575750 10759033 11078400 11246529 12143181 12548421 13391180 20345732 23537463 26347810 26479209 27810637 30271108 31518852 32395198 38637058 39168160 40222408 41153959 41349508 41740790 42603425 43947200 44478678 51967341 54776367 55167907 56662618 58196672 5898...

output:

36

result:

ok single line: '36'

Test #17:

score: 0
Runtime Error

input:

2000
63102 1484106 2564192 3036059 3961510 4063868 6332689 7533917 7815974 7912528 8388316 8427766 8537700 8733490 9030041 9529616 9585265 9745669 9886090 11132856 11588369 12535400 13080618 13082266 14035610 14368522 14847595 15408981 17015895 17106980 17161884 17345258 18302332 18507341 19166840 1...

output:


result:


Subtask #4:

score: 0
Runtime Error

Test #21:

score: 0
Runtime Error

input:

5001
800050172 780027702 124135194 387853104 977824384 320789670 21443908 977782080 529322873 249594077 502660735 275232530 66657127 693254070 715334742 931851416 21491162 761549796 391880875 711351444 507438497 638887208 163721472 144212397 276855401 39234094 357488574 127062198 920707960 77974348 ...

output:


result:


Subtask #5:

score: 16
Accepted

Dependency #1:

100%
Accepted

Test #31:

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

input:

11
957465832 86046008 585749322 392102859 828774852 957465832 305868549 284132339 284132339 392102859 86046008
957465832 284132339 305868549 284132339 614919933 828774852 614919933 828774852 828774852 392102859 451902542

output:

2

result:

ok single line: '2'

Test #32:

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

input:

40
768720049 192121352 192121352 192121352 768720049 768720049 768720049 768720049 192121352 192121352 192121352 192121352 192121352 768720049 192121352 768720049 768720049 192121352 768720049 768720049 192121352 192121352 768720049 192121352 192121352 192121352 768720049 768720049 768720049 7687200...

output:

30

result:

ok single line: '30'

Test #33:

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

input:

100
723080542 723080542 31510193 723080542 723080542 548920890 548920890 922636730 548920890 922636730 31510193 31510193 31510193 548920890 922636730 548920890 922636730 922636730 548920890 723080542 31510193 922636730 922636730 31510193 31510193 31510193 922636730 723080542 31510193 922636730 72308...

output:

52

result:

ok single line: '52'

Test #34:

score: 16
Accepted
time: 1ms
memory: 4068kb

input:

200
158075678 797263276 672708071 672708071 793712511 345945728 345945728 797263276 136816898 797263276 797263276 404679282 130731803 130731803 672708071 158075678 130731803 797263276 456646622 793712511 158075678 136816898 158075678 456646622 404679282 456646622 902143499 345945728 793712511 130731...

output:

58

result:

ok single line: '58'

Test #35:

score: 16
Accepted
time: 1ms
memory: 4084kb

input:

200
87 67 99 96 36 71 21 41 24 66 66 21 85 23 63 92 100 68 6 39 35 4 93 84 31 20 94 12 50 64 85 88 83 36 83 18 58 55 10 81 73 27 53 9 49 67 100 49 35 57 39 21 61 31 5 91 3 98 55 4 14 39 91 48 26 73 17 83 27 78 15 99 4 67 8 53 34 59 53 20 68 43 40 80 25 96 70 79 94 76 82 59 67 72 6 92 96 22 75 75 51 ...

output:

16

result:

ok single line: '16'

Test #36:

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

input:

200
791177414 387959752 438828510 239974764 95436664 584187329 973752883 306995704 306995704 438828510 57604161 143140399 603550158 584187329 239955780 208727395 520097082 801618740 498305259 791177414 700767685 673879197 673879197 143140399 256580072 673879197 256580072 142716669 291891314 13086575...

output:

9

result:

ok single line: '9'

Test #37:

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

input:

200
174644619 316841029 291545434 291545434 307994781 656305717 913284657 436473031 20588011 405780287 339281300 647342304 21690698 165867916 410660107 405780287 807696335 76201901 763025789 405780287 511996437 918381770 125175827 656305717 1816497 756587043 174809530 262236048 343525090 647342304 9...

output:

8

result:

ok single line: '8'

Test #38:

score: 16
Accepted
time: 1ms
memory: 4128kb

input:

200
199 198 197 195 193 193 191 191 190 190 189 186 183 181 181 180 180 179 178 177 176 173 172 169 166 160 159 159 159 158 156 155 155 155 154 153 153 151 150 150 149 148 147 146 145 144 135 134 132 132 130 129 128 127 126 126 126 126 125 123 123 122 121 121 120 120 119 118 118 116 115 113 112 111 ...

output:

34

result:

ok single line: '34'

Subtask #6:

score: 0
Skipped

Dependency #3:

0%