ããããã®ã¯æ©ãã«æ¸ããªãã¨å¿ããã®ã§ï¼
âåé¡æ
âé ä½è¡¨
ç¥æ¸å¤§å¦ããShirotsume + MaskoaTS + fky_ = Uriboã¨ãããã¼ã ã§åºå ´ãï¼37ä½ã§äºé¸ééãã¾ããï¼
ç·´ç¿ï¼ç«ã¡åãã«ã¤ãã¦
対é¢ã§ã®ãã¼ã æ¦ã¯å ¨å¡åãã¦ã ã£ãã®ã§ï¼ãã¼ã æ¦ã«ç¹æã®ã³ãã¥ãã±ã¼ã·ã§ã³ãç«ã¡åããªã©ã®ç·´ç¿ãä¸å¿ã¨ãã¦è¡ãï¼ä¸¦è¡ãã¦ABCå¾ã«åå¼·ä¼ãéãã¦ãã¾ããï¼
ã³ã³ãã¹ãåºç¤ã®ç«ã¡åãã¯åºå®åãã¦ï¼ã¾ãShirotsumeãåé¡ãå°å·ãã¦ãã©ã«ããä½ãï¼MasKoaã«ããã³ã¿ããããã¦Aåé¡ã解ãã¦ãããï¼fky_ãå°å·ãããç´ãååããã¨ããã¨ããã¾ã§äºåã«æ±ºãã¦ãã¾ããï¼ãããã¸ãã§ãããµãããã¨å¾ã«é¿ãã®ã§ï¼ã¬ãã¬ãã«æ±ºãã¦ãããã®ã¯æ£è§£ã ã¨æãã¾ãï¼
Shirotsumeã¯3人ã®ä¸ã§æãå¦å¹´ãä¸ãã¤ã¬ã¼ããé«ãã®ã§ï¼é²ãã§ãªã¼ãã¼çç«ã¡åãããã¦ãã¾ããï¼ããã¨ä½åã§è§£ãããï¼ãã¨ãï¼ãä»æãã¤ãã¦ãã解æ³ã¯ããï¼ãã®ãããªå£°æãããã¦ãã¾ããï¼æ³¥æ²¼åããã¨å£°ãæ¸ã£ã¦ãã¾ãã®ã§ï¼ãã®æã«é¼èãããããªå£°æããå¿æãã¦ãã¾ããï¼ã¾ãï¼èª¤èªãå解æ³ã§æéã¨ããã浪費ããã¨ãããã¹ãç·´ç¿ä¸ã«èµ·ãã£ããã¨ããï¼Båé¡ä»¥éã¯åé¡ã®æ¦è¦ã¨æãã¤ãã解æ³ã3人ã§å ±æããã¨ãããã¨ãã«ã¼ã«ã¨ãã¦å®ãã¦ããã¾ããï¼ãããã«ã¤ãã¦ã¯ï¼çµæçã«é¨å±ãçãä¸ãã£ã¦å ¨å¡ã®ããæ°ãå¢ãã¦ããã£ãã®ã§ã¯ãªãããªã¨æãã¾ãï¼ä»å¾ã®ãã¼ã æ¦ã§ããã£ã¦ãããã¨æã£ã¦ãã¾ãï¼
åé¡æ¯ã®è©±
æåã¯ï¼åºç¤ã®å²ãå½ã¦ã決ãã¦ããã®ã§ããï¼ããã¾ãä»åã¯æ©è½ãã¦ããªãã£ãããã§ãï¼çµå±å ¨å¡ã§èªããã¨ã«ãªãã®ã§ï¼ãã£ã¡ã®æ¹ãããããï¼
A
å è¿°ã®ã¨ããï¼Aã¯MasKoaã«ãã£ã¦ãããã¨æ±ºãã¦ãã¾ããï¼ç¹ã«è¦å´ãªããµã¯ãã¨éãã¦ããã¾ããï¼
B
ãã¼æ¦ç¯ã§ãï¼
ã¾ãåé¡æèªãã§ããï¼AtCoderã®PVã¨ãã¶ã£ã¦ãããï½ï½ï½ãã¿ãããªãã¨ãããã¹ã£ã¦ãã¾ããï¼æåã«åé¡æãèªãã§ï¼Shirotsumeãä¸ããã¨ä¸ããã§ãã©ã£ã¦ãã£ã¦ï¼é£ãåãã¨ããã§ç·ãå¼ãã°ããã¨ãã解æ³ãæãã¤ããã®ã§å®è£ ãã¾ããï¼
ããã¦æåºããã¨ï¼
Wrong Answer
ãï¼ãããªâ¦
æ£ç´ã©ãã§ãã°ã£ã¦ãã®ãåãããªãã¦ï¼ããªããããã¯ã«ãªã£ã¦ãã¾ããï¼ããã§fky_ããå ¨é¨ã®ã¨ããã«ç·å¼ãã¦ã¿ã¦ã·ãã¥ã¬ã¼ã·ã§ã³ããã°ãããããã¨ãã天æã¢ããã¤ã¹ããããã®ã§è½ã¡çããåãæ»ããã¨ã«æåãã¾ããï¼ç·ãå¼ãã¨ããã®ã¯é åxã®ä»»æç®æã«è¦ç´ ãæ¿å ¥ããã®ã¨ä¸ç·ãªã®ã§ï¼å®è£ ããã¡ãã®æ¹ãç°¡åããã§ãï¼è¨ç®éã¯ã¡ããã¨èãã¦ãªãã¦å¿é ã§ãããï¼å®è¡ãã¦ã¿ãã¨æ®éã«éãçµãã£ãã®ã§OKï¼ã¨ãããã¨ã§æåºããã¨â¦
Wrong Answer
ãï¼ãããªâ¦
ä»åº¦ããé ãçã£ç½ã«ãªãã¾ãããï¼OKã®å ´åã®åå²ããã¹ã£ã¦ããã ãã¨æ°ã¥ãã¦ï¼ä¿®æ£ããã¨ACï¼
C
ç§ãBã®åºãªãæ²¼ã«ããã£ã¦ããã¨ãã«ä¸¦è¡ãã¦æ®ãäºäººãèãã¦ããã¦ãã¾ããï¼fky_ãæ¹éãæãã¤ããã®ã§å®è£ ãããã¨ã«ï¼ãã°ãããããã¦å¤§å¤ããã§ãããï¼ã¸ã£ãã¸ãæ¸ãã¦ãã§ãã¯ããªããä¸å¯§ã«å®è£ ãããã¨ã§ACï¼ãããHé»è²ï¼ç§ã¯é²æã管çãããDåé¡ãæ¸ãããã¦ããããããããã¦ããã ãã§ï¼Cã¯ã»ã¨ãã©ãã¼ã¿ããã§ãï¼
D
fky_ãCã®å®è£ ããã¦ããã¨ãã«èªãã§ãã¾ããï¼å¶ç´ãå°ããã®ã§å¤å°ããæ¼ããéãããã¨ãããã¨ãèãã¦ï¼1, 2, 4, 8â¦n - x ã¿ãããªéåã§ansã®ä¸çãå°ããããï¼ã¨ãããã¨ãæãã¤ãï¼å®éã«ãããæ§ç¯å¯è½ãªãã¨ããã£ãã証æãã¦ï¼MasKoaã«èª¬æãã¦ç¢ºèªãã¦ããã£ã¦ãã¾ããï¼ãããçãã¯dfsã¨ãã§å ¨æ¢ç´¢ã§è¯ãããï¼è¨ç®éã¯é¡é¢ã¤ãããã©é©åã«æåãããã°å®æ°å軽ããªãããï¼ã¨ãããã¨ã確èªãã¦ï¼å®è£ ããã¨â¦
Wrong Answer
ãï¼ãããªâ¦
ãã®ãã¹ã®åå ã¯ï¼26 = 64ãªã®ã§ä¸çã¯6ãï¼ã¨ããShirotsumeã®ã«ã¹éããåéãã«ãããã®ã§ããï¼ä¿®æ£ããã¨ACï¼
C, Dãéãã¦é ä½è¡¨ãè¦ãã¨22ä½ã«ãªã£ã¦ãã¦ï¼ä¸éãåã³ã¾ããï¼è¦³æ¦ãã¦ããã¦ããå¾è¼©ã«ããã¨ï¼ãã®ç´åã¯é ä½ã100ä½ã¨ãã§çµæ§ãã°ãã£ãã¨ã®ãã¨ï¼
E
çºãã¦ãã¦ï¼LISã£ã½ãããï½ã¨ãã話ããã¦ãã¾ããï¼å®éyã ãè¦ãã¨åºç¾©å調å¢å ã«ãªã£ã¦ããå¿ è¦ããã£ã¦ï¼ãããããªãã¨ããã¯æ¸ãæ¿ããªãã¨ãããªãã¿ãããªãã¨ãèããï¼ãã ï¼ããã¯çãæªããã§ä¸åé¢ãã解æ³ãèãããã¨ãããã¨ã«ãªãï¼
dp[i][x][y] = ié ç®ã¾ã§è¦ã¦æ«å°¾ãx, yã§ããå ´å
ã¨ããdpãé«éåã§ããªããã¨ãããã¨ãããªããªããèãã¦ãããï¼çµå±æãã¤ããã³ã³ãã¹ããçµäºï¼
ã³ã³ãã¹ãçµäºå¾
æçµé ä½ã¯37ä½ã§äºé¸ééã¯ç¢ºå®ãªã®ã§ï¼ç¥åã ã¼ãã§ããï¼ãã£ã¨è¦³æ¦ãã¦ããã¦ããã³ã¼ãå ¼ç£ç£å¡ã®å çã«Eã®è§£æ³ãå³èª¬æããï¼Fãè¦ãç®ã»ã©é£ãããªãã¨ãã話ããã¦ããã ããï¼å çã¯ã¢ã«ã´ãªãºã ãå°éã§ããï¼ç«¶ãããããã»ã©ãã¦ããããã§ã¯ãªãï¼ä»åãé»ã£ã¦è¦³æ¦ãã¦ããã ãã§ãããï¼ããã¾ã§èå¯ã§ãã¦ããã®ã¯æ¬å½ã«ãããã¨æãã¾ããï¼
çµãã£ãå¾ï¼é¸æ3人ã§å¤§éªçå°ã«è¡ãã¾ããï¼åºå¡ãããããã¬ã³ããªã¼ã§é¢ç½ãã£ãã§ãï¼
ã¢ã¸ã¢å¤§ä¼ã«åãã¦ç·´ç¿ãéãï¼ç§ãã¡ã®ãã¹ããå°½ããã¦å¤§å¦ç«¶ããçã«ç¥æ¸ããã¨ããã¨ãããè¦ãã¦ããããã¨æãã¾ãï¼