2007-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãã®ã·ãªã¼ãºä¹ ã ã®ãããªã ã¨ããããã§ãã½ã¼ã¹ã³ã¼ãããï¼ struct orange; /* ããã¯ãä½åº¦ãæ¸ãããã¨ããã*/ typedef orange;/* C ã®å ´åã¯ãtypedef int orange ã¨å義 */ typedef struct kiwi; extern struct grape; extern grape;/* C ã®å ´åã¯â¦
d:id:Nabetani:20071216:p1 ã®ç¶ãããããã ã«ã¼ããã²ã¨ã¤ã®æãæ°ã«ãªãã N(â§3)æ¬ã®ç·åãããããã®ç«¯ç¹ã§æ¥ç¶ãã¦ã²ã¨ã¤ã®ã«ã¼ããä½ãã ãã®ã¨ããç·åå士ã®äº¤ç¹æ°ã®æ大å¤B(N)ã¯ããã¤ãã å¥æ°ã®å ´å㯠B(N)=C(N)=N(N-3)/2 ã§ã解決ã å¶æ°ã®å ´â¦
æ®å½±ç®çã§ãªãå¤åºã®éã®ä¸æã ããããã®ãèºæé段ã£ã¦è¨ãã®ããªã åºè§ã§æ®ãããã£ããã ããæå ã« 70mm-200mm F4 ãããªãã£ãã®ã§ãä»æ¹ãªã 70mm ã§æ®ã£ãã çµæçã«ã¯ãã®æ¹ããããã£ããã¨ããæãã
d:id:Nabetani:20071214:p1 ã®ç¶ããããããèãã¦ã C(n) ⦠n(n-3)/2 ã¯è¨¼æã§ããã å¾ã£ã¦ãnãå¥æ°ã®å ´å㯠C(n) = n(n-3)/2 ã§ééããªãã¨æããä¸æ¹nãå¶æ°ã®å ´åã C(n)ï¼n(n-3)/2ã証æã§ãããçå·ãå ¥ããå¼ã«ããã°ãC(n)â¦n(n-3)/2-1ã ä¸ãæ¼â¦
see http://d.hatena.ne.jp/igatoxin/20071214/p1 . ã§ã igatoxin ããã«æ¯ãããã®ã¯å¤§å¤å æ ãªãã ããå ¨ç¶ç¥ããªãã®ã§ããã ã¨ã¯ãããèãã¦ã¿ããC(8)ã¯ãC(4) ã®å³å½¢ã2ã¤éããã¨åºæ¥ãå½¢ãããC(8)â§1+1+4Ã4=18 ã ã¨æãã C(10)ã¯ãC(6)ã®å³å½¢ã¨Câ¦
http://blog.livedoor.jp/dankogai/archives/50957658.html ã« ç¾ä»£ã§ã¯ä¸æã¡ã¢ãªã¼ã使ããªãin-place merge sortãéçºããã¦ãã ã¨æ¸ãã¦ãããããããã°ãSTLã® stable_sort ã®è¨ç®éã O( N (log N)**2 )ã ã£ãããªãã¨æããã©ããã£ãããããªãã®â¦
def divmod(a,b) [a/b,a%b] end ã¿ãããªé¢æ°ããã£ã¦ã ãã®ä¾ã§è¨ããa/b ãä¸è¦ã§ a%b ã ããè¦ãã¨ãããã ã¾ãå¤éä»£å ¥ãããªãã¦é åãè¿ã£ã¦ãã¨æãã° r=divmod(10,3)[1] ãªãã ãã©ã def foo(a,b) yield[a/b,a%b] end ã ã¨é åã¨æãã®ãé£ãããâ¦
d:id:debedebe:20071021 ãèªãã§ãç§èªèº«ã¯ãçåæ°ã®å°æ°è¡¨ç¤ºãå½¹ã«ç«ã¤ã¨ã¯ããã¾ãæã£ã¦ãªããå°æ°ã®è¨ç®ã¯äººéããããããããªãã¨æã£ã¦ãããã ã¨æãã 1ã20ã®èªä¹ã1ã9ã®ä¸ä¹ã¯ä¾¿å©ã ã¨æããæ¶ãã¦ãªããã©ã 2ã®æ´æ°ä¹ã¯ã2**24=16777216ã¾ã§â¦
æè¦ããåãªãã½ã¼ã¹ã 使ç¨è¨èªã¯ C++ã somestruct foo[] = { { 100, 1, 2, 20, 1 }, { 150, 2, 1, 25, 5 }, { 175, 1, 2, 15, 3 }, { 100, 2, 2, 05, 5 }, { 100, 1, 3, 15, 4 }, { 075, 3, 2, 10, 3 }, { 100, 1, 3, 10, 3 }, { 025, 4, 2, 05, 1 }, };â¦
ãã¾ã«ã¯æ°å¦ã¨ãããã°ã©ãã³ã°ã¨ãã«ã¡ã©ã¨ãé¢ä¿ãªã話é¡ãã¨è¨ããã¨ã§ã http://anond.hatelabo.jp/20071006210158 ãèªãã§æãåºãã話ãéåé³ç´ããã¬ã¼ãã¼ã«ã«åå ããå ´åã æããã«ããªãæ¹ããã·ã«ãªããéåé³ç´ã¯èªåã°ããããããã¦ããâ¦
d:id:Nabetani:20070820, d:id:Nabetani:20070822, d:id:Nabetani:20070823, d:id:Nabetani:20070827 ã®ç¶ãã æ°å¼ã®å½¢ã§è¡¨ãã®ã¯é¢åãªã®ã§ãruby ã®ã½ã¼ã¹ã§ï¼
ãã¨ãã°ãã£ããããã ä¸è¬é ã¨ãã㨠c ãæãæµ®ãã¹ããã¨ãå¤ãããc 㯠誤差ãªãã§ã®è¨ç®ãå°é£ åé ãæ´æ°ã§ããã¨ããæ§è³ªãè¦ãã«ãã ã¨ããæ¬ ç¹ãããããã®ç¹ã§ãããã¦ããã®ã¯å®ã¯ aã ããã a ã¯å帰çå®ç¾©ãªã®ã§ä½ã¨ãªãä¸è¬é ã£ã½ããªããâ¦
ã¯ã¦ãªããã¯ãã¼ã¯( http://b.hatena.ne.jp/entry/http://d.hatena.ne.jp/Nabetani/20070822%23p1 ) id:bluesy-kããã«ãä¸è¬ã¦ããªè¡¨å¼ãæ±ããããªããã¨ããã³ã¡ã³ããããã ããã®ã§ãããã¡ãã£ã¨èãã¦ã¿ãããããããªãã¨ã ä¸è¬é ãæ±ã¾ã£ããæ§ãªâ¦
Perfume ãComplete Bestã (DVDä»)ã¢ã¼ãã£ã¹ã: Perfumeåºç社/ã¡ã¼ã«ã¼: å¾³éã¸ã£ãã³ã³ãã¥ãã±ã¼ã·ã§ã³ãºçºå£²æ¥: 2007/02/14ã¡ãã£ã¢: CDè³¼å ¥: 31人 ã¯ãªãã¯: 1,676åãã®ååãå«ãããã° (672件) ãè¦ãPerfume~Complete Best~(DVDä»)ãè²·ã£ãã ç¾â¦
ããããã ãã¶èãããã£ã¨ãã£ã¨éãè¨ç®ããæ¹æ³ãæãã¤ããã require 'rational' N=6 def perm(a,b) (0..b-1).inject(1){|r,i| r * (a-i) } end def combi(a,b) ((b+1)..a).inject(1){|r,i| r * i / (i-b) } end def count(n) (1..[N,n].min).inject(0â¦
another ããã d:id:another:20070821:1187714499 ã§è¨ç®ãã¦ãã ãã£ãã®ã§ãç§ãè¨ç®ãã¦ã¿ã: require 'rational' def count( rest, c ) @h[c.sort] ||=( if 0==rest c.find{|i| i==1 } ? 1 : 0 else (0...6).inject(0){ |s,ix| c1=c.dup c1[ix]+=1 s+coâ¦
æè¿å¯ãªããèãã¦ããåé¡: 10人ã®äººãããã åèª1åãã¤6é¢ãã¤ã¹ããµãã åãç®ãåºã人ãåãã°ã«ã¼ããã¨ããçµåããããã å ¨å¡åãã°ã«ã¼ããããããªããã2人çµã5ã¤ãããããªãã ã§ã 人æ°ãï¼ã®ã°ã«ã¼ããã§ãã確çãæ±ããã ããå®éã¯1â¦
ããã ãã§ã¯å¯ããæ°ããã¦ããã®ã§ããã¡ãã£ã¨æ¸ããå æ¥ã ç§ãæ¥æ¬èªã¯ããããªããã©è±èªã¯ãããéè±èªåã®äººãæ¥æ¬èªãè±èªããããéè±èªåã®äºº ã®3人ã§è©±ãããæ©ä¼ããã£ãã ãããããéè°·ããè±å¾ããããæ¥è±ãããã¨å¼ã¶ãã¨ã«ãããããç§â¦
id:another ãããå°é£¼å¼¾ãããããã¦ãã¶ããå°é£¼å¼¾ããã®å¥¥æ§ããèªçæ¥ããã§ã¨ããããã¾ãã ï¼ãããã©ã¤ã³ã°æ°å³ã§ããã ããããã ãã
ã¾ãèã®åçã ããã¯ãæ æ¨çã®å±±éé¨ã§æ®ã£ãã ã¦ã§ããå½ãã£ã¦ã¿ããã ãã種é¡ãããããªãã£ãã æã¶ããªã®ã¯ãæ¥æ®ãï¼çææã¡ ã¨ããæªæ¡ä»¶ã«è² ããããã ä¿®è¡ã足ããªãã
å¼ãç¶ã http://www.uchiyama-gg.co.jp/germa_oro.htm ã®ããã©ã¹ã¤ãªã³ æ¨æ¥ã大äºãªã¨ãããå¼ç¨ãå¿ãã¦ããã çºçãããã¤ãã¹é»åã¨ã«ã©ãã®ãã©ã¹é»åãçµã³ã¤ããã¨ãã ã²ã«ããã¦ã ãå¥åº·ãä¿ã¡ã¾ãã å¾çã§ããããå¥åº·ã®ãããªã©ã¨ãããã ãâ¦
åºè¾èã«ããã¨ã ã¢ãã©ã¼ãã¯ãæ¼¢åã§æ¸ãã¦ãæ²¹èã§é¢ç½ããªã*1ãããã¤ãã¤ã¼ãã¯æ¼¢åã§æ¸ãã¨èªèã§ããã³ãã³ã¼ãã¯èèãããã ã¨ãã話ã¨ã¯é¢ä¿ãªããå æ¥ãèã®ã¢ãããä½æãæ®ã£ãã ã§ãä»æ¥ã®åçã¯ãã®èã èã¯ããã¾ãåããªãã®ã§æ®ããâ¦
http://www.uchiyama-gg.co.jp/germa_oro.htm ã«ããã¨ã å¥åº·ãªäººã®ã«ã©ãã«ã¯ãã©ã¹é»åã¨ãã¤ãã¹é»åã®å¾®å¦ãªé»æµãããã©ã³ã¹ããæµãã¦ãã¾ãã ã¨ã®ãã¨ã ãã©ã¹ã«ãªã£ã¦ãé»åã£ã¦ããã¨ããã£ã±ãé½é»åã«éããªããã¨ãããã¨ã¯ããããäºå®ä¸ç¡â¦
ãªã¥ãã¯ãµãã¯ã¨ãããã¶ãã¯ã¨ããã¯ããã¯ãåããã®ãæãã¦ãããããªæ°ãããããã©ããªãã ãã ã¨æã£ã¦èª¿ã¹ã¦ã¿ããåºè¾èã«ããã¨ã ãããã¶ãã¯ã¯å°åã®ãªã¥ãã¯ãµãã¯ãããã¯ããã¯ã¯å¤§ããã¦ãã¬ã¼ã ãã¤ãã¦ãããªã¥ãã¯ãµãã¯ããããã 大â¦
å æ¥ã®äºæ³ã¯ãããããããã»ã©å®ç§ã«å¤ãã¦ããããã£ã±ããã¹ã³ãã®æ¹ã ã¯(å°ãªãã¨ããã®ä»¶ã«é¢ãã¦ã¯)ã¡ããã¨ä»äºãã¦ããã ãªãã¨æã£ããã¡ãªã¿ã«ãããªãã ã®è¡è°é¢è°å¡é¸æã®æã¯ãèªæ°å ãããè² ããã¨ããäºæ³ããã¦ãããã¨ã»ã»ã
èªæ°å 大æã®å¯è½æ§ã!!!! ã¨ããå ±éãããè¦ãããç§ã¯èªæ°å ã®å§åãããªãããªã¨æã£ã¦ãããæ ¹æ ã¯ãªãã ããããã°ãã¢ã¤ãã£ã¢ãã¤ã³ãå¸å ´ãå©ç¨ããé¸æã¯ãä»åã¯ãããªãã®ããªã
http://jp.youtube.com/watch?v=SiS2-t5s4ig ã http://jijixi.azito.com/cgi-bin/diary/index.rb?date=20070728#p02 çµç±ã§è¦ãããããªãã¨ãããå¾ã失ç¹ãããå¾ç¹ãããã¦ãã横æµé«æ ¡ã¯åãã¨æã£ã ãããªãã¨ããããéä¸åãéåãã¦ã¼ãã¼ãç¹ãåâ¦
ãã®æ¥è¨ãèªãã§ãã ãã£ã¦ããæ¹ã®ååãããã¯ããã°ã©ããããªããã¨æã£ã¦ãããã ããã©ãã ããã ã§ã ã½ã¼ã¹ã³ã¼ãã¨ãã£ã¿ã®è©±ã ç§ã¯ãå»å¹´ãããããã ã£ãããªãã½ã¼ã¹ã³ã¼ãã®ç·¨éã«ã¯ãããã¼ã·ã§ãã«ãã©ã³ãã使ãããã«ãªã£ãã液æ¶ç»é¢ã§â¦
ã¨ããããã§ãéç©´ã«ã¡ã©ã§æ®ã£ãåçãä¸æããã«ç½®ãã¦ãããï¼ ã¨ã¯ãã£ã¦ããããã¯ä¸ã¶æãããåã«æ®ã£ãåçã ãã«ãã¢ã®è²ã¯ä¸èªç¶ã§ã¨ã¦ãããã¨æãã
ããããçºè¡¨ã«ãªã£ããããã ãã ç§ãæ°ã«ãªãã®ã¯ãã£ãã²ã¨ã¤ãDMC-FZ18ã 28mmç¸å½ãã504mmç¸å½ã¾ã§ãºã¼ã ãããã°ããã¦ãã¦å¤§å¤å¥½ã¾ããã æé 端ã§ã¯ã©ããªããããã¼ãã«ããªã³ã¸ãåºãã®ãã¨ããããããªããä½ä¾åçãè¦ã¦ã¿ãããæé 端ã使ã£â¦