#A. 练39.1 书香阁座位

    Type: Default 1000ms 256MiB

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

说明

Battle小学的书香阁有312312个座位,已知第一排有1515个座位,以后每排比上一排增加22个座位,最后一排有几个座位?一共有几排?
试编一程序算一算。

输入格式

无。

输出格式

对于倒数第二行,输出最后一排的座位数。
对于最后一行,输出排数。

样例

最后一排的座位数:37
排数:12

昆工附中5月24日Python测试

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
5
Start at
2024-5-24 16:30
End at
2024-5-24 18:30
Duration
2 hour(s)
Host
Partic.
21