朱色虫居
Pages
Home
Featured Posts
2006/10/04
10300-Ecological Premium
/*
"Ecological Premium"
Level:0.5
Date:2006/10/3
*/
#include
main(){
int n=0,f=0,area=0,animal=0,level=0,sum=0;
scanf("%d",&n);
while(n-- > 0){
scanf("%d",&f);
while(f-- > 0){
scanf("%d %d %d",&area,&animal,&level);
sum += area*level;
}
printf("%d\n",sum);
sum=0;
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment