简单题,,学会巧妙用scanf读入
类似于分钟转换的题
#include <cstdio>
#include <iostream>
#include <cstring>
using namespace std;
long long a, b, c, d, e, f;
long long sum;
int main(){
scanf("%lld.%lld.%lld %lld.%lld.%lld",&a,&b,&c,&d,&e,&f);
sum = c + f + (b+e)*29 + (a+d)*17*29;
printf("%lld.%lld.%lld",sum/(17*29),sum%(17*29)/29,sum%(17*29)%29);
return 0;
}