1058. A+B in Hogwarts
来源:互联网 发布:网络维护合同范本 编辑:程序博客网 时间:2024/05/16 08:17
#include<iostream>using namespace std;int main(){ int a[3],b[3]; scanf("%d.%d.%d%d.%d.%d",a+0,a+1,a+2,b+0,b+1,b+2); for(int i=0;i<3;++i) a[i]+=b[i]; a[1]+=a[2]/29;a[2]%=29; a[0]+=a[1]/17;a[1]%=17; printf("%d.%d.%d",a[0],a[1],a[2]);}
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)
- Advanced I/O Functions
- XMPP协议相关
- 获取所有应用信息,判断系统应用或第三方应用,监听应用安装和卸载
- 无法使用虚拟目录密码作为用户 XXX 在本地登录到
- QuickTest Professional 11 破解 QTP11破解 无限使用30天 无需卸载. windows win7
- 1058. A+B in Hogwarts
- ArrayUtils
- Java出现的一些小问题
- 模仿WizardDialog外观的TitleAreaDialog子类
- Gson简要使用笔记
- Eclipse:Cannot complete the install because of a conflicting dependency.问题解决
- web项目学习之spring-security
- jQuery Js 日期格式的转换
- wifi共享精灵教你找工作