UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#113588#1654. 打印乘法口诀金字塔Dsh20061000ms1208kbC++197b2020-07-25 12:26:082020-07-25 12:26:09

answer


详细

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

Test #1:

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

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 ...

result:

ok 5 lines

Test #2:

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

input:

2

output:

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

result:

ok 2 lines

Test #3:

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

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  ...

result:

ok 9 lines

Test #4:

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

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...

result:

ok 20 lines

Test #5:

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

input:

1

output:

1*1=1  

result:

ok single line: '1*1=1  '