#include<iostream>
#include<algorithm>
using namespace std;
int main(){
long long a1, b1, c1, a2, b2, c2;
scanf("%lld.%lld.%lld %lld.%lld.%lld", &a1, &b1, &c1, &a2, &b2, &c2);
long long sum = (a1 + a2) * 29 * 17 + (b1 + b2) * 29 + c1 + c2;
long long temp1 = 0, temp2 = 0, temp3 = 0;
temp1 = sum / (29 * 17);
temp2 = (sum - temp1 * 29 * 17) / 29;
temp3 = sum - temp1 * 29 * 17 - temp2 * 29;
printf("%lld.%lld.%lld", temp1, temp2, temp3);
}
1058 A+B in Hogwarts
最新推荐文章于 2022-11-07 10:52:38 发布