UOJ Logo

NOI.AC

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#112663#1006. 开关灯SimonSun1003ms1204kbC++555b2020-07-19 15:10:462020-07-19 15:10:46

answer


Details

小提示:点击横条可展开更详细的信息

Test #1:

score: 20
Accepted
time: 0ms
memory: 1196kb

input:

10 10


output:

1,4,9

result:

ok single line: '1,4,9'

Test #2:

score: 20
Accepted
time: 0ms
memory: 1196kb

input:

100 10


output:

1,4,9,11,12,13,14,15,17,18,19,20,21,23,27,29,31,35,37,41,42,43,44,47,52,53,54,56,59,60,61,67,68,70,7...

result:

ok single line: '1,4,9,11,12,13,14,15,17,18,19,...,79,81,83,89,90,92,97,98,99,100'

Test #3:

score: 20
Accepted
time: 0ms
memory: 1200kb

input:

100 15


output:

1,4,9,17,18,19,20,21,22,23,24,26,27,28,29,30,31,33,35,36,37,39,41,43,45,47,48,53,54,55,59,60,61,65,6...

result:

ok single line: '1,4,9,17,18,19,20,21,22,23,24,...,79,81,83,88,89,91,92,96,97,100'

Test #4:

score: 20
Accepted
time: 0ms
memory: 1200kb

input:

100 50


output:

1,4,9,16,25,36,49,51,52,53,54,55,56,57,58,59,60,61,62,63,65,66,67,68,69,70,71,72,73,74,75,76,77,78,7...

result:

ok single line: '1,4,9,16,25,36,49,51,52,53,54,...9,90,91,92,93,94,95,96,97,98,99'

Test #5:

score: 20
Accepted
time: 3ms
memory: 1204kb

input:

1000 500


output:

1,4,9,16,25,36,49,64,81,100,121,144,169,196,225,256,289,324,361,400,441,484,501,502,503,504,505,506,...

result:

ok single line: '1,4,9,16,25,36,49,64,81,100,12...93,994,995,996,997,998,999,1000'