#include <string>
#include <vector>
#include <set>
#include <unordered_map>
#include <iostream>
#include <algorithm>
#include <cstdio>
using namespace std;
int main(){
int g, s, k, a, b, t;
scanf("%d.%d.%d",&g, &s, &k);
a = g*29*17 + s*29 + k;
scanf("%d.%d.%d",&g, &s, &k);
b = g*29*17 + s*29 + k;
t = b - a;
if(t >= 0){
printf("%d.%d.%d", t/(29*17), t%(29*17)/29, t%29);
}else {
t = -t;
printf("-%d.%d.%d", t/(29*17), t%(29*17)/29, t%29);
}
return 0;
}
1037 在霍格沃茨找零钱 (20 分)
最新推荐文章于 2024-05-26 13:58:35 发布