QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#295845 | #1418. Mountain Rescue Team | 17 | 100 ✓ | 8ms | 3960kb | C++20 | 700b | 2024-01-01 12:40:34 | 2024-01-01 12:40:34 |
Judging History
answer
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
int x;
void calc(
int pr, int pc,
int a, int b, int c, int d,
int dr, int dc){
while(a <= pr && pr <= b && c <= pc && pc <= d){
int t = Measure(pr, pc);
cerr << pr << " " << pc << endl;
if(t > x){
pr += dr;
}else if(t < x){
pc += dc;
}else{
Pinpoint(pr, pc);
return;
}
}
}
void Rescue(int R, int C, int MR, int MC, int X){
x = X;
calc(MR, 1, 1, MR, 1, MC, -1, 1);
calc(MR, C, 1, MR, MC, C, -1, -1);
calc(MR, 1, MR, R, 1, MC, 1, 1);
calc(MR, C, MR, R, MC, C, 1, -1);
}
详细
Subtask #1:
score: 20
Accepted
Test #1:
score: 20
Accepted
time: 1ms
memory: 3528kb
input:
1 1 1 1 1 1
output:
Accepted
Test #2:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
2 2 2 2 1 1 2 3 4
output:
Accepted
Test #3:
score: 0
Accepted
time: 0ms
memory: 3504kb
input:
2 2 2 2 2 1 2 3 4
output:
Accepted
Test #4:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
2 2 2 2 3 1 2 3 4
output:
Accepted
Test #5:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
2 2 2 2 4 1 2 3 4
output:
Accepted
Test #6:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
2 2 2 2 1 1 3 2 4
output:
Accepted
Test #7:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
2 2 2 2 3 1 3 2 4
output:
Accepted
Test #8:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
2 2 2 2 2 1 3 2 4
output:
Accepted
Test #9:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
2 2 2 2 4 1 3 2 4
output:
Accepted
Test #10:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
2 2 2 1 2 2 1 4 3
output:
Accepted
Test #11:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
2 2 2 1 1 2 1 4 3
output:
Accepted
Test #12:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
2 2 2 1 4 2 1 4 3
output:
Accepted
Test #13:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
2 2 2 1 3 2 1 4 3
output:
Accepted
Test #14:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
2 2 1 2 2 2 4 1 3
output:
Accepted
Test #15:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
2 2 1 2 4 2 4 1 3
output:
Accepted
Test #16:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
2 2 1 2 1 2 4 1 3
output:
Accepted
Test #17:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
2 2 1 2 3 2 4 1 3
output:
Accepted
Test #18:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
2 2 2 1 3 3 1 4 2
output:
Accepted
Test #19:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
2 2 2 1 1 3 1 4 2
output:
Accepted
Test #20:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
2 2 2 1 4 3 1 4 2
output:
Accepted
Test #21:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
2 2 2 1 2 3 1 4 2
output:
Accepted
Test #22:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
2 2 1 2 3 3 4 1 2
output:
Accepted
Test #23:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
2 2 1 2 4 3 4 1 2
output:
Accepted
Test #24:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
2 2 1 2 1 3 4 1 2
output:
Accepted
Test #25:
score: 0
Accepted
time: 0ms
memory: 3508kb
input:
2 2 1 2 2 3 4 1 2
output:
Accepted
Test #26:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
2 2 1 1 4 4 2 3 1
output:
Accepted
Test #27:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
2 2 1 1 2 4 2 3 1
output:
Accepted
Test #28:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
2 2 1 1 3 4 2 3 1
output:
Accepted
Test #29:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
2 2 1 1 1 4 2 3 1
output:
Accepted
Test #30:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
2 2 1 1 4 4 3 2 1
output:
Accepted
Test #31:
score: 0
Accepted
time: 1ms
memory: 3512kb
input:
2 2 1 1 3 4 3 2 1
output:
Accepted
Test #32:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
2 2 1 1 2 4 3 2 1
output:
Accepted
Test #33:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
2 2 1 1 1 4 3 2 1
output:
Accepted
Test #34:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
2 3 2 3 1 1 2 3 4 5 6
output:
Accepted
Test #35:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
2 3 2 3 4 1 2 4 3 5 6
output:
Accepted
Test #36:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
2 3 2 3 6 1 2 5 3 4 6
output:
Accepted
Test #37:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
2 3 2 2 5 1 3 2 4 6 5
output:
Accepted
Test #38:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
2 3 2 2 2 1 3 2 5 6 4
output:
Accepted
Test #39:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
2 3 2 3 5 1 3 4 2 5 6
output:
Accepted
Test #40:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
2 3 2 3 1 1 3 5 2 4 6
output:
Accepted
Test #41:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
2 3 2 2 2 1 4 2 3 6 5
output:
Accepted
Test #42:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
2 3 2 2 5 1 4 2 5 6 3
output:
Accepted
Test #43:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
2 3 2 2 5 1 4 3 2 6 5
output:
Accepted
Test #44:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
2 3 2 2 1 1 5 2 3 6 4
output:
Accepted
Test #45:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
2 3 2 2 2 1 5 2 4 6 3
output:
Accepted
Test #46:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
2 3 2 2 2 1 5 3 2 6 4
output:
Accepted
Test #47:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
2 3 2 2 6 2 3 1 4 6 5
output:
Accepted
Test #48:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
2 3 2 2 4 2 3 1 5 6 4
output:
Accepted
Test #49:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
2 3 2 2 6 2 4 1 3 6 5
output:
Accepted
Test #50:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
2 3 2 2 4 2 4 1 5 6 3
output:
Accepted
Test #51:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
2 3 1 3 1 2 4 6 1 3 5
output:
Accepted
Test #52:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
2 3 2 2 3 2 5 1 3 6 4
output:
Accepted
Test #53:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2 3 2 2 4 2 5 1 4 6 3
output:
Accepted
Test #54:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
2 3 1 3 2 2 5 6 1 3 4
output:
Accepted
Test #55:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
2 3 1 2 6 2 6 4 1 5 3
output:
Accepted
Test #56:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
2 3 1 2 3 2 6 5 1 4 3
output:
Accepted
Test #57:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
2 3 2 1 3 3 2 1 6 5 4
output:
Accepted
Test #58:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
2 3 2 2 1 3 4 1 5 6 2
output:
Accepted
Test #59:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
2 3 1 3 1 3 4 6 1 2 5
output:
Accepted
Test #60:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
2 3 2 2 4 3 5 1 4 6 2
output:
Accepted
Test #61:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
2 3 1 3 4 3 5 6 1 2 4
output:
Accepted
Test #62:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2 3 1 2 2 3 6 4 1 5 2
output:
Accepted
Test #63:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
2 3 1 2 4 3 6 4 2 5 1
output:
Accepted
Test #64:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
2 3 1 2 5 3 6 5 1 4 2
output:
Accepted
Test #65:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
2 3 1 2 6 3 6 5 2 4 1
output:
Accepted
Test #66:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
2 3 2 1 1 4 2 1 6 5 3
output:
Accepted
Test #67:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
2 3 2 1 4 4 3 1 6 5 2
output:
Accepted
Test #68:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
2 3 1 3 1 4 5 6 1 2 3
output:
Accepted
Test #69:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
2 3 1 2 6 4 6 2 3 5 1
output:
Accepted
Test #70:
score: 0
Accepted
time: 1ms
memory: 3560kb
input:
2 3 1 2 5 4 6 3 1 5 2
output:
Accepted
Test #71:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
2 3 1 2 1 4 6 3 2 5 1
output:
Accepted
Test #72:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
2 3 1 2 2 4 6 5 1 3 2
output:
Accepted
Test #73:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
2 3 1 2 2 4 6 5 2 3 1
output:
Accepted
Test #74:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
2 3 2 1 3 5 2 1 6 4 3
output:
Accepted
Test #75:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
2 3 2 1 1 5 3 1 6 4 2
output:
Accepted
Test #76:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
2 3 1 2 2 5 6 2 3 4 1
output:
Accepted
Test #77:
score: 0
Accepted
time: 0ms
memory: 3500kb
input:
2 3 1 2 3 5 6 3 1 4 2
output:
Accepted
Test #78:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
2 3 1 2 1 5 6 3 2 4 1
output:
Accepted
Test #79:
score: 0
Accepted
time: 1ms
memory: 3804kb
input:
2 3 1 2 3 5 6 4 1 3 2
output:
Accepted
Test #80:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
2 3 1 2 1 5 6 4 2 3 1
output:
Accepted
Test #81:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
2 3 1 1 5 6 4 2 5 3 1
output:
Accepted
Test #82:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
2 3 1 1 2 6 4 3 5 2 1
output:
Accepted
Test #83:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
2 3 1 1 6 6 5 2 4 3 1
output:
Accepted
Test #84:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
2 3 1 1 3 6 5 3 4 2 1
output:
Accepted
Test #85:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
2 3 1 1 1 6 5 4 3 2 1
output:
Accepted
Test #86:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
1 3 1 3 1 1 2 3
output:
Accepted
Test #87:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
1 3 1 3 2 1 2 3
output:
Accepted
Test #88:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
1 3 1 3 3 1 2 3
output:
Accepted
Test #89:
score: 0
Accepted
time: 1ms
memory: 3752kb
input:
1 3 1 2 1 1 3 2
output:
Accepted
Test #90:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
1 3 1 2 3 1 3 2
output:
Accepted
Test #91:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
1 3 1 2 2 1 3 2
output:
Accepted
Test #92:
score: 0
Accepted
time: 0ms
memory: 3568kb
input:
1 3 1 2 2 2 3 1
output:
Accepted
Test #93:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
1 3 1 2 3 2 3 1
output:
Accepted
Test #94:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
1 3 1 2 1 2 3 1
output:
Accepted
Test #95:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
1 3 1 1 3 3 2 1
output:
Accepted
Test #96:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
1 3 1 1 2 3 2 1
output:
Accepted
Test #97:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
1 3 1 1 1 3 2 1
output:
Accepted
Test #98:
score: 0
Accepted
time: 2ms
memory: 3720kb
input:
50 50 25 25 951985666 44544131 91526867 92591638 92602827 92850682 94092196 94130437 94362739 95149431 95201023 95299737 95530146 95703930 95830638 96161652 96177425 96283355 96288537 105014073 105460298 105598741 105699224 106604830 107427962 173165535 108162651 103558891 103356567 101280031 534453...
output:
Accepted
Test #99:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
50 50 30 12 239615691 198970964 199588589 199827654 200750902 219606923 219768101 222958140 223147594 223617302 223840190 224107231 245397142 222507248 222238595 222148187 221502142 221355250 219019842 218910785 218657961 218456225 217727973 216183279 215567159 215528232 214995079 214744415 21399096...
output:
Accepted
Test #100:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
50 50 41 13 21803182 21803182 22640351 22822628 22842035 22894975 23150927 23421190 23742395 23950017 24530562 25184421 25554044 45850484 25366183 18819607 18078058 17557430 17211437 15920791 15757714 15518704 14686158 14175620 13414990 10725176 10590825 10305600 10052365 9972543 9859843 7873899 785...
output:
Accepted
Test #101:
score: 0
Accepted
time: 1ms
memory: 3592kb
input:
50 50 20 8 155056 574571250 574961349 575153304 575306256 575577263 576237809 582465605 639397201 604785755 604146421 604142642 603393114 594955832 594879019 594155040 593760771 593512097 592047416 591879184 572604250 571653755 571388761 571051562 568870211 568487436 567614176 559687456 533016609 51...
output:
Accepted
Test #102:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
50 50 45 25 999935938 7609752 7625163 7631120 7878829 7951071 8115401 8131117 8497608 9039215 9224294 9545277 9732654 9998969 10078344 10290169 10828976 10938478 11412418 11585381 11963084 13205216 14002190 14052095 14534900 34083989 14250584 13979860 13554720 13449661 8746380 7361264 6164259 577670...
output:
Accepted
Test #103:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
50 50 31 38 999951647 872078 18973042 43219086 63568679 88731838 112115467 131240645 154128740 154176986 154266884 154365830 154417339 154883906 155740428 156315677 156333038 156737527 161178571 162439790 162741773 163220742 163239731 164028924 164407541 164780430 164955926 165024878 165659528 16624...
output:
Accepted
Test #104:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
50 50 7 44 64599154 21642435 38271797 112724551 144785354 159618984 191818396 231314431 300812849 329090530 370154405 403175303 426954055 452992650 463720673 509222750 542006366 566038003 594205567 597363505 623893190 656051812 678631090 689778812 715870784 750079406 755618380 788154928 803575753 81...
output:
Accepted
Test #105:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
50 50 41 22 172222921 7382853 7503025 7610120 7789954 7836682 8853403 8892346 9096363 9436411 9688423 10032917 10184925 10366779 11027720 11129919 11529605 12148261 12306474 12644449 13111403 13652119 41353415 15004614 14239747 14050527 13827966 13690870 7064271 6198168 6063250 6005901 5456624 54186...
output:
Accepted
Test #106:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
50 50 31 2 630623201 361829280 418097118 386181026 385682843 385592387 382603632 382171803 377375746 377251507 377013308 376948433 374017779 373782784 373526744 373467935 373337812 373034238 372709329 372218110 372104991 371882340 371479168 371194683 370939760 370846939 370736406 370524379 370089327...
output:
Accepted
Test #107:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
50 50 27 19 945960322 107983758 108369608 108906082 119505890 120782483 121591595 121804196 122041643 122060711 122411601 122449151 122468080 123218730 134130675 134994241 135156033 135156974 135399433 164900365 136678432 136441239 135788663 134927943 126645805 126479405 125562085 125092136 12490003...
output:
Accepted
Test #108:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
50 50 1 1 74151489 999609053 999427876 998174897 996657364 995097130 991506340 986553050 981950004 978453000 969110126 961168236 955958045 947768897 935538728 929010432 920319907 905125983 892462966 871901666 858585571 841874604 825222409 813681977 800074444 782572018 763530096 740689357 720553313 6...
output:
Accepted
Test #109:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
50 50 1 1 817076 999442754 998385728 996598818 995234042 994701346 992159867 988458314 986293841 980523802 974034681 963827720 955576001 946670476 939209020 927529855 922573764 912092988 897437654 884939017 869090147 851776325 837146237 825917123 807395100 795504941 781189629 756917817 735408790 707...
output:
Accepted
Test #110:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
50 50 50 50 37137055 356142 9286596 10406533 10677699 10817578 10886601 11296437 11370283 12867319 13896530 26071652 26317350 26485534 26825632 26857116 27783648 27889829 28357026 28499822 28573363 29616393 29717810 29824731 30602099 31315907 31334806 31710745 31739570 32004671 32015471 32261751 322...
output:
Accepted
Test #111:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
50 50 50 50 244717 244717 11852143 12249478 12310754 12699277 13098057 13598275 13875402 14320613 14337307 14502515 15158325 15436689 15953636 16060414 16123294 16401909 16696489 16702362 16950809 17235853 17309680 17350958 17578858 17749291 17758160 17806002 18599588 18852895 19090822 20496916 2063...
output:
Accepted
Test #112:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
50 50 1 50 108125183 69545237 108178399 135974614 178621204 213615496 256605544 294248678 332222572 363128778 397516484 430598455 460285707 491818514 513661337 541886025 567248989 590130647 615431522 641951026 664353983 683813118 695742893 725361065 742929129 761378385 778452808 795267779 815140137 ...
output:
Accepted
Test #113:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
50 50 1 50 317894 76528013 115626424 163743895 197181898 231252223 267928982 293612154 328354634 357473243 389807050 416942810 449206178 472829758 501789299 529184297 557130006 588238557 616712855 639287098 664928627 683865638 706204115 731018297 748330468 761888986 786292411 802648740 825656126 842...
output:
Accepted
Test #114:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
50 50 50 1 39569954 82407849 41648402 41261452 40696045 40175766 40071400 25042733 24504306 24480937 24045745 24019817 23805132 23193581 23062925 23011469 22560275 21950200 20860459 20581553 20204690 20190381 19304461 19280530 19197119 19111563 18668422 18304735 18141972 16746523 16430448 15190511 1...
output:
Accepted
Test #115:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
50 50 50 1 750911 72838504 36190804 35399778 35179334 34960854 34695247 34420165 34002616 33749492 33170131 33117502 32823566 32188298 31594526 31378396 31018884 30919527 29453381 28953382 28115822 28066205 28017839 27748135 27302823 27012095 26799236 26773136 26324614 26175546 26006100 24462825 244...
output:
Accepted
Test #116:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
50 50 25 50 980382992 448354 20407125 50410541 67944688 84480177 99313247 127478567 153156382 166652223 182095890 196234273 222209995 242705960 262377812 283596302 292448983 315829192 333572488 353189446 373546898 396345831 423087476 441314861 461450129 503097940 513142970 532151880 532713643 532870...
output:
Accepted
Test #117:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
50 50 50 25 59755862 14700979 15102364 15219537 15826552 15877599 16498063 16930197 16999885 17106399 17237536 18251611 18787663 18961417 19505817 19620064 19718852 19850365 19886838 20320484 20758804 20997660 21529015 22665984 22967881 44674241 14361370 14322890 13005570 12888155 12707974 12485436 ...
output:
Accepted
Test #118:
score: 0
Accepted
time: 1ms
memory: 3512kb
input:
1 50 1 50 42230506 42230506 55128319 65340093 114610664 138718450 207917151 210893593 211240113 244908523 315789147 348049618 361866095 371885953 381401083 409275860 471625499 487059354 525539376 531040079 561897527 562985720 571298388 586468518 624329625 647832840 653967292 693837485 702892895 7068...
output:
Accepted
Test #119:
score: 0
Accepted
time: 1ms
memory: 3472kb
input:
1 50 1 50 634567935 46849593 83402330 104306494 104442532 134704802 167543801 179142389 181180418 193426703 206285405 215352586 219797271 237732831 278480881 304666790 319991661 327860511 367015786 409558977 477702191 489989808 499028964 525648688 534717581 538381438 540678733 546056295 625558513 63...
output:
Accepted
Test #120:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
1 50 1 50 996100886 16967584 48140976 49006030 73147388 88059446 98578200 123657548 135664971 141633406 156384551 186136461 192857556 212349827 243288827 262833403 299180607 335055436 337354563 339522833 367315355 419001546 433295152 434856476 435561019 445467909 476516076 477821810 495829026 504587...
output:
Accepted
Test #121:
score: 0
Accepted
time: 1ms
memory: 3592kb
input:
50 1 50 1 55532192 55532192 55545058 74706951 100598458 112793505 123409428 135940917 142181486 144257282 158230135 163835464 170988781 182752857 231160118 235188793 259304035 273898675 289930031 292035680 353373298 388237461 400983392 489538950 510484858 559464608 561492448 574926929 584256420 5871...
output:
Accepted
Test #122:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
50 1 50 1 547797520 38254633 55250015 90801115 106029819 118034479 137684564 144427938 151634820 157671696 197258273 224232366 253829171 291284023 325788722 401794871 402158196 409183592 448409589 460594881 462250111 467896768 476895906 486639157 547797520 551441653 598626180 607464278 621220282 625...
output:
Accepted
Test #123:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
50 1 50 1 971336438 37723731 72649198 73422563 74237493 120508538 125128444 129284518 147800751 188125486 195389522 224848948 228087661 257968521 258503562 293879503 323339895 332907443 360910812 374830909 376121080 382421477 407912357 415219479 467993306 469288649 469472630 501184015 508183757 5311...
output:
Accepted
Test #124:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
50 50 50 50 900002451 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 900000050 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 9...
output:
Accepted
Test #125:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
50 50 50 1 900002451 2402 2353 2304 2255 2206 2157 2108 2059 2010 1961 1912 1863 1814 1765 1716 1667 1618 1569 1520 1471 1422 1373 1324 1275 1226 1177 1128 1079 1030 981 932 883 834 785 736 687 638 589 540 491 442 393 344 295 246 197 148 99 50 1 2403 2354 2305 2256 2207 2158 2109 2060 2011 1962 1913...
output:
Accepted
Test #126:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
50 50 1 1 900002451 900002451 2450 2449 2448 2447 2446 2445 2444 2443 2442 2441 2440 2439 2438 2437 2436 2435 2434 2433 2432 2431 2430 2429 2428 2427 2426 2425 2424 2423 2422 2421 2420 2419 2418 2417 2416 2415 2414 2413 2412 2411 2410 2409 2408 2407 2406 2405 2404 2403 2402 900002402 2401 2400 2399 ...
output:
Accepted
Test #127:
score: 0
Accepted
time: 2ms
memory: 3608kb
input:
50 50 1 50 900002451 900000050 900000099 900000148 900000197 900000246 900000295 900000344 900000393 900000442 900000491 900000540 900000589 900000638 900000687 900000736 900000785 900000834 900000883 900000932 900000981 900001030 900001079 900001128 900001177 900001226 900001275 900001324 900001373...
output:
Accepted
Test #128:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
14 16 13 5 345853273 3628141 12987529 61846219 62180055 165524100 58701774 56602834 53710058 47073748 46286302 40741136 39427814 36396469 35012453 19529557 16459918 100768216 104749076 164286853 171061023 261468026 166647989 165848242 164051130 164023950 163007820 97948018 94446908 91054606 82235273...
output:
Accepted
Test #129:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
31 27 26 11 554641252 19063221 19120586 19568537 21030198 21636207 22589199 24865397 24945108 25564705 28355218 63732943 28211215 26207194 18032208 12936366 10554038 10483550 10350552 9973139 7597794 7039231 6604357 6166135 1983601 1728550 1253528 877170 29925984 32936166 33470030 33931916 39245734 ...
output:
Accepted
Test #130:
score: 0
Accepted
time: 1ms
memory: 3592kb
input:
37 14 36 1 741333356 50759686 24205756 22610840 18859105 15624795 15048908 14214625 10669503 9330072 8997267 4976766 3947614 3687194 2618947 79547289 48989348 48112399 46077386 42495556 40086483 39819037 38841410 38456938 35640643 32993285 32920840 31792366 29159674 92446040 79497769 76779990 732809...
output:
Accepted
Test #131:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
10 45 2 31 964712464 8373703 45751341 59690081 94530354 96295857 124592102 151073179 178776885 205312626 209753843 245242619 246856112 276948252 296374358 321367395 335635253 373233286 384829307 437743845 510649443 558894339 584123198 684101161 736734384 810972602 847920806 907712786 946709888 94935...
output:
Accepted
Test #132:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
39 10 16 7 222928891 166160929 167032976 179875629 182183000 182327051 182915098 216498871 187008012 182402496 177716093 189377451 195161061 207694287 215888765 225762522 227267388 305646042 205844933 198735859 195321018 240758163 243834285 244271040 248238361 251818823 263887882 344123985 277396860...
output:
Accepted
Test #133:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
34 33 7 18 948996911 314004589 356701067 430461981 484986840 549406445 596414770 652359925 683068717 760651060 776327613 814145065 855279539 855539907 856267212 858666259 859462071 861505386 915305666 878249494 876595739 875685277 875025694 874187895 850022325 813448168 802302498 749690216 714209766...
output:
Accepted
Test #134:
score: 0
Accepted
time: 1ms
memory: 3812kb
input:
13 45 2 14 690151044 440799717 467768837 569473340 635606448 727713491 781546772 800791772 878063314 901224797 925948232 943787126 979068334 985673317 994625481 991560527 985009155 957643562 911493611 882417189 852520873 811350936 740646199 719556804 651487734 589892186 451927587 451556884 406586458...
output:
Accepted
Test #135:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
4 35 2 28 586502144 24444597 31797514 34267675 73423881 119351228 129964317 136502715 207570622 228847409 252872963 291202987 302639025 349527385 398049017 401306911 456200123 460894160 491450320 501266711 521657522 561742686 622887530 696283189 815078424 836100095 943850894 944926691 984792955 9830...
output:
Accepted
Test #136:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
50 28 1 9 467618621 919637458 947485656 953085057 973747949 985709787 990219147 997182325 999824835 999832851 998351652 997985775 991389259 984931775 976905739 962915131 947320444 926502885 910498293 879483658 861763994 835637447 811946118 786246788 758993477 728233131 702302796 670176101 639940846 ...
output:
Accepted
Test #137:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
7 19 7 4 185240372 515281702 554209351 555886458 648504228 539746659 536350648 529841771 506822316 494397029 474824882 430711443 361535049 312466772 243647072 205627923 181335144 139496429 82870032 3210424 573920027 627232626 671675454 765914306 674091255 613559772 612973225 600992842 593339544 4841...
output:
Accepted
Subtask #2:
score: 80
Accepted
Dependency #1:
100%
Accepted
Test #138:
score: 80
Accepted
time: 6ms
memory: 3956kb
input:
200 200 115 96 972862550 23298 51506 84932 95921 130970 131061 142211 152623 175006 195115 218510 245329 272564 276739 290672 304467 312857 351570 351740 351890 365406 388503 396342 424456 439419 442240 456166 459441 462456 483704 488390 497136 501434 527250 527830 528924 533204 536070 541198 604753...
output:
Accepted
Test #139:
score: 0
Accepted
time: 4ms
memory: 3772kb
input:
200 200 144 137 420657220 27045 120184 121383 124646 138251 159026 198518 259909 283763 284580 304365 320988 387264 396721 410512 412931 505188 510201 524245 529370 570124 592164 595673 607770 619721 622468 645567 681373 695138 723606 733323 777575 795251 796618 807277 852652 866858 894818 914473 98...
output:
Accepted
Test #140:
score: 0
Accepted
time: 2ms
memory: 3772kb
input:
200 200 182 92 880614098 570211 576393 636833 661116 662654 695012 696753 717286 762629 833323 861686 874063 903466 908548 995838 1024816 1031161 1038443 1052771 1054182 1085287 1097965 1104517 1122167 1157734 1183964 1184969 1199259 1221234 1221357 1228972 1255055 1255951 1280308 1292186 1293857 12...
output:
Accepted
Test #141:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
200 200 148 54 853209734 8884 10810 41186 41394 51714 82523 99434 100741 106780 154930 166715 181075 186515 205259 211877 277904 283202 310022 352988 356824 368630 381707 450795 470824 480842 537636 564681 579179 586958 610197 616454 620635 637821 640626 660902 736590 781177 793960 855714 885220 928...
output:
Accepted
Test #142:
score: 0
Accepted
time: 6ms
memory: 3776kb
input:
200 200 23 93 73770628 468755528 480050508 493327566 502010718 510386611 521759852 537811160 546662966 554983411 566025938 571449984 586139452 592327715 599019795 612402038 618222663 622252747 634496181 645003333 647629914 659432426 668888432 678782301 684930393 693943023 702424522 707901866 7134477...
output:
Accepted
Test #143:
score: 0
Accepted
time: 3ms
memory: 3908kb
input:
200 200 22 150 965962915 152139695 157631833 168919796 178545607 186948203 194293073 202880331 208469896 221140288 227176212 238109516 246386164 253295043 263270751 272268989 279104837 285161456 294992058 301478636 311362174 316210483 324849375 337045607 345319979 352703057 357861914 366614736 37432...
output:
Accepted
Test #144:
score: 0
Accepted
time: 3ms
memory: 3716kb
input:
200 200 77 54 637414106 504294159 504299992 504370995 504372910 504391459 504422021 504430716 504432521 504457008 504504929 504510339 504512253 504524028 504532012 504540563 504546076 504574655 504600183 504617305 504636482 504685595 504691093 509540721 509601568 509915573 509920276 509925852 509926...
output:
Accepted
Test #145:
score: 0
Accepted
time: 5ms
memory: 3772kb
input:
200 200 19 25 12264313 951600299 953442099 957378883 958703473 962769764 966081760 967309436 968496148 968505213 968522921 968578108 968598710 969863059 969903128 969921023 969934979 969936326 969939215 969941482 969964428 970013385 970058600 970204446 970314964 973156252 970144531 969793099 9697844...
output:
Accepted
Test #146:
score: 0
Accepted
time: 4ms
memory: 3724kb
input:
200 200 93 198 345263816 17252 5083619 10491466 15050013 21648126 23814872 29123543 35475207 41828426 44315017 52124473 57392356 60121079 65499940 70559447 76541456 80053696 85009482 90660842 95284155 100229491 104778253 113216823 115593929 120431710 125110851 132361199 136259540 139897121 144672838...
output:
Accepted
Test #147:
score: 0
Accepted
time: 2ms
memory: 3720kb
input:
200 200 100 48 400174103 274331072 274348409 274463401 274469374 274471823 274482470 274525997 274531421 274538488 274545925 274583108 274589994 274628973 274658974 274665123 274726030 276849038 276877692 276879705 276879793 276901828 276949778 276960593 276961174 276962717 276983132 276994734 27699...
output:
Accepted
Test #148:
score: 0
Accepted
time: 4ms
memory: 3840kb
input:
200 200 72 164 741441176 15523 4694128 9819725 17838304 19491106 24565370 30088553 34719888 42341003 44190413 51666254 57273486 59319518 67505486 72552311 74591157 82473903 87118676 89044137 95262294 99337634 106403137 112303917 114171898 120466197 125068978 129410530 134558438 138108386 145320579 1...
output:
Accepted
Test #149:
score: 0
Accepted
time: 8ms
memory: 3908kb
input:
200 200 48 68 19346763 612674732 621586178 630212226 639945851 651474823 661269762 672930238 678113018 687180828 693184688 704344364 711455166 718306026 729831087 737458261 746630372 749775671 761486436 763528576 772445821 777339920 779045719 779110483 779191251 779217891 779222292 779225798 7792446...
output:
Accepted
Test #150:
score: 0
Accepted
time: 5ms
memory: 3768kb
input:
200 200 191 116 985441726 23624 30857 48578 63191 87228 107975 129697 132798 160175 165090 166956 200992 269900 310710 343644 351403 356446 380995 381233 384577 385845 386332 401472 414096 455793 456737 506742 521694 546487 572462 599347 600785 601423 621371 633176 654266 674526 716876 717875 732421...
output:
Accepted
Test #151:
score: 0
Accepted
time: 5ms
memory: 3776kb
input:
200 200 18 114 457651831 353344861 360304241 369242021 377772502 382306437 392726107 401994756 407939484 417205601 424692061 430197755 438340758 448110957 450555915 463005173 463747234 475750472 484320773 491983954 496746235 505255728 514748304 521805871 528049567 534478306 540676243 546522606 54977...
output:
Accepted
Test #152:
score: 0
Accepted
time: 6ms
memory: 3940kb
input:
200 200 20 8 19791044 972714663 972770719 972778870 972806867 972817549 972823483 972855932 976956292 974877274 974707103 974499064 974442521 973310779 973272756 973262175 973247027 973195515 973107255 973103798 973092571 973087254 973066338 973044250 973026522 972971463 972909575 972870614 97191333...
output:
Accepted
Test #153:
score: 0
Accepted
time: 3ms
memory: 3780kb
input:
200 200 193 129 519312713 1700645 1711223 1727509 1730894 1736457 1745412 1796917 1798913 1801622 1815381 1822967 1860676 1876979 1902316 1943103 1944491 1951675 1956021 1958903 1980476 1982831 2009106 2016783 2042252 2051687 2063590 2101779 2107982 2183682 2252144 2305995 2365492 2398330 2452253 24...
output:
Accepted
Test #154:
score: 0
Accepted
time: 3ms
memory: 3904kb
input:
200 200 58 12 544893077 802587354 802596137 802650107 802673219 806369480 806373117 806376073 806404494 806677319 806736437 806753720 812433681 806885971 806562762 805852247 805833445 805796590 805778665 805745507 805652683 805649624 805628506 805624230 805623755 805589995 805560697 805550591 805514...
output:
Accepted
Test #155:
score: 0
Accepted
time: 6ms
memory: 3940kb
input:
200 200 88 126 164950739 3600 5272550 10700809 15386027 21529210 24543318 31778502 34048360 40417035 44000811 49110896 54526227 60752568 67781416 76728760 83429747 92870274 105837690 112695467 123881472 130525408 141553560 154692343 159934868 171544441 179533743 190576036 197169847 205308304 2152554...
output:
Accepted
Test #156:
score: 0
Accepted
time: 5ms
memory: 3904kb
input:
200 200 160 164 919915769 28647 4784591 10038053 15378301 20350985 23624018 23640037 23654532 23660252 23692103 23705138 23724542 23740992 23765541 23772765 23774698 23807944 23809875 23851474 23866339 23896108 23897251 23903941 23927261 23943121 24026671 24047941 24066745 24095156 24102605 24123910...
output:
Accepted
Test #157:
score: 0
Accepted
time: 0ms
memory: 3960kb
input:
200 200 158 51 152158962 3632626 3656921 3753140 3754573 3770835 3775421 3785110 3785435 3818075 3818450 3834398 3852211 3873240 3885497 3906152 3906669 3909371 3924134 3927352 3932172 3933002 3971946 4032710 4110269 4137125 4144176 4147141 4163447 4183336 4196048 4233586 4284037 4321863 4331484 439...
output:
Accepted
Test #158:
score: 0
Accepted
time: 5ms
memory: 3904kb
input:
200 200 57 84 861509630 422322589 435927277 441304061 453114872 466729556 476812691 489027923 496484202 503698227 520345301 524486845 537336200 546193043 557959752 562847731 576118978 582585826 595513868 603591773 614039556 625759770 631518605 637792315 652033155 658536980 669120685 677492632 686030...
output:
Accepted
Test #159:
score: 0
Accepted
time: 3ms
memory: 3832kb
input:
200 200 194 155 193474569 70429 114587 153621 205349 217769 254460 294819 305988 308125 310148 329181 381979 386299 432649 435125 449487 509974 514745 521056 544622 553935 575016 1420316 1453719 1488781 1546336 1567433 1601687 1618260 1628709 1640049 1673238 1698747 1738792 1770714 1775490 1816353 1...
output:
Accepted
Test #160:
score: 0
Accepted
time: 2ms
memory: 3940kb
input:
200 200 125 182 446192329 49693 5989069 9957370 14440648 19570452 24441029 29385705 34426098 39409051 45048019 50244224 55688613 60963016 66019384 71374693 76031684 80984102 86043397 91683933 96352024 100766454 105792073 111516219 115968974 121416940 124757751 129805341 134862904 139547081 144847999...
output:
Accepted
Test #161:
score: 0
Accepted
time: 3ms
memory: 3772kb
input:
200 200 65 176 958531085 341747 6579966 11673261 14743724 20328666 25029705 31688236 37149302 41631665 47505243 51956108 53768387 62947462 65589626 71467440 77455581 82117402 87925174 92980087 94716603 101384052 106771846 108439596 113180871 119485976 126356391 127892052 133121884 138830517 14439705...
output:
Accepted
Test #162:
score: 0
Accepted
time: 3ms
memory: 3668kb
input:
200 200 85 79 106368416 316768044 316782132 316782838 316816472 316843600 316852753 316864788 316869581 316905225 316985813 316989315 317036678 317066227 317128432 317163453 317197464 317249773 317252892 317346118 317346596 317414720 317423652 317449696 317480361 317517097 317562152 317570313 317574...
output:
Accepted
Test #163:
score: 0
Accepted
time: 6ms
memory: 3776kb
input:
200 200 11 39 613953134 906658725 907095618 914522945 916114989 922846769 924973999 930069616 934811355 937465653 942596894 945956073 947570267 950827624 953293957 957808311 960210236 962552313 965845933 967866759 971162705 973241645 975798948 978672466 979357006 981685941 983806396 985190298 987912...
output:
Accepted
Test #164:
score: 0
Accepted
time: 3ms
memory: 3668kb
input:
200 200 61 20 266440950 763395105 763410521 763490654 763508660 763528219 763536031 763541416 763544115 763549353 763561689 763580884 763625677 763639095 763677929 763902133 763909780 764056504 764059507 764369659 772040106 765024910 765017842 764938576 764870530 763970353 758994049 758969863 758958...
output:
Accepted
Test #165:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
200 200 139 88 804423770 416024 445151 489379 519221 534582 569252 574239 577261 611533 637671 639462 661088 662202 710172 729403 763148 773649 820335 856467 898884 916515 950655 966625 1161707 1173475 1197024 1230782 1261679 1368167 1389603 1397846 1401818 1411384 1421654 1456544 1468986 1473606 14...
output:
Accepted
Test #166:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
200 200 104 59 641366860 194167547 194199770 194219025 194226269 194239642 194268054 194272027 194285923 194303667 194305083 194305907 194339507 194358385 194363463 194380792 194416217 194417199 194431986 194450908 194487690 194505414 194517092 194633422 194637499 194644021 194650280 194662461 19473...
output:
Accepted
Test #167:
score: 0
Accepted
time: 2ms
memory: 3776kb
input:
200 200 102 136 673399449 37808 5207117 12581534 16375266 20826242 24961113 29372983 34036263 40615761 44879929 50467702 53474282 61064077 63665236 70659859 74349501 80424266 83774843 88251476 95954745 100153515 104325290 109832432 113256013 120447567 125927024 131302186 133938664 138684710 14503338...
output:
Accepted
Test #168:
score: 0
Accepted
time: 4ms
memory: 3708kb
input:
200 200 1 1 999964418 999964418 999949476 999876618 999781741 999766264 999271699 999035041 998725276 998444312 998161055 997787124 997084336 996684925 995908373 995342054 994679705 994203225 993356421 992606742 991651818 990894662 989898423 989012510 988061754 986937250 985257940 984436804 98320558...
output:
Accepted
Test #169:
score: 0
Accepted
time: 5ms
memory: 3780kb
input:
200 200 1 1 999991697 999995380 999991697 999936926 999925550 999808689 999650419 999483395 999312090 999096338 998717038 998335832 997966844 997222071 996669070 996004196 995542393 994789423 993760767 992285997 991851921 991218227 990180866 989120451 987571172 986763721 985719942 984401884 98276429...
output:
Accepted
Test #170:
score: 0
Accepted
time: 5ms
memory: 3712kb
input:
200 200 1 1 999897083 999967758 999946786 999877180 999752908 999694059 999514840 999171103 998963911 998677248 997802075 997705897 997322549 997026523 996375715 995957860 995218095 994494336 993752593 992946734 992208922 990974675 990317327 989173444 988064146 987231392 985713427 984359782 98299854...
output:
Accepted
Test #171:
score: 0
Accepted
time: 4ms
memory: 3768kb
input:
200 200 1 1 18873211 999994005 999968791 999957466 999789471 999613356 999366834 999128663 998844052 998552692 998238243 997469038 997098750 996582856 995972272 995314263 994582204 993953516 993119200 992485557 991750366 990751809 989961454 989410288 988239178 987260251 986109740 984855181 983642255...
output:
Accepted
Test #172:
score: 0
Accepted
time: 5ms
memory: 3672kb
input:
200 200 1 1 29277423 999952431 999945492 999923815 999685545 999576669 999375609 999237148 998939653 998791965 998350300 997953806 997411828 996644639 996269598 995645815 995083094 994173998 993508697 992925540 992219838 991212745 990351647 989442851 988649220 987667238 986355152 984826260 983367083...
output:
Accepted
Test #173:
score: 0
Accepted
time: 5ms
memory: 3832kb
input:
200 200 1 1 9500457 999954444 999898999 999847087 999714726 999596391 999281582 999153774 998779865 998524156 998191711 997507948 996993518 996519123 995913724 995407623 994842896 993771095 992941661 992202067 991401113 990174931 989029108 988012746 987120842 985842892 984901715 983576064 982164480 ...
output:
Accepted
Test #174:
score: 0
Accepted
time: 5ms
memory: 3836kb
input:
200 200 1 1 20703591 999993413 999825745 999809627 999765473 999645038 999337634 999101569 998814796 998194591 997688156 997223214 996773429 996154962 995177945 994571234 993778364 993146741 992591217 991796137 991206075 990500151 989331020 988317163 987060176 986020741 984737590 983333216 981794086...
output:
Accepted
Test #175:
score: 0
Accepted
time: 3ms
memory: 3948kb
input:
200 200 1 1 10136565 999982750 999976181 999894387 999772067 999651776 999530326 999288692 999094587 998869447 998356307 997715231 997178485 996661187 996082005 994931375 994915140 993738077 993154804 992431377 991598637 990754486 989357705 988237710 987489485 985835397 984843200 982331594 982069260...
output:
Accepted
Test #176:
score: 0
Accepted
time: 2ms
memory: 3940kb
input:
200 200 1 1 29436674 999948492 999851318 999818261 999743134 999491975 999421674 999154950 998993041 998612872 998255350 998015480 997531657 997196132 996852275 996342279 995881470 994885086 994291216 993382586 992666818 991961119 991075197 990024130 988738169 987454185 986307930 985007020 983624462...
output:
Accepted
Test #177:
score: 0
Accepted
time: 8ms
memory: 3776kb
input:
200 200 1 1 1910 999996334 999990228 999934070 999904345 999828796 999634149 999542483 999339296 999055294 998420652 998106902 997598749 997178204 996572544 996118157 995273058 994679356 993728245 993442052 992648833 991653347 990660718 989496186 988071791 987187393 986281813 984768124 983909741 982...
output:
Accepted
Test #178:
score: 0
Accepted
time: 3ms
memory: 3708kb
input:
200 200 1 1 21713 999998761 999941304 999814467 999713125 999694841 999447588 999061119 999014880 998661108 998238306 997868081 997242607 996734106 996205338 995598680 995069009 994318970 993605188 991900038 991586124 990636356 989711300 988810665 987801012 986582256 985139905 983991126 982846891 98...
output:
Accepted
Test #179:
score: 0
Accepted
time: 3ms
memory: 3652kb
input:
200 200 1 1 4534290 999999441 999942892 999837735 999773905 999661116 999413703 999165850 998839828 998549876 998141351 997819004 997183579 996701932 996504122 995492424 994722692 994264417 993610823 993068574 992148825 991174396 990232591 988999007 987838126 986889560 985800224 984386587 982834054 ...
output:
Accepted
Test #180:
score: 0
Accepted
time: 4ms
memory: 3832kb
input:
200 200 1 200 19552218 19552218 29186444 40272901 50273455 60225357 69839724 80001279 88999567 98290027 107461238 116919477 125128571 135041054 144811707 154375817 163081165 172188844 180477884 189017730 198001497 205986491 214884730 223794181 233180780 240947537 249050996 257744378 266114917 274505...
output:
Accepted
Test #181:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
200 200 1 200 29189090 20105335 29189090 39461817 48368438 58335363 67983948 77507440 87904101 98109171 108028522 117532107 126268183 135593675 144353492 153614491 161794377 171216924 181269846 189383561 198994747 207833060 217017494 225852720 235018047 244166847 253052242 260726147 270213253 278452...
output:
Accepted
Test #182:
score: 0
Accepted
time: 4ms
memory: 3948kb
input:
200 200 1 200 10376834 20147217 29851291 38976469 49343746 59990528 70150196 79724341 89257891 99242589 108100921 117275543 126895802 135194711 143651199 152045769 162227514 170903307 180456685 189323835 197945264 206342349 215672180 224602417 233255212 241714899 250280875 258439902 267083933 275792...
output:
Accepted
Test #183:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
200 200 1 200 999964835 20323429 30476878 41166419 51007398 60560652 69384896 79038883 88905966 99527633 108133791 117932220 127502171 137123682 146232787 154779280 163737238 173191765 183066318 191663241 200178483 208359320 217503693 226218499 235362367 243913929 252513990 260930775 269513859 27748...
output:
Accepted
Test #184:
score: 0
Accepted
time: 2ms
memory: 3944kb
input:
200 200 1 200 999931550 19205218 28394435 38831842 48102548 57881973 68130977 79148335 88387259 96983218 106701334 115628267 124977362 134943273 144284707 154207169 163444134 171789233 180611966 190610649 198971137 207158710 216197189 225056528 234103577 242442292 251504241 259562313 267748720 27551...
output:
Accepted
Test #185:
score: 0
Accepted
time: 2ms
memory: 3840kb
input:
200 200 1 200 999945393 19934622 30372711 40433603 50598860 60662232 70271816 79511533 90007515 99329865 108795793 117576809 127514074 137114459 147032721 155367397 164647180 174039511 182724663 191441837 200520536 209511690 217674648 227333784 236161809 244960636 254203733 262552081 271111374 27945...
output:
Accepted
Test #186:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
200 200 1 200 11909 17724654 27946549 38515663 48239925 58870640 68252558 77879978 87698983 97424462 106803435 116255465 125399337 134244063 143432986 152209600 161382134 170919382 180063168 188699590 198718868 206932956 216078320 224360755 232717199 239771225 249965397 257960481 267250797 275565442...
output:
Accepted
Test #187:
score: 0
Accepted
time: 5ms
memory: 3780kb
input:
200 200 1 200 101053 20593664 30211122 40075388 50097644 60358006 70226885 79666193 89004965 97693409 106868672 115952100 125125565 134814908 144047174 153200592 162045171 171331373 180421519 189632084 199501219 208433716 215964093 224615897 233895063 242640311 251703343 259932181 268373389 27675900...
output:
Accepted
Test #188:
score: 0
Accepted
time: 2ms
memory: 3944kb
input:
200 200 1 200 3231681 18646198 29320061 38886225 49250502 58474701 68962889 78981596 89524344 98752929 107417853 116635633 125814723 135662243 144790986 154700007 163908470 172082816 181161811 189501348 199107685 207849158 217315083 226370155 234461852 242077941 250818705 260159333 269276172 2777754...
output:
Accepted
Test #189:
score: 0
Accepted
time: 6ms
memory: 3720kb
input:
200 200 1 200 19682585 19664422 29774368 39805780 48884802 58440700 68927905 78628444 88808453 98228205 107631480 116659104 126147322 135511138 144011789 153113648 162943065 172575695 181825533 190833091 199361861 208072051 216901801 226266141 235581472 244817200 254170011 262047368 270203677 278698...
output:
Accepted
Test #190:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
200 200 1 200 9683305 19337451 29320576 39258728 48976409 59019405 68633752 77972713 87602704 96553462 105857920 115933465 125401236 134010082 143306281 153285925 161949052 170127477 179658927 188939528 195548425 206590721 215335594 224172809 234143954 242760348 251254135 259748215 268283134 2764909...
output:
Accepted
Test #191:
score: 0
Accepted
time: 0ms
memory: 3940kb
input:
200 200 1 200 29871028 19962157 29874564 39675564 50243263 59640550 68840708 78376155 87952903 97580557 107437016 116931519 125475639 134850060 144736332 153640983 163225700 172234573 182066573 191187923 200213177 208788506 217642735 225717314 234579053 244042797 252580683 261100007 269573845 278606...
output:
Accepted
Test #192:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
200 200 200 1 19573762 19573762 9958564 9864739 9857368 9852844 9846013 9813649 9751192 9708266 9700926 9698365 9689468 9684552 9659154 9610216 9567647 9551462 9438871 9352678 9319397 9312701 9297660 9203365 9180521 9175649 9136790 9108932 9104116 9071349 9069141 9065029 9052611 9045378 9024820 9003...
output:
Accepted
Test #193:
score: 0
Accepted
time: 3ms
memory: 3724kb
input:
200 200 200 1 9810680 19828552 9810680 9779818 9776261 9760991 4898815 4880831 4852870 4840697 4825035 4807913 4801931 4793710 4789629 4762633 4749251 4700145 4653920 4630337 4604358 4595742 4543959 4539066 4486053 4464173 4402472 4391719 4335146 4329268 4285958 4278422 4273972 4262295 4257302 42141...
output:
Accepted
Test #194:
score: 0
Accepted
time: 5ms
memory: 3776kb
input:
200 200 200 1 29134592 19469976 9989060 9955578 9924559 9889856 9885309 9850317 9818509 9789603 9785345 9761992 9736725 9711884 9526271 9523021 9519439 9467905 9453948 9411079 9409404 9383673 9346079 9339589 9332891 9312935 9309352 9302680 9274085 9200599 9190275 9168344 9052989 9044707 9042150 9008...
output:
Accepted
Test #195:
score: 0
Accepted
time: 6ms
memory: 3764kb
input:
200 200 200 1 15579 18477331 8953991 8791457 8693802 8682802 8657724 8592816 8550519 8548363 8518521 8511434 8509736 8448602 8429841 8408711 8351246 8290009 8287971 8270676 8270246 8232318 8230218 8203895 8161107 8081303 8057724 8014761 8008850 7763221 7706555 7689812 7687311 7595765 7594558 7555024...
output:
Accepted
Test #196:
score: 0
Accepted
time: 6ms
memory: 3944kb
input:
200 200 200 1 3954857 19435546 8935087 8807103 8773895 8767978 8752893 8393107 8373852 8348017 8343826 8322753 8298600 8276461 8275047 8251002 8236205 8192800 8098584 8095570 8088007 8026421 7993131 7943639 7937478 7879802 7878453 7870396 7856363 7855313 7832699 7804945 7802363 7798299 7698748 76978...
output:
Accepted
Test #197:
score: 0
Accepted
time: 3ms
memory: 3908kb
input:
200 200 200 1 99287 19803154 9489766 9422519 9414387 9328802 9301800 9281276 9201860 9179611 9176205 9168113 9163519 9157614 9151526 9128348 9126410 9097942 9089163 9054856 8923682 8894198 8883801 8826442 8825449 8813125 8797428 8787385 8782668 8675383 8673878 8650279 8638437 8630456 8626562 8564455...
output:
Accepted
Test #198:
score: 0
Accepted
time: 4ms
memory: 3768kb
input:
200 200 200 1 999988805 20168715 10266326 10248490 10240933 10236241 10203086 10202587 10167086 10166360 10155099 10148792 10138039 10131652 10112743 10110816 10109866 10081150 10080920 10035931 10011964 10008619 9930248 9915252 9870742 9762429 9755998 9719944 9711981 9709064 9686442 9606441 9589519...
output:
Accepted
Test #199:
score: 0
Accepted
time: 0ms
memory: 3908kb
input:
200 200 200 1 999986209 20873898 9923154 9835829 9801058 9766207 9759560 9721373 9606091 4960811 4935640 4908173 4892985 4888838 4884002 4881372 4880233 4859491 4829048 4820497 4797477 4779354 4769051 4764334 4742243 4713776 4710715 4694208 4668391 4656802 4605050 4595919 4584690 4577971 4523115 452...
output:
Accepted
Test #200:
score: 0
Accepted
time: 4ms
memory: 3956kb
input:
200 200 200 1 999981312 19448218 9768802 9752665 9706507 9678727 9626279 9618659 9563531 9559488 9542034 9520937 9471203 9447697 9416299 9408242 9306664 9292836 9275559 9274556 9266523 9249751 9191136 9174606 9146826 9137964 9068810 9039588 8966018 8962991 8960083 8932701 8927040 8918530 8908197 890...
output:
Accepted
Test #201:
score: 0
Accepted
time: 5ms
memory: 3720kb
input:
200 200 200 1 18537216 18538401 9785985 9785206 9749418 9730449 9725333 9721308 9696324 9664426 9654023 9191976 9148301 9139040 9070848 9062147 9056496 8989285 8979401 8977363 8969380 8958553 8943922 8922414 8886582 8864224 8861194 8859366 8793185 8441521 8423093 8415431 8357737 8356267 8336071 8332...
output:
Accepted
Test #202:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
200 200 200 1 29698143 19349244 10044077 10033404 10003927 9988409 9971471 9970875 9901060 9862644 9824704 9823564 9651803 9601477 9567124 9543544 9505958 9486428 9476594 9453724 9447881 9439032 9432896 9416954 9325085 9323978 9303798 9264134 9242371 9173929 9148860 9071051 9068356 9018135 9006454 8...
output:
Accepted
Test #203:
score: 0
Accepted
time: 3ms
memory: 3836kb
input:
200 200 200 1 9229583 18332564 9131118 9126076 9061851 9059679 9049961 9041142 9039984 9010443 8932981 8817722 8658205 8559192 8460419 8431668 8423865 8385540 8372046 8370454 8368132 8355500 8328276 8316370 8249525 6913636 6907776 6808148 6790044 6767412 6692504 6690039 6672250 6651309 6642228 65626...
output:
Accepted
Test #204:
score: 0
Accepted
time: 5ms
memory: 3796kb
input:
200 200 200 200 29319 29319 3651955 3668673 3693946 3712703 3758150 3820708 3823392 3827328 3832073 3921080 3940773 3948913 3963890 3980188 3983032 4021765 4031700 4128811 4128950 4219823 4241693 4277794 4283021 4321037 4365562 4372382 4396531 4397170 4428794 4478636 4482224 4492249 4526438 4538388 ...
output:
Accepted
Test #205:
score: 0
Accepted
time: 5ms
memory: 3656kb
input:
200 200 200 200 28174 25335 28174 38871 40787 64215 76566 119316 159863 219091 224411 325257 364069 387287 429374 458538 459179 479116 499441 521259 531589 558684 572481 593188 631270 638582 654043 665077 680619 708648 722500 723465 731706 858252 874020 879886 918314 967842 995411 1077838 1146296 11...
output:
Accepted
Test #206:
score: 0
Accepted
time: 5ms
memory: 3708kb
input:
200 200 200 200 4811873 56692 96151 115579 148091 157527 166389 173932 269987 291764 295978 296622 346679 388568 396244 460085 467473 476677 544242 551278 557275 570928 609727 613123 631850 717370 724617 745913 757978 771038 843537 874433 905647 952999 955403 990639 1010922 1085839 1131606 1145552 1...
output:
Accepted
Test #207:
score: 0
Accepted
time: 6ms
memory: 3700kb
input:
200 200 200 200 20400918 67817 2769189 2774882 2827538 2833212 2869450 2873618 2895835 2923582 2936765 2969529 2987800 3042276 3042883 3044325 3111259 3114840 3149296 3166414 3168590 3169145 3172293 3181968 3191464 3284574 3301749 3343360 3347716 3373621 3438530 3470888 3490326 3521825 3544301 35525...
output:
Accepted
Test #208:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
200 200 200 200 10166381 18108 45432 54766 97657 104403 112754 142273 143530 144121 192824 223637 229954 252356 255911 263106 307793 341790 378268 430750 440542 443170 447007 450169 453331 466961 490321 527619 535389 546025 549039 551034 564622 571965 574092 627030 714137 742394 754672 801899 817417...
output:
Accepted
Test #209:
score: 0
Accepted
time: 6ms
memory: 3784kb
input:
200 200 200 200 30658702 38173 4226951 4248087 4264477 4346165 4392633 4483637 4551784 4585118 4587346 4635435 4637786 4660347 4666664 4670548 4697952 4700868 4719913 4730021 4770198 4829205 4860008 4879939 4889463 4905527 4912716 4919442 4933210 4956960 5002839 5053026 5089657 5096223 5133448 51619...
output:
Accepted
Test #210:
score: 0
Accepted
time: 4ms
memory: 3720kb
input:
200 200 200 200 19348212 7840 4375190 4422118 4445696 4471588 4497567 4541928 4543249 4548678 4569440 4586628 4588686 4592505 4600353 4643025 4674151 4686465 4691712 4726858 4766838 4768974 4775577 4837850 4845188 4863126 4907581 4917848 4924585 5031770 5064469 5078904 5140082 5147189 5183732 521101...
output:
Accepted
Test #211:
score: 0
Accepted
time: 4ms
memory: 3724kb
input:
200 200 200 200 28587993 14575 635999 644637 655160 659333 681116 682641 714736 722039 827184 829347 921662 924760 4341947 4352343 4386466 4437450 4449082 4453028 4467663 4502212 4513095 4548533 4553596 4667001 4733302 4745792 4790140 4842331 4851446 4852565 4881109 4900530 4920006 4961377 5008147 5...
output:
Accepted
Test #212:
score: 0
Accepted
time: 4ms
memory: 3904kb
input:
200 200 200 200 9439008 22297 37567 66855 72980 84542 95253 95480 99799 128409 216739 271058 281491 295348 301088 322403 340420 341155 346597 350526 359896 443871 443878 484427 487267 504564 575762 611238 638149 639418 643675 657750 722390 772816 791309 833764 841873 853651 857140 883714 927925 9405...
output:
Accepted
Test #213:
score: 0
Accepted
time: 5ms
memory: 3664kb
input:
200 200 200 200 999981161 6413 4652139 4722645 4760720 4764234 4771225 4779092 4807690 4831796 4835662 4867497 4925920 4956247 4987796 4993348 5051197 5134667 5138137 5162663 5197863 5244489 5245610 5246420 5248834 5313390 5318155 5341323 5341379 5343797 5362978 5367588 5379296 5402875 5464611 54797...
output:
Accepted
Test #214:
score: 0
Accepted
time: 5ms
memory: 3904kb
input:
200 200 200 200 999961342 1088 12426 14227 24176 37166 54801 90323 1414612 1418238 1437639 1496937 1506972 1524613 1535430 1547759 1583315 1602932 1668486 1760147 1767319 1794767 1802187 1886780 1892211 1953794 1966383 1979225 2032300 2038803 2064789 2065670 2074911 2093635 2134708 2171077 2172084 2...
output:
Accepted
Test #215:
score: 0
Accepted
time: 5ms
memory: 3796kb
input:
200 200 200 200 999941880 65686 5127468 5150517 5191205 5198603 5221642 5238137 5242196 5269500 5327396 5340681 5380536 5386048 5392057 5404553 5409999 5411574 5418817 5419640 5475862 5479294 5483000 5500333 5520047 5525167 5528646 5593254 5601340 5633025 5656028 5703623 5736045 5744358 5779855 5803...
output:
Accepted
Test #216:
score: 0
Accepted
time: 4ms
memory: 3900kb
input:
200 200 200 200 900039801 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 9...
output:
Accepted
Test #217:
score: 0
Accepted
time: 3ms
memory: 3716kb
input:
200 200 200 1 900039801 39602 39403 39204 39005 38806 38607 38408 38209 38010 37811 37612 37413 37214 37015 36816 36617 36418 36219 36020 35821 35622 35423 35224 35025 34826 34627 34428 34229 34030 33831 33632 33433 33234 33035 32836 32637 32438 32239 32040 31841 31642 31443 31244 31045 30846 30647 ...
output:
Accepted
Test #218:
score: 0
Accepted
time: 3ms
memory: 3940kb
input:
200 200 1 1 900039801 900039801 39800 39799 39798 39797 39796 39795 39794 39793 39792 39791 39790 39789 39788 39787 39786 39785 39784 39783 39782 39781 39780 39779 39778 39777 39776 39775 39774 39773 39772 39771 39770 39769 39768 39767 39766 39765 39764 39763 39762 39761 39760 39759 39758 39757 3975...
output:
Accepted
Test #219:
score: 0
Accepted
time: 0ms
memory: 3952kb
input:
200 200 1 200 900039801 900000200 900000399 900000598 900000797 900000996 900001195 900001394 900001593 900001792 900001991 900002190 900002389 900002588 900002787 900002986 900003185 900003384 900003583 900003782 900003981 900004180 900004379 900004578 900004777 900004976 900005175 900005374 900005...
output:
Accepted
Test #220:
score: 0
Accepted
time: 4ms
memory: 3776kb
input:
200 200 200 200 39601 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96...
output:
Accepted
Test #221:
score: 0
Accepted
time: 5ms
memory: 3944kb
input:
200 200 200 1 39601 39602 39403 39204 39005 38806 38607 38408 38209 38010 37811 37612 37413 37214 37015 36816 36617 36418 36219 36020 35821 35622 35423 35224 35025 34826 34627 34428 34229 34030 33831 33632 33433 33234 33035 32836 32637 32438 32239 32040 31841 31642 31443 31244 31045 30846 30647 3044...
output:
Accepted
Test #222:
score: 0
Accepted
time: 5ms
memory: 3940kb
input:
200 200 1 1 39601 900039801 39800 39799 39798 39797 39796 39795 39794 39793 39792 39791 39790 39789 39788 39787 39786 39785 39784 39783 39782 39781 39780 39779 39778 39777 39776 39775 39774 39773 39772 39771 39770 39769 39768 39767 39766 39765 39764 39763 39762 39761 39760 39759 39758 39757 39756 39...
output:
Accepted
Test #223:
score: 0
Accepted
time: 4ms
memory: 3716kb
input:
200 200 1 200 39601 900000200 900000399 900000598 900000797 900000996 900001195 900001394 900001593 900001792 900001991 900002190 900002389 900002588 900002787 900002986 900003185 900003384 900003583 900003782 900003981 900004180 900004379 900004578 900004777 900004976 900005175 900005374 900005573 ...
output:
Accepted
Test #224:
score: 0
Accepted
time: 5ms
memory: 3952kb
input:
200 200 200 200 39800 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96...
output:
Accepted
Test #225:
score: 0
Accepted
time: 3ms
memory: 3652kb
input:
200 200 200 1 39800 39602 39403 39204 39005 38806 38607 38408 38209 38010 37811 37612 37413 37214 37015 36816 36617 36418 36219 36020 35821 35622 35423 35224 35025 34826 34627 34428 34229 34030 33831 33632 33433 33234 33035 32836 32637 32438 32239 32040 31841 31642 31443 31244 31045 30846 30647 3044...
output:
Accepted
Test #226:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
200 200 1 1 39800 900039801 39800 39799 39798 39797 39796 39795 39794 39793 39792 39791 39790 39789 39788 39787 39786 39785 39784 39783 39782 39781 39780 39779 39778 39777 39776 39775 39774 39773 39772 39771 39770 39769 39768 39767 39766 39765 39764 39763 39762 39761 39760 39759 39758 39757 39756 39...
output:
Accepted
Test #227:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
200 200 1 200 39800 900000200 900000399 900000598 900000797 900000996 900001195 900001394 900001593 900001792 900001991 900002190 900002389 900002588 900002787 900002986 900003185 900003384 900003583 900003782 900003981 900004180 900004379 900004578 900004777 900004976 900005175 900005374 900005573 ...
output:
Accepted
Test #228:
score: 0
Accepted
time: 3ms
memory: 3768kb
input:
200 200 200 200 39602 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96...
output:
Accepted
Test #229:
score: 0
Accepted
time: 2ms
memory: 3652kb
input:
200 200 200 1 39602 39602 39403 39204 39005 38806 38607 38408 38209 38010 37811 37612 37413 37214 37015 36816 36617 36418 36219 36020 35821 35622 35423 35224 35025 34826 34627 34428 34229 34030 33831 33632 33433 33234 33035 32836 32637 32438 32239 32040 31841 31642 31443 31244 31045 30846 30647 3044...
output:
Accepted
Test #230:
score: 0
Accepted
time: 3ms
memory: 3780kb
input:
200 200 1 1 39602 900039801 39800 39799 39798 39797 39796 39795 39794 39793 39792 39791 39790 39789 39788 39787 39786 39785 39784 39783 39782 39781 39780 39779 39778 39777 39776 39775 39774 39773 39772 39771 39770 39769 39768 39767 39766 39765 39764 39763 39762 39761 39760 39759 39758 39757 39756 39...
output:
Accepted
Test #231:
score: 0
Accepted
time: 2ms
memory: 3708kb
input:
200 200 1 200 39602 900000200 900000399 900000598 900000797 900000996 900001195 900001394 900001593 900001792 900001991 900002190 900002389 900002588 900002787 900002986 900003185 900003384 900003583 900003782 900003981 900004180 900004379 900004578 900004777 900004976 900005175 900005374 900005573 ...
output:
Accepted
Extra Test:
score: 0
Extra Test Passed