2010-12-01ãã1ã¶æéã®è¨äºä¸è¦§
1å¹´åã®ä»æ¥ãã¢ã»ã³ããªã§æ°åè¡ã®echoããã°ã©ã ãä½æãã¾ããã ãããå¾ã ã«è²ã¦ã¦ãä»æ¥ã§ã¯ã½ã¼ã¹ã³ã¼ãè¡æ°ããã¼ã¿ã«ã§1ä¸5åè¡ãè¶ ãã¦ãã¾ããã ï¼å¹´ã§ãã£ãããã ããã¨ããæ°ãããªãããªãã§ããã趣å³ããã°ã©ã ã«ãã¦ã¯ãããªãã«é²ãã ã®â¦
50åç®ã¾ã§è§£ãã¾ãããæ°å¦ã使ã£ã¦å·¥å¤«ããã¨éã解ããããããããªãã®ã«ã¤ãã¦ã ãèªåã®è§£çãæ¸ãã¾ãã Problem 15 20x20ã®ã°ãªããã®å·¦ä¸ããå³ä¸ã¾ã§ã®æççµè·¯æ°ãæ±ãã ããã¯ï¼é ä¿æ°ã ã®å¤ãè¨ç®ããã°è¯ãã§ããï¼é ä¿æ°ã®å¤ã¯ãã¹ã«ã«ã®ä¸â¦
8åã¨ãã¾ããã Problem 3 600851475143ã®æå¤§ç´ å æ°ãæ±ãã ãç´ å æ°å解ãããã§ã¯ãªããæå¤§ç´ å æ°ã ãæ±ãããã§ãããç´ æ°ã®ãã¼ãã«ã¯ä½ããããªãã®ã§ãå復ã«ããæ±ããäºãèãã¾ãã æ´æ°Nãç´ å æ°å解ãã¦ã¿ã㨠ã¨ãªãã¾ãããããã®æå°ã®ç´ â¦
ããã¯ããªãã®è¯éã§ã¯ãªãã§ããããã ç´æ°ã®æ°ã500以ä¸ã«ãªãæåã®ä¸è§æ°ãæ±ããä¸è§æ°ã¨ã¯ä»¥ä¸ã®å¼ã§æ¸ãããã®ã§ãã Nã®ç´ å æ°å解ãä¸ã®ããã«ãªãæ ç´æ°ã®åæ°ã¯ ã¨ãªãã¾ããã¾ããäºãã«ç´ ãª2æ°ã¯ææ°ãéè¤ããªãã§ãããã nãå¥æ°ãªã ã§â¦
Project Euler解ãå§ãã¾ãããèªåã®æ°å¦ã®åå¼·ãå ¼ãã¦ãã§ããã ãããã°ã©ã ã§ã®åæã®è¨ç®ã¯é¿ãããã¨æã£ã¦ãã¾ããã©ããã¦ãããã°ã©ãã³ã°ãå¿ è¦ãªãã¤ã¯ããã¨ã§rowlã§æ¸ããã¨æã£ã¦ã¾ãã Problem 1 1000æªæºã®3ã¾ãã¯5ã®åæ°ã®åãæ±ãã éåâ¦
nåã®å¯¾å¿ããæ¬å¼§ã®ãã¿ã¼ã³ã®æ°ãæ¯é¢æ°ã使ã£ã¦æ±ãã¦ã¿ã¾ããã ããã¯id:nobsunãããææãªãã£ã¦ããããã«ã«ã¿ã©ã³æ°ã¨ããæ°ã«ãªããã§ãããããããåæç¥èãªãã§æ©æ¢°çã«è§£ããããããªå ´åã«ä½¿ãã¾ãã ããããªæç§æ¸ãããã¨æãã¾ãããç§â¦
rowlã®å¼ã¨ãã¦ä»¥ä¸ã®å®ç¾©ã使ãæ¹éã«ãã¾ããããã®çºãããããã¨å®è£ ã®ä¿®æ£ãè¡ã£ã¦ãã¾ãã åå§å¼(ã·ã³ãã«ï¼æ´æ°ãªãã©ã«ï¼æµ®åå°æ°ç¹æ°ãªãã©ã«ï¼æåå)ã¯å¼ã§ããã hãã·ã³ãã«ï¼e1,...,enãå¼ã®æ h(e1, .., en)ã¯å¼ã§ãããhãå¼ã®headã¨è¨ããâ¦