http://www.azspcs.net/Contest/DelacorteNumbers
LÃLã®æ£æ¹å½¢ã«1ããL^2ã¾ã§ã®æ´æ°ãç½®ããåæ´æ°ã¯ä»ã®æ´æ°ã¨è·é¢ã®äºä¹ã®ã¨ãã«ã®ã¼ã§ç¸äºä½ç¨ãããã®å¼·ãã¯æ大å
¬ç´æ°ã«æ¯ä¾ã
L=3ã27ã¾ã§ã®å ´åã«ç¸äºä½ç¨ãæ£ã¨è² ã®å ´åã®åºåºç¶æ
ãæ±ããã
ç· ãåãã¯æ¥å¹´æ£æãä¸ä½è³åã¯ãªããããããããªãåºã®$500ã®ååå¸ãããçµ±è¨åå¦ã®åãä¸çã«è¦ãä»ããã®ã ã
TIPS
ã¾ãã¨ããããã¡ããããªã¹ã§ã¢ãã¼ã«ãã¦ã¿ããã¨ããäºã«ãªãããã§ããããããªãã¨æ´æ°ã¯ã¾ãäºã¤ãå
¥ãæ¿ããããããããæãã¤ããªãããã§ããã®è©¦è¡ã§ã®ã¨ãã«ã®ã¼å¤åã®è¨ç®ããããã¹ãããã§ãããç´ æ´ã«ããã¨æ¼ç®éã¯Näºä¹ã«æ¯ä¾ã
å¤åã ãè¨ç®ããã°ãããã¨ã«æ°ãã¤ãã¨Nä¸ä¹ã§ãããã
ããã«GCDãGCD-1ã§ç½®ãæãã¦ãåé¡ãç価ã¨ãããã¨ã«æ°ãã¤ãã°GCDãï¼ã§ãªããã¢ã¯å
¨ä½ã®ï¼ï¼ï¼
ç¨åº¦ãªã®ã§ããªãæéåæ¸ã§ããã
ããã«ãã®å¼ãç¨ãã§å æ°å解ãæ¼ç®æ°ãæ¸ããã°ããã«åéãããã«è¡ããã
ãã¨ã¯ä¸åã®ã¹ãããã§æ±ããã¼ãã«çããã¹ã¦ãã£ãã·ã¥ã«åã¾ãããã«ãµã¤ãºãæ¸ããã
ãã®è¾ºãã¾ã§ãå°æå
ã§ãªãã¨ãåºæ¥ãã¬ãã«ã
ããããå
ã¯åºã¦ããç¶æ
ãç¨ãã§åé¡ã«æ½ãæ§é ãèªã¿åããã°ãªããªãã§ãããããçµæ§å¥¥ãæ·±ãã¦é¢ç½ãåé¡ã§ãã
10x10ã¾ã§ãã£ã¦ã¿ãæãã§ã¯MINããMAXãé£ãããæ¥çã§è¨ãæã®ã°ã©ãã·ã¼ã§ã¡ã¿ã¹ã¿ã«åµããããæãã