【Codeforces Round #476 (Div. 2) [Thanks, Telegram!] A】Paper Airplanes
【链接】 我是链接,点我呀:)
【题意】
【题解】
统计每个人需要的sheet个数。 乘上k 然后除p就是需要的pack个数了【代码】
#include <bits/stdc++.h>
#define LL long long
#define rep1(i,a,b) for (int i = a;i <= b;i++)
#define rep2(i,a,b) for (int i = a;i >= b;i--)
#define all(x) x.begin(),x.end()
#define pb push_back
#define lson l,mid,rt<<1
#define rson mid+1,r,rt<<1|1
using namespace std;
const double pi = acos(-1);
const int dx[4] = {0,0,1,-1};
const int dy[4] = {1,-1,0,0};
int k,n,s,p;
int main(){
#ifdef LOCAL_DEFINE
freopen("rush_in.txt", "r", stdin);
#endif
ios::sync_with_stdio(0),cin.tie(0);
cin >> k >> n >> s >> p;
int need = (n-1)/s+1;
need*=k;
need=(need-1)/p+1;
cout<<need<<endl;
return 0;
}