PAT(甲级)A+B in Hogwarts (20)
来源:互联网 发布:数据的随机噪声 编辑:程序博客网 时间:2024/06/05 14:21
题目:https://www.patest.cn/contests/pat-a-practise/1058
代码:
#include<cstdio>#include<cstring>#include<cstdlib>#include<algorithm>using namespace std;int main(){ int a1,b1,c1,a2,b2,c2,a3,b3,c3;scanf("%d.%d.%d",&a1,&b1,&c1);scanf("%d.%d.%d",&a2,&b2,&c2); c3=(c1+c2)%29;b3=(b1+b2+(c1+c2)/29)%17;a3=a1+a2+(b1+b2+(c1+c2)/29)/17;printf("%d.%d.%d",a3,b3,c3); system("pause");}
0 0
- PAT(甲级)A+B in Hogwarts (20)
- 1058. A+B in Hogwarts (20)-PAT甲级真题
- PAT甲级.1058. A+B in Hogwarts (20)
- 【PAT甲级】1058. A+B in Hogwarts (20)
- 1058. A+B in Hogwarts (20) PAT 甲级
- PAT甲级练习1058. A+B in Hogwarts (20)
- PAT甲级1058. A+B in Hogwarts (20)
- 1058. A+B in Hogwarts (20)-PAT甲级
- PAT 甲级 1058. A+B in Hogwarts (20)
- 1058. A+B in Hogwarts (20)- PAT
- 【PAT】1058. A+B in Hogwarts (20)
- PAT 1058. A+B in Hogwarts (20)
- PAT 1058. A+B in Hogwarts (20)
- pat 1058. A+B in Hogwarts (20)
- PAT 1058. A+B in Hogwarts (20)
- PAT 1058. A+B in Hogwarts (20)
- PAT-A+B in Hogwarts (20)
- PAT 1018A+B in Hogwarts (20)
- Codeforces Round #390 (Div. 2)A Lesha and array splitting
- String 找重复数据
- Linux kernel启动流程简介
- Open Syllabus Project项目推荐——全美大学书籍喜好数据库
- Android项目模板化
- PAT(甲级)A+B in Hogwarts (20)
- PHP的轻量消息队列php-resque使用说明
- [Hadoop]数据复制DistCp
- CSS选择器速查表
- 地址栏参数操作、方法整理【肖明伟】
- 详解Twitter开源分布式自增ID算法snowflake,附演算验证过程
- 洛谷 P1346 电车
- office新建word excel ppt时,图标显示异常的问题
- Openwrt之libffmpeg-custom配置编译过程