Note
- 进制转换
Code:
#include<bits/stdc++.h>
using namespace std;
int main(){
#ifndef ONLINE_JUDGE
freopen("data.txt","r",stdin);
#endif
int a=0,b=0,c=0;
int x,y,z;
for(int i=0;i<2;i++){
scanf("%d.%d.%d",&x,&y,&z);
a+=x;
b+=y;
c+=z;
}
a=a+(b+c/29)/17;
b=(b+c/29)%17;
c%=29;
printf("%d.%d.%d",a,b,c);
return 0;
}