[백준/Java] 5522 : 카드 게임

SEOP·2024년 6월 18일
0

import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new BufferedReader(new InputStreamReader(System.in)));
        BufferedWriter bw = new BufferedWriter(new BufferedWriter(new OutputStreamWriter(System.out)));

        int totalScore = 0;

        for(int i = 0 ; i < 5 ; i++){
            int score = Integer.parseInt(br.readLine());
            totalScore += score;
        }
        bw.write( String.valueOf(totalScore) );

        bw.flush();
        bw.close();
    }
}
profile
응애 나 애기 개발자

0개의 댓글