当前位置:网站首页>PAT甲级 1058 A+B in Hogwarts
PAT甲级 1058 A+B in Hogwarts
2022-08-08 00:53:00 【九是否非随机的称呼】
#include<iostream>
#include<vector>
#include<bits/stdc++.h>
using namespace std;
int main(void){
long long x0, y0, z0, x1, y1, z1;
scanf("%lld.%lld.%lld %lld.%lld.%lld", &x0, &y0, &z0, &x1, &y1, &z1);
long long z00, z11, sum;
z00 = x0 * 17 * 29 + 29 * y0 + z0;
z11 = x1 * 17 * 29 + 29 * y1 + z1;
sum = z00 + z11;
x0 = sum/29;
x1 = sum%29;
y0 = x0/17;
y1 = x0%17;
z1 = y0;
printf("%lld.%lld.%lld", z1, y1, x1);
return 0;
}边栏推荐
猜你喜欢
随机推荐
pnpm简介和用法
Flexible and easy-to-use sql monitoring script part6
pycharm connect to remote server
陈强教授《机器学习及R应用》课程 第六章作业
BOSS direct hire again explodes erotic recruitment scandal, interviewer's behavior is unsightly
陈强教授《机器学习及R应用》课程第十一章作业
带你刷(牛客网)C语言百题(第五天)
5、基于EasyExcel的导入导出
MySQL notes - 05 data table operations
Is it safe and reliable to open a securities account?
嵌入式分享合集31-串口
Stream did not contain valid UTF-8 ——vs code 中 rust在debug时报错,中文乱码问题
一套极简的MQTT使用接口EasyMqttClient
Good news | Hongshi data has obtained CMMI level 3 certification!Welcome to the self-developed unified operation and maintenance monitoring platform!
Failed to initialize NVML: Driver/library version mismatch
章鱼应用链|内容策展协作组织 DISCOVOL DAO 主网8月上线
【程序员的七夕浪漫时刻】
头脑风暴:除数博弈
Stack SQL injection, rounding
sci 顶刊中的 3D 密度函数图
https://github.com/ZouJiu1/PAT








