*참고
불기 = 서기 + 543년
[코드]
#include <stdio.h>
int main(void) {
int b, s;
scanf("%d", &b);
s = b - 543;
printf("%d", s);
}
'알고리즘 > 백준' 카테고리의 다른 글
[단계별로 풀어보기-Java] 1단계 입출력과 사칙연산 (2) - BufferedReader, StringBuilder 활용하기 (0) | 2025.01.14 |
---|---|
[단계별로 풀어보기-Java] 1단계 입출력과 사칙연산 (1) - BufferedReader, System.in 활용하기 (0) | 2025.01.14 |
[c] 10926번 ??! (0) | 2023.01.28 |
[c] 10869번 사칙연산 (0) | 2023.01.28 |
[c] 1008번 A/B 계산하기 (0) | 2023.01.28 |