AS. 练27.1 叮叮当当

    Type: RemoteJudge 1000ms 64MiB

练27.1 叮叮当当

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

松鼠老师和尼克玩报数游戏。松鼠老师数到22的倍数时,尼克就说“叮叮”;松鼠老师数到33的倍数时,尼克就说“当当”;松鼠老师数到2和3的倍数时,尼克就说“叮叮当当”。
试编一程序,模拟1201\sim 20的报数游戏。

输入格式

输出格式

输出每个数,说“叮叮”或“当当”时换行。

样例

1 2 叮叮
3 当当
4 叮叮
5 6 叮叮当当
7 8 叮叮
9 当当
10 叮叮
11 12 叮叮当当
13 14 叮叮
15 当当
16 叮叮
17 18 叮叮当当
19 20 叮叮

2025年夏令营新人班【查】3

Not Claimed
Status
Done
Problem
81
Open Since
2025-7-7 0:00
Deadline
2025-8-22 23:59
Extension
24 hour(s)