UVaOJ 10300 Ecological Premium
2012-02-19 11:18
381 查看
理解错误:Do not output any blank lines.
注意: No integer in the input is greater than 100000 or less than 0.
注意: 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; } }
相关文章推荐
- UVaOJ 10300 - Ecological Premium
- UVaOJ 10300 - Ecological Premium
- 10300 - Ecological Premium
- UVAOJ 497 - Strategic Defense Initiative
- UvaOJ 10361 - Automatic Poetry
- UvaOJ 112 - Tree Summing
- uvaoj 489
- UVaOJ 10047 - The Monocycle
- UVaOJ 10034 - Freckles
- UVaOJ 414 - Machined Surfaces
- UVaOJ 100 - The 3n + 1 problem
- UVaOJ 10115 - Automatic Editing
- uvaoj10010
- UVaOJ297---Quadtrees
- UVaOJ10132 - File Fragmentation
- uvaoj 321 - The New Villa
- UVAOJ 156字符串查找
- UVa10300 - Ecological Premium -难度0
- 10300 - Ecological Premium
- UVaOJ_10066 - The Twin Towers