QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#198385#6374. LaLa and Magic Circle (LiLi Version)ucup-team607#AC ✓22ms5580kbC++171.1kb2023-10-03 13:34:112023-10-03 13:34:11

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 22ms
memory: 5580kb

input:



output:

1000
100000000 0
99998041 625811
99998040 625810
99995594 938709
99995593 938708
99992167 1251597
99992166 1251596
99987761 1564474
99987760 1564473
99982376 1877335
99982375 1877334
99976012 2190178
99976011 2190177
99968670 2502999
99968669 2502998
99960348 2815796
99960347 2815795
99951048 312856...

result:

ok N=1000, Q=124750