?? 2181.cpp
字號(hào):
/* This Code is Submitted by wywcgs for Problem 2181 on 2006-03-27 at 11:13:37 */
#include <cstdio>
#include <cstring>
const int L = 64;
const int NON = 128;
int main()
{
char unit[L], name[L], lack[NON][L];
int i, n = 0;
double a, r;
while(scanf("%lf %s %lf%*c", &a, unit, &r) != EOF && a >= 0) {
gets(name);
if(a*100 < r) strcpy(lack[n++], name);
else printf("%s %.1lf %s %.0lf%%\n", name, a, unit, 100*a/r);
}
printf("Provides no significant amount of:\n");
for(i = 0; i < n; i++) printf("%s\n", lack[i]);
return 0;
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -