You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#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;
|
|
} |