QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#118890#6374. LaLa and Magic Circle (LiLi Version)crescentAC ✓25ms1612kbC++14787b2023-07-04 15:02:552023-07-04 15:02:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 25ms
memory: 1612kb

input:



output:

1000
0 0
1 1
3 5
6 14
10 30
15 55
21 91
28 140
36 204
45 285
55 385
66 506
78 650
91 819
105 1015
120 1240
136 1496
153 1785
171 2109
190 2470
210 2870
231 3311
253 3795
276 4324
300 4900
325 5525
351 6201
378 6930
406 7714
435 8555
465 9455
496 10416
528 11440
561 12529
595 13685
630 14910
666 1620...

result:

ok N=1000, Q=155875