#include <bits/stdc++.h> #include <unordered_set> //#define int long long using ll = long long; using namespace std; int dx[] = { 0,0,1,-1,1,1,-1,-1 }; int dy[] = { 1,-1,0,0,1,-1,1,-1 }; int days[13] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; const int mod = 1e9 + 7; const ...