Python (2) 썸네일형 리스트형 백준 2884번 [C,C++ ,Python] IF문 # 2884 ( IF 문 int ) 1. 정수 입력 2개 (변수 2개 H, M ) 2. 시간은 24시 기준으로 표현 3. 시작은 H= 0 , M =0 끝 H =23 , M 59 # 45분 일찍 알람설정하기 분석 EX ] 9: 00 -> 8: 15 9: 20 -> 8: 35 9: 44 -> 8 :59 ------------------------------------- 9: 45 -> 9: 00 9: 50 -> 9: 05 0: 0 (24: 00) -> 23:15 ------------------------------------ M < 45 M = 60 - 45 + M H == 0 H = 23 , H = H -1 , C #include int main() { int M = 0 , H =0; scanf("%d .. 백준 1000번 [C/C++/Python] 입출력사칙연산 #1000 A+B (유사 문항 - #1001 및 그외 사칙연산) C #include void main() { int a, b; scanf("%d %d", &a, &b); printf("%d",a+b); } ** scnaf( , 주솟값 ) c++ #include using namespace std; int main() { int a,b; cin >> a; cin >> b; cout 이전 1 다음