#include <iostream> using namespace std; int main() { int n;cin>>n; while(n--){ int year,month,day; cin>>year>>month>>day; int arr[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; if(year %400==0 || ((year%100 !=0)&&(year%4 ==...