Dreamin0910

博客园 首页 新随笔 联系 订阅 管理

此题目来源于LZOI

题目传送门

#include <iostream>
using namespace std;

int main() {
    int m, n;
    cin >> m >> n;

    int booksPerStudent = m / n;
    int remainingBooks = m % n;

    cout << booksPerStudent << " " << remainingBooks << endl;

    return 0;
}

 

posted on 2023-08-12 19:23  丘啵啵  阅读(14)  评论(0)    收藏  举报