2011-05-01ãã1ã¶æéã®è¨äºä¸è¦§
Problem 141 - Project Euler æ£æ´æ°nãdã§å²ã£ãã¨ãã®åãqãä½ããrã¨ããããã®ã¨ããd, q, rãå¹¾ä½ç´æ°ã®æ£æ´æ°ã®é£ç¶ããé ã¨ãªããããªå ´åããã(d, q, rã®é åºã¯å ¥ãæ¿ãã¦ãè¯ã)ã ä¾ãã°ã58ã6ã§å²ãã¨9ä½ã4ã¨ãªããã4, 6, 9ã¯å ¬æ¯3/2ã®å¹¾ä½â¦
Problem 140 - Project Euler ç¡éç´æ°ãèããã ããã§ãã§ããã§ãããããã«å¾ãã¨1, 4, 5, 9, 14, 23,...ã®ãããªæ°åãã§ããã ãã®åé¡ã§ã¯ããæ£æ´æ°ã¨ãªããããªxã«ã¤ãã¦èããã ãèªç¶æ°ã¨ãªãxã®ãã¡æåã®5ã¤ã示ãã¨æ¬¡ã®ããã«ãªãã x 1 2/â¦
Problem 139 - Project Euler (a, b, c)ãå辺ã®é·ããæ´æ°ã§ãããããªç´è§ä¸è§å½¢ã®å辺ã®é·ãã¨ããããã®ã¨ãããã®ç´è§ä¸è§å½¢ã4ã¤çµã¿åããããã¨ã§ãç´è§ä¸è§å½¢ã®é·è¾ºcã1辺ã®é·ãã¨ããæ£æ¹å½¢ãä½ããã¨ãã§ãã(ä¸è¨åé¡æãªã³ã¯å åç §)ã ä¾ãã°ãâ¦
Problem 138 - Project Euler åºè¾ºbã®é·ãã16ãæ辺Lã®é·ãã17ã®äºç辺ä¸è§å½¢ãèããã ãã¿ã´ã©ã¹ã®å®çã«ããã°ããã®äºç辺ä¸è§å½¢ã®é«ãhã¯ã¨æ±ããããããã®å ´åhã¯bãããé·ãã1ã ãçãã b = 272, L=305ã¨ããã¨ãh = 273ã§ãããhã¯bãã1ã ãâ¦
Problem 137 - Project Euler ãkçªç®ã®ãã£ããããæ°(, , ãããªãæ°åã§ã1, 1, 2, 3, 5, 8, ...)ã¨ãã¦ãç¡éç´æ°ãèããã ãã®åé¡ã§ã¯ãã®å¤ãæ£æ´æ°ã¨ãªããããªxã«ã¤ãã¦èããã é©ãã¹ããã¨ã«ãã§ããã æåã®5ã¤ã®èªç¶æ°ã«å¯¾ããxã®å¤ã¯æ¬¡ã®â¦
ãããæã ã£ãã®ã§ã¨ã©ãã¹ããã¹ã®ç¯©(Sieve of Eratosthenes)åããç¯å²ã§èª¿ã¹ã¦ã¿ããã¨æã£ãã æ°å¦ã«ããã¦ãã¨ã©ãã¹ããã¹ã®ç¯©ï¼ã¨ã©ãã¹ããã¹ã®ãµããï¼ã¯ãæå®ãããæ´æ°ä»¥ä¸ã®å ¨ã¦ã®ç´ æ°ãçºè¦ããããã®åç´ãªã¢ã«ã´ãªãºã ã§ãããå¤ä»£ã®ãªã·â¦
Problem 136 - Project Euler æ£æ´æ°ãã¤çå·®æ°åã§ãã3ã¤ã®æ°x, y, zã¨ãæ£æ´æ°nã«ã¤ãã¦ã®æ¹ç¨å¼ãèãããn=20ã®ã¨ããæ¹ç¨å¼ã¯ãã ä¸ã¤ã®è§£ãæã¤ã 100æªæºã®nã«ã¤ãã¦ããã®ãã¡25åãæ¹ç¨å¼ã«å¯¾ãã ãä¸ã¤ã®è§£ãæã¤ã 5åä¸ããå°ããnã«ã¤ãã¦ããâ¦
Problem 135 - Project Euler æ£æ´æ°x, y, zãçå·®æ°åã¨ãã¦ä¸ããããã¨ããæ¹ç¨å¼ãä¸åº¦2ã¤ã®è§£ããã¤æå°ã®nã¯27ã§ããã 1155ã¯ä¸åº¦10åã®è§£ãæã¤æå°ã®nã§ããã ç¾ä¸æªæºã®nã®ãã¡ä¸åº¦10åã®è§£ãæã¤ãã®ã¯ããã¤ãããï¼
http://d.hatena.ne.jp/repose/20110506/1304612242èªãã§ãããEmacsã®ä¸ã§å®çµãããªãã¨â¦ãã¿ãããªç¾©åæãã¢ã¬ãã¦ãã¦ã¤ã*1⦠é©å½ã«æ¸ãæ£ãããdiary.txtç·¨éãããã¡ã§M-x latex-to-google-chart-apiãã¾ãããã åè: Emacs ã§æ£è¦è¡¨ç¾ + é¢æ°ãâ¦
Problem 134 - Project Euler é£ç¶ãã2ã¤ã®ç´ æ°p1 = 19ã¨p2 = 23ãèããã1219ã¯ãæ«å°¾ã®æ¡ã«p1ãå«ã¿ããã¤p2ã§å²ãåãããããªæå°ã®æ°ã§ããã å®éã®ã¨ãããp1 = 3, p2 = 5ã®å ´åãã®ããå ¨ã¦ã®é£ç¶ããç´ æ°p2 > p1ã«ã¤ãã¦ãã®ãããªæ°nãåå¨ããâ¦
ã¦ã¼ã¯ãªããã®äºé¤æ³ ã¾ãã¯ã¦ã¼ã¯ãªããã®äºé¤æ³ã«ã¤ãã¦ç¢ºèªã ã¦ã¼ã¯ãªããã®äºé¤æ³ã¯2ã¤ã®æ£æ´æ°ã®æå¤§å ¬ç´æ°ããã¨ããææ³ã 2ã¤ã®æ£æ´æ°ãm, nã¨ãã E1. mãnã§å²ã£ãå°ä½ãrã¨ãã E2. rã0ã«çãããã°çµäºãnãæå¤§å ¬ç´æ°ã§ããã E3. m ãã㧠â¦
Problem 133 - Project Euler 1ã®ã¿ãããªãæ°(1, 11, 111, ...)ãrepunitã¨å¼ã³ãkæ¡ã®repunitãR(k)ã¨è¡¨ãã R()ã«ã¤ãã¦èããã R(10), R(100), R(1000)ã¯17ã§å²ãåããªãããR(10000)ã¯17ã§å²ãåãããä¸æ¹ãã©ã®ãããªnããã£ã¦ãã¦ãR()ã19ã§å²ãâ¦
Rictyã¨ãããã©ã³ãã話é¡ã«ãªã£ã¦ããã®ã§Emacsã®ãã©ã³ãã«è¨å®ãã¦ã¿ãã Mac OS X 10.6.7ãEmacs 23.2.1(ãã Emacsã©ããã£ã¦å ¥ãããã ã£ããä»ã²ã¨ã¤æãåºããªãâ¦)ã ãã©ã³ãã¯ããã°ã©ãã³ã°ç¨ãã©ã³ã Rictyãããã¦ã³ãã¼ããã¦ãã¦ã¤ã³ã¹ãã¼ã«â¦
Problem 132 - Project Euler 1ã®ã¿ãããªãæ°(1, 11, 111, ...)ãrepunitã¨å¼ã¶ãkæ¡ã®repunitãR(k)ã§è¡¨ããã¨ã«ãããã ãã¦ãR(10) = 1111111111ãç´ å æ°å解ããã¨ç´ å æ°ã¯11, 41, 271, 9091ã§ãããããç´ å æ°ã®ç·åã¯9414ã§ããã R()ã®ç´ å æ°ã®ãã¡â¦
è²·ã£ã(âç©ãã§ã) ç 害è«ã»éèé²é¤ã®åºç¤ (è¾²å¦åºç¤ã»ããã¼)ä½è : 大串é¾ä¸åºç社/ã¡ã¼ã«ã¼: 農山æ¼ææååä¼çºå£²æ¥: 2000/03/01ã¡ãã£ã¢: åè¡æ¬è³¼å ¥: 1人 ã¯ãªãã¯: 12åãã®ååãå«ãããã° (4件) ãè¦ãé¤æ¶²æ ½å¹ã®æ°ããã¥ã¢ã«ä½è : æ¥æ¬æ½è¨åè¸åâ¦
simple-hatena-modeã§ç·¨éãã¦ãã¨æåå ¥åãããã«ã¼ã½ã«ç§»åãããããã度㫠Fontifying hoge.txt... (Attributes) ã¨ããªãã¨ãåºã¦ãã¦ãç¹ã«é·ããããã¡ã ã¨ã¾ã¨ãã«ç·¨éã§ããªããããã¢ãµã¢ãµãã¦ããã®ã§ç´ããªããã©ãã調ã¹ãã ãããããã©ãâ¦
Problem 131 - Project Euler ããã¤ãã®ç´ æ°pã«ã¯ãç«æ¹æ°ã¨ãªããããªèªç¶æ°nãåå¨ããã ä¾ãã°ãp=19ã®ã¨ããn=8ã§ãããã ãã®ãããªæ§è³ªããã¤ç´ æ°pã«å¯¾ããnã¯ä¸æã«å®ã¾ããã¾ãã100æªæºã®ç´ æ°ã«éãã¨ãã®ãããªç´ æ°ã¯4ã¤ãããªãã 100ä¸æªæºã®â¦