土拨鼠坏掉的时光机
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.
Background
土拨鼠秋秋喜欢看科幻小说, 这一天他幻想自己可以时空旅行, 但是他的时光飞船好像出现了故障.
Description
今年是a年, 秋秋想要到a+n年去旅行, 但是他的时光机出现了故障, 他被传送到了其他的年份. 假如说n的值为123, 时光机将会计算n的各个数位之和(1+2+3), 然后将秋秋传送到a+6年.
现在秋秋想知道, 他被传送到了哪一年, 并且判断这一年是平年还是闰年
Format
Input
输入两个整数a, n.
a表示当前年份, n表示秋秋希望传送到n年之后
Output
第1行输出实际被传送到的年份
第2行输出这一年是平年还是闰年, 如果是闰年, 输出"run", 如果是平年输出"pong".
Samples
2022 123
2028
run
Limitation
1s, 1024KiB for each test case.
大明
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 38
- Start at
- 2025-2-11 16:00
- End at
- 2025-2-28 8:00
- Duration
- 400 hour(s)
- Host
- Partic.
- 7