top1编程
← 返回题目
题解

【入门】计算考试需要的教室

1 条题解

  • 0
    @ 2026-7-29 0:16:19
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int a,b,c;
        cin>>a>>b;
        if(a%b==0){
            c=a/b;
            cout<<c;
        }else{
            c=a/b+1;
            cout<<c;
        }
        return 0;
    }
    
    • 1