#B. [GESP202403 一级] 1. 小杨买书

    Type: Default 1000ms 256MiB

[GESP202403 一级] 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.

题目描述

小杨同学积攒了一部分零用钱想要用来购买书籍,已知一本书的单价是 13 元,请根据小杨零用钱的金额,编写程序计算可以购买多少本书,还剩多少零用钱。

输入格式

输入一个正整数 m,表示小杨拥有的零用钱数。

输出格式

输出包含两行,第一行,购买图书的本数;第二行,剩余的零用钱数。

样例

100
7
9
199
15
4

提示

对全部的测试数据,保证 0<m<200。

C++ GESP 2024年3月 一级

Not Attended
Status
Done
Rule
OI
Problem
3
Start at
2024-4-24 9:30
End at
2024-5-2 17:30
Duration
200 hour(s)
Host
Partic.
35