QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#25563#151. Nice Linescnyz100 ✓31ms3972kbC++112.2kb2022-04-03 20:35:552022-04-29 01:45:00

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 11
Accepted

Test #1:

score: 11
Accepted
time: 3ms
memory: 3816kb

input:

1 1
100000002.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
100000001.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
99999998.00000000000000000000000000000000000000000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #2:

score: 11
Accepted
time: 3ms
memory: 3760kb

input:

1 1
44730306.0579737705884326715022325515747070312500000000000000000000000000000000000000000000000000000000000000
44730305.6107601750882167834788560867309570312500000000000000000000000000000000000000000000000000000000000000
44712413.0420178172680607531219720840454101562500000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #3:

score: 11
Accepted
time: 1ms
memory: 3820kb

input:

1 1
19601809.6682228453719289973378181457519531250000000000000000000000000000000000000000000000000000000000000000
19601809.4721067102345841703936457633972167968750000000000000000000000000000000000000000000000000000000000000
19621417.3594139610122510930523276329040527343750000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #4:

score: 11
Accepted
time: 1ms
memory: 3760kb

input:

1 1
352316.8976334975479289823852013796567916870117187500000000000000000000000000000000000000000000000000000000
352316.8940103329235853379941545426845550537109375000000000000000000000000000000000000000000000000000000000
372316.0272342644129253130813594907522201538085937500000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Subtask #2:

score: 13
Accepted

Test #5:

score: 13
Accepted
time: 4ms
memory: 3820kb

input:

2 2
170717759.3286022416432388126850128173828125000000000000000000000000000000000000000000000000000000000000000000
170717757.6214954604656668379902839660644531250000000000000000000000000000000000000000000000000000000000000000
170703596.9087072632391937077045440673828125000000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #6:

score: 13
Accepted
time: 3ms
memory: 3824kb

input:

2 2
51234079.4274424641662335488945245742797851562500000000000000000000000000000000000000000000000000000000000000
51234078.9150985630112700164318084716796875000000000000000000000000000000000000000000000000000000000000000000
51234700.8035619288566522300243377685546875000000000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #7:

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

input:

2 2
90305408.2337843580971821211278438568115234375000000000000000000000000000000000000000000000000000000000000000
90305407.3305614417768083512783050537109375000000000000000000000000000000000000000000000000000000000000000000
90339175.0311619531639735214412212371826171875000000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #8:

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

input:

2 2
1212754.7799961349596742365974932909011840820312500000000000000000000000000000000000000000000000000000000000
1212754.7678686399284515573526732623577117919921875000000000000000000000000000000000000000000000000000000000
1212744.2262566369549858791287988424301147460937500000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Subtask #3:

score: 7
Accepted

Test #9:

score: 7
Accepted
time: 5ms
memory: 3828kb

input:

3 3
190319570.0142093797185225412249565124511718750000000000000000000000000000000000000000000000000000000000000000
190319568.1109864634054247289896011352539062500000000000000000000000000000000000000000000000000000000000000000
190325013.2507369315426331013441085815429687500000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #10:

score: 7
Accepted
time: 5ms
memory: 3768kb

input:

3 3
148062291.5851786195562453940510749816894531250000000000000000000000000000000000000000000000000000000000000000
148062290.1045518662285758182406425476074218750000000000000000000000000000000000000000000000000000000000000000
148063059.0792604248563293367624282836914062500000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #11:

score: 7
Accepted
time: 4ms
memory: 3808kb

input:

3 3
3200721.6398392731312014802824705839157104492187500000000000000000000000000000000000000000000000000000000000
3200721.6079320522724174225004389882087707519531250000000000000000000000000000000000000000000000000000000000
3180722.5319610806266155123012140393257141113281250000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #12:

score: 7
Accepted
time: 0ms
memory: 3800kb

input:

3 3
3590505.7441540847044052497949451208114624023437500000000000000000000000000000000000000000000000000000000000
3590505.7083491471116758475545793771743774414062500000000000000000000000000000000000000000000000000000000000
3570481.7744118652838096750201657414436340332031250000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Subtask #4:

score: 19
Accepted

Test #13:

score: 19
Accepted
time: 31ms
memory: 3820kb

input:

4 100
145942198.6246490883495425805449485778808593750000000000000000000000000000000000000000000000000000000000000000
145942197.1652262607822194695472717285156250000000000000000000000000000000000000000000000000000000000000000000
145942366.88879868290678132325410842895507812500000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #14:

score: 19
Accepted
time: 10ms
memory: 3892kb

input:

4 100
90290774.0568950108645367436110973358154296875000000000000000000000000000000000000000000000000000000000000000
90290773.1537854554917430505156517028808593750000000000000000000000000000000000000000000000000000000000000000
90331137.01789487180212745442986488342285156250000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #15:

score: 19
Accepted
time: 7ms
memory: 3824kb

input:

4 100
74030019.1299659590877126902341842651367187500000000000000000000000000000000000000000000000000000000000000000
74030018.3882657674766960553824901580810546875000000000000000000000000000000000000000000000000000000000000000
74310019.19217372705315938219428062438964843750000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #16:

score: 19
Accepted
time: 11ms
memory: 3820kb

input:

4 100
197264798.0162307657010387629270553588867187500000000000000000000000000000000000000000000000000000000000000000
197264796.0438073671248275786638259887695312500000000000000000000000000000000000000000000000000000000000000000
197219881.69857305371260736137628555297851562500000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Subtask #5:

score: 23
Accepted

Test #17:

score: 23
Accepted
time: 15ms
memory: 3700kb

input:

5 30
933870.2784060005143373928149230778217315673828125000000000000000000000000000000000000000000000000000000000
933870.2690672614211280233575962483882904052734375000000000000000000000000000000000000000000000000000000000
933877.540237591108109427295858040452003479003906250000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #18:

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

input:

5 30
1274249.7379728266711254036636091768741607666015625000000000000000000000000000000000000000000000000000000000
1274249.7250303876431871685781516134738922119140625000000000000000000000000000000000000000000000000000000000
1314238.067601617458876717137172818183898925781250000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #19:

score: 23
Accepted
time: 4ms
memory: 3972kb

input:

5 30
843306.1879915106517273670760914683341979980468750000000000000000000000000000000000000000000000000000000000
843306.1799583476021666683664079755544662475585937500000000000000000000000000000000000000000000000000000000
763326.421914452395697026076959446072578430175781250000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #20:

score: 23
Accepted
time: 3ms
memory: 3828kb

input:

5 30
2152080.7096007431366615492152050137519836425781250000000000000000000000000000000000000000000000000000000000
2152080.6888801471188799041556194424629211425781250000000000000000000000000000000000000000000000000000000000
1992038.493941318684392172144725918769836425781250000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Subtask #6:

score: 27
Accepted

Test #21:

score: 27
Accepted
time: 1ms
memory: 3820kb

input:

6 100
5576979.5390512052681515342555940151214599609375000000000000000000000000000000000000000000000000000000000000
5576979.4820831010374604375101625919342041015625000000000000000000000000000000000000000000000000000000000000
5816641.30707002425606333417817950248718261718750000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #22:

score: 27
Accepted
time: 13ms
memory: 3836kb

input:

6 100
6438567.5508119548685499466955661773681640625000000000000000000000000000000000000000000000000000000000000000
6438567.4872259525909612420946359634399414062500000000000000000000000000000000000000000000000000000000000000
6278632.90471911059921694686636328697204589843750000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #23:

score: 27
Accepted
time: 0ms
memory: 3916kb

input:

6 100
4257944.6113192473771960067097097635269165039062500000000000000000000000000000000000000000000000000000000000
4257944.5695397343388322042301297187805175781250000000000000000000000000000000000000000000000000000000000000
4097957.99635415448892672429792582988739013671875000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct

Test #24:

score: 27
Accepted
time: 9ms
memory: 3760kb

input:

6 100
9189398.9613467397748536313883960247039794921875000000000000000000000000000000000000000000000000000000000000
9189398.8686552769722766242921352386474609375000000000000000000000000000000000000000000000000000000000000000
9348893.59913610001785855274647474288940429687500000000000000000000000000000...

output:

1
10000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -100000000.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
1
10000.00000000000000000000000000000000000000000000000000000000000000000000000...

result:

points 1.0 points  1.0 correct