UVaOJ 10300 Ecological Premium

理解错误:Do not output any blank lines.

注意: No integer in the input is greater than 100000 or less than 0.

/*10300 - Ecological Premium*/
# include <stdio.h>
int main()
{
int n, f;
long long s, a, e, ans;  
scanf("%d", &n);
while (n > 0)
{
ans = 0;
scanf("%d", &f);
while (f > 0)
{
scanf("%lld%lld%lld", &s, &a, &e);
ans += s*e;
--f;
}
printf("%lld\n", ans);    /*Do not output any blank lines.*/
--n;
}
}



posted on 2012-02-19 11:18  getgoing  阅读(314)  评论(0编辑  收藏  举报

导航