#include<iostream>using namespace std;int main(void){ //freopen("in.txt", "r", stdin); int g1, s1, k1; int g2, s2, k2; scanf("%d.%d.%d %d.%d.%d", &g1, &s1, &k1, &g2, &s2, &k2); int g3, s3, k3; k3 = (k2 + k1) % 29; s3 = (s2 + s1 + (k2 + k1) / 29) % 17; g3 = g1 + g2 + (s2 + s1 + (k2 + k1) / 29) / 17; printf("%d.%d.%d/n", g3, s3, k3); return 0;}
新闻热点
疑难解答