标签:
Time Limit: 500/200 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)
Total Submission(s): 1361 Accepted Submission(s): 747
///总共需要n*k分钟,所以m个医生总共需要n*k/m分钟 #include<iostream> #include<cstdio> #include<cstring> #include<queue> using namespace std; int main() { int tcase; scanf("%d",&tcase); while(tcase--) { int n,k,m; scanf("%d%d%d",&n,&k,&m); if(n<=m) printf("%d\n",k); else { int all = n*k; if(all%m==0) printf("%d\n",all/m); else printf("%d\n",all/m+1); } } return 0; }
标签:
原文地址:http://www.cnblogs.com/liyinggang/p/5616595.html