1 solutions
-
0
C :
#include<stdio.h> int main(){ int m,n; int count; scanf("%d %d",&m,&n); if(m%n==0){ count=m/n; }else{ count=m/n+1; } printf("%d",count); return 0; }
C++ :
#include<iostream> using namespace std; int main(){ int m,n; cin>>m>>n; if(m % n == 0){ cout<< m / n <<endl; }else{ cout<<m / n + 1 <<endl; } return 0; }
Python :
m,n = map(int,input().split()); if m % n == 0: print(m//n) elif m % n > 0: print(m//n + 1)
- 1
Information
- ID
- 10868
- Time
- 1000ms
- Memory
- 16MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By