1058. A+B in Hogwarts
来源:互联网 发布:java编程思想 豆瓣 编辑:程序博客网 时间:2024/05/16 11:41
题目链接:http://pat.zju.edu.cn/contests/pat-a-practise/1058
// 时间计算变形// // // #include <stdio.h>struct Num{int g;int s;int k;};int main(){#ifdef ONLINE_JUDGE#elsefreopen("E:\\in.txt", "r", stdin);#endifNum a, b;scanf("%d.%d.%d", &a.g, &a.s, &a.k);scanf("%d.%d.%d", &b.g, &b.s, &b.k);a.g += b.g;a.s += b.s;a.k += b.k;if(a.k >= 29){a.k -= 29;a.s ++;}if(a.s >= 17){a.s -= 17;a.g ++;}printf("%d.%d.%d\n", a.g, a.s, a.k);return 0;}
0 0
- 1058. A+B in Hogwarts
- 1058. A+B in Hogwarts
- 1058.A+B in Hogwarts
- 1058. A+B in Hogwarts
- 1058. A+B in Hogwarts
- 1058. A+B in Hogwarts
- A+B in Hogwarts
- A+B in Hogwarts
- A+B in Hogwarts
- PAT-A 1058. A+B in Hogwarts
- 1058. A+B in Hogwarts (20)- PAT
- 【PAT】1058. A+B in Hogwarts (20)
- 1058. A+B in Hogwarts (20)
- 1058. A+B in Hogwarts (20)
- 1058. A+B in Hogwarts (20)
- PAT 1058. A+B in Hogwarts (20)
- 1058. A+B in Hogwarts (20)
- 1058. A+B in Hogwarts (20)
- fzu 2124
- error:2014-03-11周二:在编写win32程序时依旧使用控制台程序。
- Android 游戏引擎
- android – 多屏幕适配相关
- poj 图论题目分类(转载)
- 1058. A+B in Hogwarts
- SUSE Linux 11里Nginx+Resin+JSP+Memcached+MySQL安装配置整合
- Android引入第三方jar包的方法
- SQLite入门之一简单介绍
- 大话设计模式-原型模式(学习笔记)
- MySQL报错Couldn’t find MySQL manager (/usr/bin/mysqlmanager) or server (/usr/bin/mysqld_safe)
- Webview--如何让加载进来的页面自适应手机屏幕分辨率
- 1061. Dating<福尔摩斯的约会>
- html5的Input Attr :Placeholder,大家还记得这个吗?