mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
5ed1cf19d0
3200-3299
25 lines
471 B
C++
25 lines
471 B
C++
#include<stdio.h>
|
|
int main()
|
|
{
|
|
int n,m,n1;
|
|
while(scanf("%d",&n)!=EOF&&n!=-1)
|
|
{
|
|
m=n;
|
|
n/=30;
|
|
n=15-n;
|
|
if(n>=12)
|
|
n-=12;
|
|
if(m%30==0)
|
|
printf("Exactly %d o'clock\n",n);
|
|
else
|
|
{
|
|
if(n==0)
|
|
n1=11;
|
|
else
|
|
n1=n-1;
|
|
printf("Between %d o'clock and %d o'clock\n",n1,n);
|
|
}
|
|
}
|
|
return 0;
|
|
}
|