[백준/C++] 11134 - 쿠키애호가

orangesnail·2025년 8월 18일

백준

목록 보기
145/169

https://www.acmicpc.net/problem/11134


#include <iostream>
using namespace std;

int main() {
    int t;
    cin >> t;

    while (t--) {
        int n, c;
        cin >> n >> c;

        if (n % c != 0) 
            cout << n / c + 1 << endl;
        else
            cout << n / c << endl;
    }
    return 0;
}
profile
초보입니다. 피드백 환영합니다 😗

0개의 댓글