24568
#include <stdio.h>
int main(void){
int student_num = 28;
int box1, box2;
// 입력
scanf("%d", &box1);
scanf("%d", &box2);
// 남은 케이크 구하기
int remain_cake = (box1*8 + box2*3)-student_num;
// 출력
printf("%d", remain_cake);
return 0;
}

'백준' 카테고리의 다른 글
| [ 백준 / C ] 5339번 : 콜센터 (0) | 2025.09.22 |
|---|---|
| [ 백준 / C ] 9295번 : 주사위 (0) | 2025.09.19 |
| [ 백준 / C ] 10807번 : 개수 세기 (0) | 2025.09.17 |
| [ 백준 / C ] 4758번 : Filling Out the Team (0) | 2025.09.16 |
| [ 백준 / C ] 1181 : 단어 정렬 (0) | 2025.09.15 |