{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"MD","content":"Alice和Bob在控制一个棋子在日历上走,游戏有两种操作方式:\n1. 移动到下一天。\n2. 如果下个月存在跟当前日期一样的日期,就可以移动到下一个月的同一天。\n\n棋子的日期一旦超过2001年11月4日,最后一个移动的人就输了。\n\n一开始棋子在YY MM DD位置,Alice先手。\n\n需要考虑闰年。"}},{"title":"Input","value":{"format":"MD","content":"第一行一个整数$T$,表示数据组数。\n每组数据包括一行,Y M D,表示日期,日期在1900.1.1到2001.11.4中。"}},{"title":"Output","value":{"format":"MD","content":"每组数据输出一行,若在Alice胜利,则输出\"YES\",否则输出\"NO\""}},{"title":"Sample","value":{"format":"MD","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e\u003cpre\u003e3 \n2001 11 3 \n2001 11 2 \n2001 10 3 \n\u003c/pre\u003e\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e\u003cpre\u003eYES \nNO \nNO \n\u003c/pre\u003e\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}