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;
}
}



你可能感兴趣的:(log)