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