QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#835274#3230. Beautiful NowGuanYunchang0 0ms0kbC++171.2kb2024-12-28 10:55:402024-12-28 10:55:40

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

score: 0
Time Limit Exceeded

input:

100
645637224 8
397815246 8
239758591 7
152472214 2
485635752 8
128947635 5
938124675 8
311384311 8
665595968 7
284675191 6
3596920 776160768
428993752 4
796354812 4
342871569 7
952970714 2
399469166 8
774997047 1
534968712 5
574918236 3
564999511 645561291
791543286 7
171222224 7
319647582 2
241573...

output:

223445667 766544320
123456789 987654321
123557899 998755321
112272454 754412212
234555678 876555432
123456789 987652134
123456789 987654322
111133340 843331111
555666898 998666555
112456897 987654211

result: