새소식

Algorithm/Acmicpc.net (백준)

[C언어] 백준 : 치킨 두 마리 (14489번)

  • -
#include <stdio.h>
int main()
{
    int a, b, c;
    scanf("%d %d\n %d", &a, &b, &c);
    if(a+b >= c*2){
        printf("%d", a+b - c*2);
    }
    else{
        printf("%d", a+b);
    }
    return 0;
}
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.