2008-09-01ãã1ã¶æéã®è¨äºä¸è¦§
2^15 = 32768 ã§ãããããã®åæ°åã®åè¨ã¯ 3 + 2 + 7 + 6 + 8 = 26 ã¨ãªãã åæ§ã«ãã¦ã2^1000 ã®åæ°åã®åè¨ãæ±ããã Problem 16 - PukiWiki çªå¤ç·¨çãªæ±ãã§ã 2ã®1000ä¹ãCã§æ±ãã«ã¯Bignumãå®è£ ããªããã°ãªããªããã(ã¾ãã¯OpenSSLã®BNã使ãâ¦
åéã®èªçä¼ã¨ããåç®ã§ã¯ãã°ãç¥å¥å·çã®æµ·èåã¾ã§è¡ã£ã¦éãã§ããã åçã¯ããããã®ãã«ã«å²ã¾ããä¸ã«ä¸æè°ãªæãã§ããããä¸éã®å¡ã ãªããªãå¥å¦ãªé°å²æ°ãé¸ãã ãã¦ããã
çµæ§åã«è©±é¡ã«ãªã£ã¦ããæ¬ã ããå°ãåã«èªãã ã 便å©ãªãã¼ã«ã使ã£ã¦ã©ãã©ãæ å ±ãåæ¨é¸æãã¦ã¾ãèªåãããçºä¿¡ããã¨ã¤ã¤ã³ãã¨ãã°ãªã¼ã³ãã¨ï¼ã¿ãããªä¸»æ¨ã ã¨ç解ã ããã¾ãé¢ä¿ãªããã©ããã®æ¬ããã£ããã¨ãªã£ã¦ã¿ãã³ããã¦ããå¹çã10â¦
Javascriptã®è¦æãªã¯ã¿ã¯ã·ãªã®ã§ã¨ãããã調ã¹ã¦ã¿ãã¨ã Greasemonkey: removeoosugirubr.user.js - mayokara note ããã£ãã解決ï¼ãã¨æã£ãã®ãæã®éãAutopagerizeã§ãã¼ã¸ãç¹°ã度ã«éãå¦çãèµ°ãããã«ãªãã bodyå ãæååç½®æã§ç¡çããbrã¿â¦
ç§ãä½ããããããããªãã®ã§ãããä¾ãã°ãã®ãã¼ã¸ã¨ããAutopagerizeã«å¯¾å¿ãã¦ãã¦ã¹ã¯ãã¼ã«ãã¦ããã ãã§ã©ãã©ã次ã®ãã¼ã¸ã¾ã§èªããããã«ãªã£ã¦ãã¾ãã ã ããã1ãã¼ã¸ããã©ã¦ã¶ã®ä¸ã«åã¾ãã®ã§ãPCã§ãèªã¿ããããã©ã¼ãããã§ããæ°ããâ¦
ã¾ã chumbyãè²·ã£ã¦ãªãã®ã«ããã«æ°ã«ãªã製åã§ç³ã¿æãããã¦ãæããï¼ã¡ãªã¿ã«ä»chumbyã®ãµã¤ããè¦ã¦å è¡äºç´ãåãä»ãã¦ãããã¨ãç¥ã£ãã欲ããã©ãã«ã©ã¼ã¯äºç´çµäºã¨ã®ãã¨ãå¾ ã¡ï¼ ã¨ã«ãããEye-Fiã¯å¿ ãæã«å ¥ããããªã ãã¸ã«ã¡ãæ°ããã®â¦
Problem 14ããªããªã解ããªãã®ã§å ã«15ã解ããã¨ã«ããã 14ã®è¨ç®ãçµãããªãã®ã¯ãã£ã¨ã¢ã«ã´ãªãºã ãæªããã ãªâ¦ã 2x2ã®ãã¹ç®ã®å·¦ä¸ããã¹ã¿ã¼ãããå ´åãå¼ãè¿ããªãã§å³ä¸ã«ããã«ã¼ã㯠6 ã¤ããã ã§ã¯ã20 à 20 ã®ãã¹ç®ã§ã¯ããã¤ã®ã«ã¼ãâ¦
æ ¡æ£æ¥è¨ æè¡ããã°ããã¥ã¼ã¹ã§ã®æ°ã«ãªãè¨äºã«æ ¡æ£ãå ¥ãã¦ããã¯ã¦ãã ãã£ããã¨è¨äºãèªãã ã¨ãã«ãããã§ææããã¦ãããããªèªå¥ã®ééããæ°ã«ãªããã¨ãå²ã¨ããã¾ãã 2å¹´ãåããããã®ã«ç¥ãã¾ããã§ãããä»æ¥ãããæ°ã«å ¥ãã ããã¦èªåâ¦
iTunes on Ubuntu 8.04 - éãã®ä¸æ CoolDriverã®æ¥è¨ ããã®ã¨ããã«PlayOnLinuxã¨wineã¯ã¤ã³ã¹ãã¼ã«ãç°¡åã«å®äºã ããããiTunesã®ã¤ã³ã¹ãã¼ã©ããã¦ã³ãã¼ããã¦ã¤ã³ã¹ãã¼ã«ãå®è¡ãã¦ã¿ããã¨ã©ã¼ãåºã¦ã¤ã³ã¹ãã¼ã«ã§ããã ä»ã®è§£èª¬ãµã¤ããè¦ã¦â¦
ã«ãã¾ãã¿ã³ãã©ã¼ æã¯ã¤ãºã²ã¼ã ã§åãããªãã£ãåé¡ã®èª¿æ»ç¨ã«ã¯ãªãããã¦ããããæ®æ®µã®ç»åã¯ãªããã¨ãã£ã¡ãã«ãªã£ã¦ãã¦å¾ããè¦ç´ãã«ãããªãã¨æãã¦ãããã ï¼ãã©ã¦ãºã«ã¯Autopagerizeã¨LDRizeãããã®ã§ãããªã«ä¸ä¾¿ã§ã¯ãªãã®ã§ãã ã¨ãâ¦
以ä¸ã®50æ¡ã®æ°å100åã®ç·åã®ä¸ä½10æ¡ãæ±ããã Problem 13 - PukiWiki Rubyã ã¨ãã®æ°å¤ãåãæ°ã«ãããã¨ãªãè¨ç®ã§ãã¦æ¥½ãªã®ã ãã©â¦ã #include <stdio.h> #include <stdlib.h> #include <math.h> static char values[100][50] = { "371072875339021027987979982208375902465101</math.h></stdlib.h></stdio.h>â¦
è¦ãç®ã¯ã¡ãã£ã¡ããã©ãé¢ç½ãé³ãããã®ã§å¥½ãã ã¡ãã£ã¨åã«è²·ã£ããç·´ç¿ã¯ãã¾ããã¦ããªãã Vol.17 ãµãã ãã«ãã³mini | 大人ã®ç§å¦ãã¬ã¸ã³ | 大人ã®ç§å¦.net
(åç¥) ã§ã¯ã501 å以ä¸ã®ç´æ°ããã¤æåã®ä¸è§æ°ã¯ããããã Problem 12 - PukiWiki ç´æ°ãã§ãã¯ãå ¨æ¢ç´¢ãã¦ãã¨ãã¤ã¾ã§ãçµãããªãã£ãã®ã§å¤§å¹ ã«åæ¸ãã¾ããã #include <stdio.h> #include <math.h> void problem012() { int ans; int term; /* é ã®å¤ */ int term</math.h></stdio.h>â¦
æ¥èª²ã®ä¸åã (ç¥) ä¸ã® 20 à 20 ã®æ°åã®ãªãã赤ããã¼ã¯ãããæ°åã®ç©ã¯ 26 à 63 à 78 à 14 = 1788696 ã¨ãªãã ä¸ä¸å·¦å³æãã®ããããã®æ¹åã§é£ç¶ãã4ã¤ã®æ°åã®ç©ã®ãã¡æ大ã®ãã®ãæ±ããã Problem 11 - PukiWiki 横æ¹åã»ç¸¦æ¹åã»å³æãä¸æ¹åã»â¦
ããªã¼ãã¼ãã¼ãã§åãååã®é¢æ°ãä½ããããã«ãªã£ããã©ãåãç°ãªã£ã¦ãå ±éã®åä½ããããããªé¢æ°ãåãã¨ã«ä½ãã®ã§ã¯ãªãä¸ã¤ã ãã§å®ç¾©ã§ããããã«ããããã¤ã¼ãããããã¨ããè¦æ±ã«å¿ããã®ããã³ãã¬ã¼ããã¨ããç解ã ããããã³ãã¬ã¼ãã¯â¦
C++ã¯æ¬å½ã«ã¡ãã£ã¨å¿ããã¨ãã使ããªããªãã®ã«ããã¾ã«ãªããã®ã¢ããªãã³ã³ãã¤ã«å¤±æããã¨ãã«éã£ã¦ããã¤ãC++ã§æ¸ããã¦ããããããå°ãã ã¨ããããã§ãã¨ããããåãããªãã¨ããã¯èª¿ã¹ã¦æ¸ãçãã¦ãããã¨ãããã¨ã§ä»åã¯åç §åã ãã³ãâ¦
Problem 11ã®ã³ã¼ããæ¸ãã¨ãã«åé¡æãã400åã®æ°åãã³ã¼ãä¸ã«åãã¨ãã«ãå½¹ã«ç«ã£ãã®ã§ã¡ã¢ã 使ãæ¹ã®æµãã¨ãã¦ã¯ã isearch-forward-regexpã§ç½®æãããé¨åã®æ£è¦è¡¨ç¾ãæ¢ã replace-regexpã§å®éã«ç½®æãè¡ã ãé çªã«è¡ãã å®éã«ãã£ãã㨠â¦
ããä¸ã¤è§£ããã 10以ä¸ã®ç´ æ°ã®åã¯2 + 3 + 5 + 7 = 17ã§ãã. 200ä¸ä»¥ä¸ã®å ¨ã¦ã®ç´ æ°ã®åãè¨ç®ããªãã. Problem 10 - PukiWiki Problem 7ã§ä½¿ã£ãis_primeé¢æ°ãæµç¨ãã¦ç´ æ°å¤å®ããäºå®ã ã£ããã©ãWikipediaã®ç´ æ°å¤å®ã®é ã«ãããµã³ãã«ããã°ã©ã â¦
ä»æ¥ãä¸ã¤ã解ãã¦ãããã ãã¿ã´ã©ã¹ã®ä¸ã¤çµ(ãã¿ã´ã©ã¹ã®å®çãæºããæ´æ°)ã¨ã¯a Problem 9 - PukiWiki é çªã«ãã£ã¦ããã ãã§å åãäºéã®foræããæãããã£ãã®ã§gotoã使ç¨ã #include <stdio.h> #define NUM_MAX 1000 void problem009() { int ans; int a</stdio.h>â¦
以ä¸ã®1000æ¡ã®æ°åãã5ã¤ã®é£ç¶ããæ°åãåãåºã㦠ãã®ç©ãè¨ç®ããããã®ãããªç©ã®ä¸ã§æ大ã®ãã®ã®å¤ã¯ãããã ï¼ç¥ï¼ Problem 8 - PukiWiki ãããã¾ãã§ããæ°å¤ã ãªãã¼ãããã¯æååã¨ãã¦æ±ããããªããªãã¨æã£ãã #include <stdio.h> #include <string.h> #in</string.h></stdio.h>â¦
10001çªç®ã®ç´ æ°ãæ±ãã¾ãã ç´ æ°ãå°ããæ¹ãã6ã¤ä¸¦ã¹ã㨠2, 3, 5, 7, 11, 13 ã§ããã6çªç®ã®ç´ æ°ã¯ 13 ã§ããã 10001 çªç®ã®ç´ æ°ãæ±ããã Problem 7 - PukiWiki åæã§é çªã«æ°ãã¦ããã¾ããã #include <stdio.h> #include <math.h> #define PRIME_ORDER 10001 int</math.h></stdio.h>â¦
ä»åã¯ç°¡åã ãªãã¾ã ã¾ã åºç¤ã ãããã æåã®10åã®èªç¶æ°ã«ã¤ãã¦ããã®åã®äºä¹ã¨ãäºä¹æ°ã®åã¯ä»¥ä¸ã®éãã 1² + 2² + ... + 10² = 385 (1 + 2 + ... + 10)² = 3025 ãããã®æ°ã®å·®ã¯ 3025 - 385 = 2640 ã¨ãªãã åæ§ã«ãã¦ãæåã®100åã®èªç¶æ°ã«â¦
ä¹ ãã¶ãã«ãã¹ã¯ãããPCã®åã«åº§ã£ãã®ã§ç¶ããã 2520 㯠1 ãã 10 ã®æ°åã®å ¨ã¦ã®æ´æ°ã§å²ãåããæ°åã§ããããã®ãããªæ°åã®ä¸ã§ã¯æå°ã®å¤ã§ããã ã§ã¯ã1 ãã 20 ã¾ã§ã®æ´æ°å ¨ã¦ã§å²ãåããæ°åã®ä¸ã§æå°ã®å¤ã¯ãããã«ãªããã Problem 5 - â¦
å·¦å³ã©ã¡ãããèªãã§ãåãå¤ã«ãªãæ°ãåææ°ã¨ããã 2æ¡ã®æ°ã®ç©ã§è¡¨ãããåææ°ã®ãã¡ãæ大ã®ãã®ã¯ 9009 = 91 à 99 ã§ããã ã§ã¯ã3æ¡ã®æ°ã®ç©ã§è¡¨ãããåææ°ã®ãã¡æ大ã®ãã®ã¯ãããã«ãªããã Problem 4 - PukiWiki æ±ããæ°ã¯6æ¡ã«ãªãã¨ããâ¦