2 solutions

  • 1
    @ 2025-8-18 16:01:56
    #include<bits/stdc++.h>
    using namespace std;
    int a,b;
    int main(){
    	cin>>a>>b;
    	if(b%a==0){
    		cout<<b/a;
    	}else{
    		cout<<b/a+1;
    	}
    	
    	
    	return 0;
    }
    
    • 0
      @ 2026-3-5 21:42:05
      #include<bits/stdc++.h>
      using namespace std;
      int a,b; 
      int main()
      {
      	cin>>a>>b;
      	cout<<(b+a-1)/a;
      	return 0;
      }
      
      • 1

      Information

      ID
      2828
      Time
      1000ms
      Memory
      64MiB
      Difficulty
      1
      Tags
      # Submissions
      74
      Accepted
      42
      Uploaded By