= An Easy Task = http://acm.hdu.edu.cn/showproblem.php?pid=1076 {{{#!cplusplus /*written by czk*/ #include int isleap(int y) { return y%400 == 0 || y%4 == 0 && y%100 != 0; } int main() { int t; scanf("%d", &t); while(t--) { int y, n; scanf("%d%d", &y, &n); while(n > 0) if(isleap(y++)) n--; printf("%d\n", y-1); } } }}}