5565

#include <stdio.h>

int main(void){
    int total_price=0;

    // 총 가격 받기
    scanf("%d", &total_price);

    // 총 가격에 9권의 가격 입력 받아서 빼기
    for(int i = 0; i < 9; i++){
        int price =0;
        scanf("%d", &price);

        total_price -= price;
    }

    // 출력
    printf("%d", total_price);
}

'백준' 카테고리의 다른 글

[ 백준 / C ] 17588번 : Missing Numbers  (0) 2025.09.05
[ 백준 / C ] 9494번 : Text Roll  (0) 2025.09.04
[ 백준 / C ] 8393번 : 합  (0) 2025.09.02
[ 백준 / C ] 15726번 : 이칙연산  (0) 2025.09.01
[ 백준 / C ] 2557번 : Hello World  (0) 2025.08.29

+ Recent posts