L1-018. 大笨钟
来源:互联网 发布:电脑学影视制作软件 编辑:程序博客网 时间:2024/06/03 08:35
//AC
#include <iostream>#include <cstdlib>#include <stdio.h>#include <algorithm>#include <math.h>#include <string.h>#include <queue>#include <stack>#include <vector>#include <map>#include <set>typedef long long ll;using namespace std;int main(){ string s; cin>>s; if((s[0]-'0')==0||((s[0]-'0')==1&&(s[1]-'0')==0)||((s[0]-'0')==1&&(s[1]-'0')==1)||((s[0]-'0')==1&&(s[1]-'0')==2)){ // 小于12 不敲 printf("Only %d%d:%d%d. Too early to Dang.",s[0]-'0',s[1]-'0',s[3]-'0',s[4]-'0'); } else{ int t; t=((s[0]-'0')*10+(s[1]-'0'))-12; if((s[3]-'0')>0||(s[4]-'0')>0){ for (int i=1; i<=t+1; i++) { printf("Dang"); } } else{ for (int i=1; i<=t; i++) { printf("Dang"); } } } printf("\n"); return 0;}
0 0
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟 java
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- L1-018. 大笨钟
- ACM天梯赛练习L1-018. 大笨钟
- 天梯赛练习题 L1-018. 大笨钟
- EventBus学习
- 中文路径传参问题
- c++第二次试验-输出本月有多少天(作业)
- Retrofit用法
- #学志#项目进度02
- L1-018. 大笨钟
- PX4位置控制offboard模式说明
- Unity3D 大型游戏 最后一站 源码 部分重点匹配战斗(四)(13)
- Android databinding RecycleView item 子控件点击事件
- tinker热修复gradle接入
- phpcmsV9 首页分页
- postgresql监控工具pgstatspack的安装及使用
- LeetCode 110. Balanced Binary Tree 题解
- C#笔记(一)抽象方法、虚方法、接口