blob: 1b996e15f123fa214cea9495792a4eedba52e35f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include <iostream>
using namespace std;
int main()
{
int h, m;
cin >> h >> m;
for (int min = m + 1; min <= 59; min++)
{
if (h < 10)
cout << 0;
cout << h << ":";
if (min < 10)
cout << 0;
cout << min << endl;
}
for (int hour = h+1; hour <= 23; hour++)
{
for (int min = 0; min <= 59; min++)
{
if (hour < 10)
cout << 0;
cout << hour << ":";
if (min < 10)
cout << 0;
cout << min << endl;
}
}
}
|