UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#118836#1654. 打印乘法口诀金字塔Meishinan721000ms1200kbC++308b2020-09-06 10:46:202020-09-06 10:46:22

answer


详细

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

Test #1:

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

input:

5

output:

5*5=25
4*4=16 4*5=20 
3*3=9 3*4=12 3*5=15 
2*2=4 2*3=6 2*4=8 2*5=10 
1*1=1 1*2=2 1*3=3 1*4=4 1*5=5 

result:

ok 5 lines

Test #2:

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

input:

2

output:

2*2=4
1*1=1 1*2=2 

result:

ok 2 lines

Test #3:

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

input:

9

output:

9*9=81
8*8=64 8*9=72 
7*7=49 7*8=56 7*9=63 
6*6=36 6*7=42 6*8=48 6*9=54 
5*5=25 5*6=30 5*7=35 5*8=40...

result:

ok 9 lines

Test #4:

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

input:

20

output:

20*20=400
19*19=361 19*20=380 
18*18=324 18*19=342 18*20=360 
17*17=289 17*18=306 17*19=323 17*20=34...

result:

ok 20 lines

Test #5:

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

input:

1

output:

1*1=1

result:

ok single line: '1*1=1'