QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#278097#6879. TeyberrsZhaoZiLongAC ✓1225ms45508kbC++233.3kb2023-12-07 12:04:152023-12-07 12:04:16

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1225ms
memory: 45508kb

input:

195
1000 1000 390
165421182 830456752 1 1000
629019981 620808876 1 1000
62707726 251768991 1 1000
844654415 296391973 1 1000
836363753 361815634 1 1000
642057941 223752937 1 1000
527067969 5380815 1 1000
450406115 259514303 1 1000
24141454 47050814 1 1000
43169027 396162770 1 1000
251099657 45559691...

output:

92752413572
148125233324
-1
-1
88499313425
233473977168
-1
238802954522
143738626894
107917385972
-1
-1
-1
-1
-1
284051155851
-1
-1
169514189469
-1
-1
-1
-1
-1
-1
302793061319
-1
321552962401
-1
303271376461
-1
-1
60964760583
-1
-1
-1
-1
-1
49596109472
192661061222
173094083467
-1
125418958455
-1
-1...

result:

ok 990000 lines