PSNote/Problem Solving [BOJ-2953]나는요리사다 WONDY 2017. 7. 17. 03:19 단순구현click source (C++11)접기 123456789101112131415161718#include<cstdio>int ans[2];int totalScore[5];int main(){ for(int person = 0 ; person < 5 ; person++){ for(int score = 0 ; score < 4 ; score++){ int t; scanf("%d",&t); totalScore[person]+=t; if(ans[1] < totalScore[person]){ ans[1] = totalScore[person]; ans[0] = person; } } } printf("%d %d", ans[0]+1, ans[1]); return 0;} Colored by Color Scriptercs 접기