å°å¦çãç®æ°ã®é ç¹ã«æããç®æ°ãªãªã³ããã¯ãã¨ãã大ä¼ãããã¾ããæ°å¦è ã§äº¬é½å¤§å¦åèªææã®å»£ä¸å¹³ç¥æ°ããæ°å¦è ã§å¤§éè¸äººã®ãã¼ã¿ã¼ã»ãã©ã³ã¯ã«æ°ãæå±ã1992å¹´ã«å§ã¾ãã¾ããã主å¬ã¯ç®æ°ãªãªã³ããã¯å§å¡ä¼ã§ãæè¿ã®éå¬ã¯2010å¹´6æã®ç¬¬19åç®æ°ãªãªã³ããã¯ã§ãããã®ç¬¬19åã§åºé¡ãããåé¡ã¯å ¨7åããã®ãã¡3åã«ãã¯ã¦ãªã®è¥æã¨ã³ã¸ãã¢2人ãæã¿ã¾ãããç´ã¨ãã³ãããã«ã¯ãã½ã³ã³ã¾ã§æå ¥ãã¦ã大å¦å ¥è©¦ãæãåºãããããã¼ããã ã¼ãã¨æããªããæãã ããã®æ§åã¯ã¯ããã¦â¦â¦
ï¼â»ãã®è¨äºã¯é²å¦å¡¾ã®æµå¦åã«ããPRè¨äºã§ããï¼
- ãä¸å¦åé¨ãåå·®å¤ã¢ããã«å§åçåæ ¼è æ°ã®ãæµå¦åã
- ãã¼ã | ç®æ°ãªãªã³ããã¯
éãå¸ä¼ã®éå®®ã§ãããäºäººã®ã¨ã³ã¸ãã¢ãããä»æ¥ã¯ãæéãããã¨ããããã¾ããæåã«è»½ãèªå·±ç´¹ä»ãã¦ãããã¾ããï¼
ã¯ãã¯ã¦ãªã¨ã³ã¸ãã¢ã®ãã¯ãã§ããæè¿ã¯iPhoneã¢ããªãéçºããããã¦ãã¾ããæ°å¦ã¯è¦æã§ãæ£ç´åå¼ãã¦ã»ããæ°æã¡ã§ãã£ã±ãã§ãã
ããã¯ã¦ãªã¨ã³ã¸ãã¢ã®ãããã§ããè¨ç®ç³»ã®ç 究室ã«æå±ãã¦ãã¾ãããæ°å¦ã¯è¦æãªæèãããã¾ãããªãã§ã¼ããé¸ã°ããã®ãâ¦â¦ã
éãããäºäººã¨ãåä¹ããªããã§ãããééããã¨ãã«æ¥ããããããâ¦â¦ã¾ãããã§ãããããã®ä»£ããä»æ¥ã¯ãå
çãã£ã¦å¼ãã§ãããã¾ããã
ã¯ããã£â¦ãã£â¦â¦å
çï¼
ããå§ã¾ãåããè² ããæ°ãããâ¦â¦ã
â 8ã¤ã®æ¡ä»¶ãã100m競äºã®é ä½ã決ããâç°¡åâãªåé¡
éãã§ã¯æ©éåé¡ãã2010å¹´ã®ç®æ°ãªãªã³ããã¯ãã¡ã¤ãã«ã§ã¯å ¨7åãåºé¡ãããç§ã¯äºåã«å ¨é¨è§£ãã¦ã¿ã¾ãããä»æ¥ã¯æéã®é½åãããã®ã§ããã®ãã¡4åã«ææ¦ãã¦ããããã¨æãã¾ããæåã¯åé¡6ã§ãã
åé¡6
Aï½Håã®8人ã100m競äºã8åãã¾ããã
- Aã¯8åã®ãã¡7åBã«åã¡ã¾ããã
- Bã¯8åã®ãã¡7åCã«åã¡ã¾ããã
- Cã¯8åã®ãã¡7åDã«åã¡ã¾ããã
- Dã¯8åã®ãã¡7åEã«åã¡ã¾ããã
- Eã¯8åã®ãã¡7åFã«åã¡ã¾ããã
- Fã¯8åã®ãã¡7åGã«åã¡ã¾ããã
- Gã¯8åã®ãã¡7åHã«åã¡ã¾ããã
- Hã¯8åã®ãã¡7åAã«åã¡ã¾ããã
Bã8ä½ã ã£ãã¨ãã®1ä½ã¯ã ãã§ããããããã ããã©ã®åãåçï¼2人以ä¸ãåãé ä½ã«ãªããã¨ï¼ã¯ããã¾ããã§ããã
éãäºé¸ãåã¡ä¸ãã£ãå°å¦çã®æ£ççã¯ãå
¨7åã®ãã¡ãã®åé¡ãä¸çªé«ãã93.4%ã§ãããä¸çªç°¡åãªåé¡ã£ã¦ãã¨ã§ãããããããããã¨è§£ããã¦ãèªè
ããã楽ãããªãã®ã§ããªãã¹ãèãã¦ãããã¨ã話ããªãã解ãã¦ãã ãããäºäººã§ç¸è«ãã¦ãOKã§ãã
ã¯ãã¾ãã¯åé¡ãããèªã¿ã¾ããããç³»ãâ¦â¦ã
ããããã¼ããããããããã
ï¼ãã°ãèããï¼
ã¯ãç¸å¯¾çãªé ä½ãããã1åã ãåã£ã¦ãâ¦â¦ã
ãã循ç°ãã¦ããã§ããããã
éãããããåãã¦ã¾ãããã
ã¯ã8åã®ã¬ã¼ã¹ã®ãã¡ãã»ã¨ãã©ã¯ãAãBã«åã£ã¦ããããã¼ããããããã
ãã1ååã£ãã£ã¦ãã¨ã¯ããã£ããããã°ããããããªããã
ï¼ããã«10åå¾ï¼
ã¯ãã§ããï¼ çãã¯ãCãã
ããã©ãã§ããå
çï¼
éãæ£è§£ã§ãï¼ æä¸ä½ã«ã¯1åãããªããªãã¦ãåªåã1åã ãããã¨ã¯é ä½ã®æ¡ä»¶ãæºãããã¨ããã¨ãã£ã¦èããã¨ãAã1ä½ã®ã¨ãã¯ABCDEFGHã®é ãBã1ä½ã®ã¨ãã¯BCDEFGHAã£ã¦ä¸¦ã¶ãã¨ããããã¾ãã
ã¯ããã¼ããã£ããã§ããããä¸çªç°¡åãªãã¤ã§ãããã
ãããã®å
ããããããâ¦â¦ã
ã¯ãå°å¦çããããé ããããããªãã
â 1ãã9ã®ãã¡1ã¤ã®æ°åãé¤ãã¦2ããã®æ´æ°ãä½ã£ã¦åæ°ã®æ°ãæ°ããåé¡
éãã§ã¯æ¬¡ã®åé¡ã«ãã£ã¦ã¿ã¾ããããåé¡1ãæ£ççã¯59.9%ã§ããã
åé¡1
1ï½9ã®ãã¡ã1ã¤ã®æ°åãé¤ãã8åã®æ°åãããã¾ãããã®ä¸ãã2åã®æ°åãé¸ãã§ãªãã¹ã¦ããã¨ãªã2ããã®æ´æ°ãä½ãã¨ã2ã®åæ°ã¯21åã4ã®åæ°ã¯12åã7ã®åæ°ã¯8åä½ããã¨ãã§ãã¾ããããã®ã¨ããæåã«é¤ããæ°åãæ±ããªããã
ãã11ãã99ã§ãæãæ¹ã9éããããããç®ã¯ãªãã®ãã12ãã98â¦â¦å¶æ°ã®æ°ãæ°ããã¨ãã©ããé¤ããæ°åã¯å¶æ°ãããªããã£ã¦ãã¨ã§ãã
ã¯ãå¶æ°ã£ã½ãã§ãããããPerlã§æ¸ãããä¸ç¬ã ãªãã
éãæ¬å½ã«ééããã«ä¸çºã§Perlã§æ¸ãããã§ããããããã§ééããã大å¤ãªãã¨ã§ããï¼ãã¤ãã¤ï¼ã
ã¯ããããªç
½ãã«ã¯è² ãã¾ããï¼ ã«ã¿ã«ã¿ã«ã¿â¦â¦ï¼ããã°ã©ã ãæ¸ãå§ããï¼ã
ããã¼ãã¯æã§ããã°ãï¼ç´ã¨ãã³ã§èããï¼ã
ã¯ããã2ã®åæ°21åã®çµãè¾¼ã¿ã¯ã§ãããã«ã¼ããå¢ããã¦ã£ã¨â¦â¦ã
ããã¬ãããã½ã³ã³æ©ãï¼
ã¯ããã£ãåããã¼ï¼ãã£ããåºåããå
çãã«è¦ããï¼ã
éãæ£è§£ã§ãï¼ æ¬å½ã«ä¸çºã§æ¸ãã¾ããããç´ æ´ãããã
ï¼10åå¾â¦ï¼
ããã§ãããæ£è§£ã¯8ï¼
éããã®éãã§ãã
ããå°å¦çã«ã¯åã£ãï¼
éãåã£ãâ¦â¦ãã§ããããã¨ããã解説ã§ããã¾ãã99ã¾ã§ãããªãã®ã§å
¨é¨æ¸ãåºãã®ãæ©ãã¨æãã¾ãã3ã¤ã®åæ°ããããããåãå»ããªãã£ããããã¤ãããã¨ãåãå»ã£ããã¨ããã¤ãã®å·®ãããã©ã®æ°åãåãå»ããã£ã¦èããã¨ããããããã§ãããã
ããã¼ããããã§è§£ãã¾ããã
éãPerlã®ã³ã¼ãã®ã»ãã¯ã©ããªæãã§ããï¼
ã¯ãã¯ãã以ä¸ã§ããç´ ç´ã«ã«ã¼ããåãã¦ãã¾ãã
use strict; use warnings; use Perl6::Say; my @nums = (1..9); for my $reject (@nums) { my @remain = grep { $reject != $_ } @nums; my $multi_2 = 0; my $multi_4 = 0; my $multi_7 = 0; for my $i (@remain) { for my $j (@remain) { next if $i == $j; my $n = $i * 10 + $j; $multi_2 ++ if $n % 2 == 0; $multi_4 ++ if $n % 4 == 0; $multi_7 ++ if $n % 7 == 0; } } say "ans = $reject" if $multi_2 == 21 && $multi_4 == 12 && $multi_7 == 8; }
éããã¼ã¿ããã¡ãã¨ãããã¦ããè©ä¾¡ã£ã¦ããåãæ¹ãæ°æã¡ããã§ããåºåã¯ï¼æå
ã®PCã§åä½ããã¦ï¼ãans = 8ãã¨ä¸ç¬ã§åºã¾ããã
ã¯ãããã°ã©ã ã§ã¯ä¸ç¬ã§ãããæä½æ¥ã®å ´åãæ¬å½ã«å
¨é¨æ¸ãåºããã£ã¦ããæ¹éãæ©ãã¿ã¤ãã³ã°ã§æã¦ããã©ããã解çæéãå·¦å³ãããã§ãã
ããã¼ããçµå±æ¸ãåºããããªãã
â åãã¦è¶³ãã¦ç´æ°ã«ãªããè¯ãæ´æ°ãã4ã¤æ¢ãåé¡
éã次ã®åé¡ã«é²ã¿ã¾ããå°å¦çã®æ£ççã¯56.6%ã§ããã
åé¡3
3ããã®æ´æ°ã®ãã¡ã次ã®æ¡ä»¶ãæºãããã®ããè¯ãæ´æ°ãã¨ãã¶ãã¨ã«ãã¾ãã
æ¡ä»¶ï¼3ããã®æ´æ°ã2ã¤ã®æ´æ°ã«åãã¦ãã®åãèããã¨ã常ã«ãã¨ã®æ´æ°ã®ç´æ°ã«ãªã£ã¦ããã
ï¼ä¾ï¼330ã¯3ã¨30ã«åãã¦ãã33ã¨0ã«åãã¦ãåã330ã®ç´æ°ã«ãªã£ã¦ãã¾ãããã®ããã330ã¯ãè¯ãæ´æ°ãã¨ãªãã¾ããã§ããã702ã¯7ã¨02ã«åããå ´åã¯ç´æ°ã«ãªãã¾ããã70ã¨2ã«åãã¦ãã¾ãã¨ç´æ°ã«ãªãã¾ããããã£ã¦ã702ã¯ãè¯ãæ´æ°ãã§ã¯ããã¾ããã
ä¸ã®ä½ã0ã§ãªããè¯ãæ´æ°ãã4åæ±ããªããã
ãã4åçããã£ã¦ãã¨ã¯4ã¤ä»¥ä¸ããã®ããªã
éãããã§ãããå®ã¯5ã¤ããã¾ããã
ããããã¼ãããããã
ã¯ãåãããAãBãCã¨ããã¦ããã£ã¨ãæ¡ä»¶ã¨ãã¦ã¯ããã§ãããã§ãããã
éãã¯ãã¯ãããããããã¨ã§ãã
ããããã«ã¼ãã§æ¢ãã°çµãããããããããã¼ãRubyã§æ¸ãï¼
ã¯ããã£ï¼ãããï¼ ããããã¼ãã¯ãã£ãPerlã§è§£ããããä»åº¦ã¯äººåã§ãããããã¨ãã¯ã¤ã³ã¹ã¿ã³ã¹ãããã
ããï¼ã«ã¿ã«ã¿ã¨ããã°ã©ãã³ã°ä¸ï¼
ã¯ã32ã¨ãããã£ã½ãã§ããããã¼ããæ°åã®æ§è³ªãè¦ãã»ããããã®ããªãâ¦â¦ã
ããï¼â¦æ°åå¾ï¼æ¸ããã¼ï¼
ã¯ããã£ãããâ¦â¦ã²ã©ãâ¦â¦ã
ããRubyç¾ããï¼ ã¨ãããã¨ã§çãã¯ããããåºãªãããã°ã£ã¦ãï¼
ã¯ãã¡ãã£ã¨ï¼ç¬ï¼ãã£ãããã¦ãã ãããã
ããç¦ã£ã¦ã¯ãããªãããã°ã©ãã³ã°â¦â¦ãã¼åºãåºãã
éããã£ã¨Cã¯0ãããªãã§ãããããã§ãããã¯ããæ£è§£ã§ãããã¯ããããèãã¦ããéã«ãããããããRubyã§æ¸ããã³ã¼ããè¦ã¦ã¿ã¾ãããã
100.upto(999) do |n| (a,b,c) = n.to_s.split("").map{|k| k.to_i } next if c == 0 puts n if n % (10 * a + b + c) == 0 and n % (a + 10 * b + c) == 0 end
éãã«ã¼ãã®æå¾ã«ããæ¡ä»¶å¼ãæå¿«ã§æ°æã¡ããã§ãããç§ã¯Excelã§æ¤ç®ãã¾ããããã£ã¡ã®ã»ãããããªâ¦â¦ãããã°ã©ã ã®åºåã®5ã¤ã108ã216ã324ã405ã648ã®ãã¡4ã¤ãçããã°æ£è§£ã§ãããã¨ããã§ãã¯ãããã¯â¦â¦ã¾ã èãã¦ãã¾ããã糸å£ã¯ã¤ããããã§ããï¼
ã¯ãè¾ãâ¦â¦äººåã§ã¯ã®ãã¢ãããããã§ãã
éãæéããªãã®ã§ããããã¾ãããããå®ã¯ç§ãäºåã«è§£ãã¨ãã2ã¤è¦ã¤ããã¨ããã§äººåã¯ããããã¦Excelã«é ¼ãã¾ããã
ãããã½ã³ã³ãªãã§ã©ããã£ã¦è§£ããã§ããï¼
éãç®æ°ãªãªã³ããã¯ã®åé¡éã«ãã解説ãèªãã¨ãããæ°Xã®åæ°ãããXã®åæ°ãå¼ããæ°ãXã®åæ°ã«ãªãã¨ããæ¡ä»¶ãå©ç¨ãã¦å¼ãå¤å½¢ããããã§ãCã1ï½9ã®å ´åã§å ´ååããã¦èª¿ã¹ãã¨ããææ³ã§è§£ãã¦ãã¾ããã
ã¯ãã»ã¼ãããã¯æãã¤ããªãããã
éãæ¼ç®ãæ大3æ¡ãªã®ã§ãããã¾ãæ°å¦çã«èãããæ°åã®æ§è³ªã¨æç®åãæ´»ããã¦4ã¤è¦ã¤ããã»ããæ©ããã¨ç§ã¯æã£ã¦ãã¾ããã¨ãã«ã2ã3ã®åæ°ã§æ¡ä»¶ãæºãããããããª216ã324ãããã«Bã®æ¡ã0ã§è¶³ãç®ãã·ã³ãã«ã«ãªã108ã¨405ã¯ã5ã¤ããâè¯ãæ´æ°âã®ä¸ã§ãè¦ã¤ããããã¨æãã¾ããããããã°ãã¯ããããã32ãããæ°åã®æ§è³ªã«ãã¨ã¤ã¶ããã¦ãã¾ãããã
ã¯ããªããè¿ãã¨ããã«ããã®ãé ãã¨ããã«ããã®ãããããªãâ¦â¦ã
â ç®æ°ãªãªã³ããã¯ãç®æããªããå®ç¸¾è±å¯ãªæµå¦å
éãããã§çªç¶å®£ä¼ã§ãï¼ ãã®ç®æ°ãªãªã³ããã¯ã®ä¸ä½å ¥è³è ãå¤ã輩åºããè±ææè²å°éã®ãæµå¦åãã¨ããå¦ç¿å¡¾ãããã¾ãã
ã¯ããã¼ãããï¼
ãããããªé£ããåé¡ã解ã人ã£ã¦ãæãã¦ã§ãããããªãã§ããã
éãæµå¦åã¯ã1959å¹´ã«ãè±èªã»æ°å¦å¡¾ãã¨ããå称ã§åµè¨ä»¥æ¥ãå
¨å½å±æã®é£é¢ä¸å¦ã§ããçä¸å¦ãç¥æ¸å¥³å¦é¢ã®åé¨ã§ä½åº¦ãåæ ¼è
æ°æ¥æ¬ä¸ãéæãã¦ããè±ææè²å°éã®å¦ç¿å¡¾ã§ããä»å¹´ã®æµå¦åããã®çä¸åæ ¼è
ã¯88人ã ããã§ãï¼2011å¹´1æ22æ¥æç¹ï¼ãçä¸ã¯ç®æ°ã§å·®ãã¤ãããã§ããã
ããç®æ°ãªãã§ãããããã¯ãã£ã¦ããè¬å¸«ãã次第ã§ãããã
éãè¬å¸«ã¨ãã¦æµå¦åã®æå£ã«ç«ã¤ã«ã¯ããã¼ãã¼ãã¹ãã®ã®ã¡ããã¹ãå®æ½æ
å½ã®åè¬å¸«ã¨ãã¦çµé¨ãç©ã¿ãããã«è¬å¸«ç»ç¨è©¦é¨ã®ééãããªã©ã®çãéããããæããå¿
è¦ãããããã§ãã
ããã²ãã¼ã試é¨ã¯ããããã â¦â¦ã
éãä»ã«ãã2ã¶æã«ä¸åº¦ã塾çã«ããææ¥ã¢ã³ã±ã¼ãããå®æ½ãã¦ããã®çµæã¯è¬å¸«ããã®è©ä¾¡ã«ãåæ ãããããã§ãããã¡ãããæç§å¥å°éæå°ã·ã¹ãã ãæ¡ç¨ãã¦ãã¦ãä¸äººã®è¬å¸«ãããè¤æ°ã®æç§ãæ
å½ãã¾ããã
ã¯ããããã¦ãè¬å¸«ããã®ã¹ãã«ãç¶æãã¦ææã«ã¤ãªãã¦ãããã§ãããããããã°æµå¦ååºèº«ã®äººãããªãã
ããé¢è¥¿æ¹é¢ã§å¼·ã塾ãªã®ããªã
éãã¯ããå
µåº«ãã大éªã京é½ãæ»è³ãå¥è¯ãæç¥ãåæå±±ã岡山ã«33ã®æ室ãããã¾ããããã«ãWebã¹ã¯ã¼ã«ãã¨ããè¬ç¾©ã®æ åé
ä¿¡ã¨å®¶åºå¦ç¿ã復ç¿ãã¹ããçµã¿åãããä»çµã¿ããã£ã¦ãåæµ·éããæ²ç¸ã¾ã§ãããã«ã¯ã¢ã¡ãªã«ããªã¼ã¹ãã©ãªã¢ã«ãåè¬çãããããã§ããæ åé
ä¿¡ã¯ä¿è·è
åã説æä¼ã«ãæ´»ç¨ãã¦ããããã§ããã
ã¯ãã¤ã¾ããæ室ãè¿ãã«ãããªãæµå¦åã§ã
ããæ室ãè¿ãã«ãªãã¦ãWebã¹ã¯ã¼ã«ã§å¦ã¹ãã£ã¦ãã¨ã§ããï¼
éãæ£è§£ã§ãï¼
ã¯ãããããã°ãããPRè¨äºã®åæã§ããããåé¡ã解ãã®ã«å¿
æ»ã§å¿ãã¦ã¾ããâ¦â¦ã
â æå¾ã«æ£å½ç2%ã®é£åã
éãã¨ããã§ãã1åããã¾ããæ£ççã¯ææªã®2%ã§ããã
ã¯ãããããã ã¼ï¼
ããæãã¼ï¼ããã¦ã¼ï¼
åé¡7
5Ã5ã®ãã¹ç®ã«6åã®âã次ã®æ¡ä»¶ãæºããããã«æ¸ãã¾ãã
æ¡ä»¶ï¼åè¡ã»ååã«å°ãªãã¨ã1åã¯âãæ¸ããåããã¹ã«ã¯2å以ä¸ã®âãæ¸ããã¨ã¯ã§ããªãã
ãã®ã¨ãã6åã®âãæ¸ãæ¹æ³ã¯å ¨é¨ã§ä½éãããã¾ããã
ã¯ãããæåãããã½ã³ã³ã§è§£ãã5Ã5ã®25ãã¹ãããªãããâã®ãããªãã§25bitï¼ è¡ããï¼
ããã¡ãã£ã¨å¾
ã£ã¦ããã®ãã¿ã¼ã³ã§ãããã£ã¦ãããã¦ã5Ã5Ã4Ã4Ã3Ã2Ã1ã§2400éãï¼
éãä¸æ£è§£ã§ãï¼
ã¯ããã£ï¼ãããªã«å¤ãï¼
éããã®çãã ã¨ä¸éç¹ãããããããªãã§ãããæ£è§£ã¯ãã£ã¨å¤ãã§ãï¼
ãããã£ã¨ããã®ãããã¼ãâ¦â¦ã
éãã¡ãªã¿ã«ç§ã¯Cè¨èªã§è§£ããã¨ãã¦åæ¥ãããã¾ããããããæ£è§£ä¾ãã1å°ãªãå¤ãåºåãã¾ããããè¦ç´ããããªãâ¦â¦ã
ã¯ã»ããå
çãã ããããªãã£ããâ¦â¦ã