UVa 12136
来源:互联网 发布:建筑工程会计记账软件 编辑:程序博客网 时间:2024/06/11 18:23
题目:Danny有一个时间段要陪妻子,还有一段时间有会议安排,求解是否可以参加会议。
分析:简单题。直接按字符串比较即可。
说明:(⊙v⊙)。
#include <stdio.h>#include <stdlib.h>#include <string.h>char time1_s[6], time1_e[6];char time2_s[6], time2_e[6];int main(){int n;while (~scanf("%d",&n)) for (int t = 1; t <= n; ++ t) {scanf("%s%s",time1_s,time1_e);scanf("%s%s",time2_s,time2_e);printf("Case %d: ",t);if (strcmp(time2_e, time1_s) < 0 || strcmp(time1_e, time2_s) < 0) {puts("Hits Meeting");}else {puts("Mrs Meeting");}}return 0;}
阅读全文
0 0
- UVa 12136
- uva
- UVA
- UVA
- UVA
- uva
- UVA
- UVA
- UVA
- UVA
- UVA
- UVA
- UVA
- UVA
- UVA
- UVA
- UVA
- UVA
- 解决importerror no module named mysqldb
- XSS跨站脚步攻击及防范
- Substring Anagrams
- mac电脑原始创建vue框架及运行项目
- 如何设置mysql数据库为utf-8编码
- UVa 12136
- AngularJS 学习笔记(2)-MVC,$scope,$watch
- ant+jmeter+jenkins接口测试
- 【Python】Matplotlib画图(五)——多图片共框
- redis 操作
- Android Studio 引入第三方类库的问题failed to resolve
- Python 爬虫QQ音乐
- 正则表达式 python3.x (re模块)
- mysql常用函数