1061. 判断题(15)
2017-05-13 20:28
211 查看
#include<stdio.h> int main() { int N,M; int score[100]={0},answer[100]={0},stu_score=0; scanf("%d%d",&N,&M); int i=0; for(i=0; i<M; i++) scanf("%d",&score[i]); for(i=0; i<M; i++) scanf("%d",&answer[i]); for(i=0; i<N; i++) { stu_score = 0; for(int j=0; j<M; j++) { int temp=0; scanf("%d",&temp); if(temp==answer[j]) stu_score += score[j]; } printf("%d\n",stu_score); } return 0; }
相关文章推荐
- PAT——1061. 判断题(15)
- 1061. 判断题(15)
- 1061. 判断题(15)
- 1061. 判断题(15)解题报告
- 1061. 判断题(15)
- 1061. 判断题(15)
- 1061. 判断题(15)
- 1061. 判断题(15)
- 1061. 判断题(15)
- 1061. 判断题(15)
- 1061. 判断题(15)
- 1061. 判断题(15) c++
- 1061. 判断题(15)
- 1061. 判断题(15)
- PAT乙级-1061. 判断题(15)
- PAT乙题1061. 判断题(15)
- 1061. 判断题(15)
- PAT乙级 1061. 判断题(15)
- PAT 1061. 判断题(15)
- 1061. 判断题(15)