Back to Campus: MINDAYSRET

                     

link: https://www.codechef.com/CU1PP0006/problems/MINDAYSRET

Finally, College has started calling students back to campus. There are so many students and thus due to some safety measures the college can’t call back all the students on the same day. It currently has the capacity of screening KK students on a single day. There is a total of NN students. What’s the minimum number of days required for all the students to be back on the campus?

Solution:

#include<bits/stdc++.h>
using namespace std;

int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n,k;
        cin>>n>>k;
        int ans = ceil((double)n/k);
        cout<< ans << "\n";
    }
    return 0;
}