#include<cstdio> bool fun(int n){ return n % 400 == 0 || n % 100 != 0 && n % 4 == 0; } int main(){ int n; int mday[13] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; while (scanf("%d", &n) != EOF){ for (int i = 0; i < n; i++){ int year, month, day, gap; scanf("%d%d%d%d...