parent
9a5c78a974
commit
6ee82601ad
@ -0,0 +1,16 @@
|
||||
#include<iostream>
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int a,b;
|
||||
scanf("%d:%d",&a,&b);
|
||||
if(a<12||(a==12&&b==0))printf("Only %02d:%02d. Too early to Dang.",a,b);
|
||||
else {
|
||||
int sum=a-12;
|
||||
if(b<0)sum = sum + 1;
|
||||
for(int i=1;i<=sum;i++)
|
||||
printf("Dang");
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in new issue