알림 시계
2023. 1. 27. 16:28ㆍ개인공부/코딩테스트
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <iostream>
using namespace std;
int main()
{
int Hour, Minute;
cin >> Hour >> Minute;
Minute -= 45;
if (Minute < 0)
{
Minute += 60;
--Hour;
if (Hour == -1)
{
Hour = 23;
}
}
cout << Hour << " " << Minute;
return 0;
}
|
cs |