ToDo:
http://d.hatena.ne.jp/toge/20060725#1153843313
¤½¤â¤½¤â sleep ¤È¤«ÌµÂ̤ËÆþ¤Ã¤Æ¤ë¤«¤é¤Ê¤¡¡£
/etc/rc.d/rc ¤Î action $"Starting $subsys: " $i start ¤Ë & ¤Ä¤±¤ë¤À¤±¤Çµ¯Æ°¤¨¤é¤¯Â®¤¯¤Ê¤ë¤·¡£ ¤¿¤Ö¤óÇÜÁý¤¯¤é¤¤¤Ï¤¤¤Ã¤Æ¤ëµ¤¤â¡£ OK FAILED ¤¬¸«¤ì¤Ê¤¯¤Ê¤ë¤±¤É¡¢¤Þ¤¡Ê̤ËÌäÂê¤Ê¤¤¡Ä
(01:11)
¤«¤é ADVTR ¤Ç¤â¤ä¤ë¤«¡¼¤È¤«»×¤Ã¤¿¤ó¤À¤±¤É (¥×¥é¥¤¥ª¥ê¥Æ¥£¥¥å¡¼¤Ö¤Ã¤³¤ï¤ì¤Ï¤ä¤ëµ¤¤Ê¤¤¾Úµò) ¤½¤¦¤½¤¦¤³¤Î¥Þ¥·¥ó¤Ç¤Ï¥á¥â¥ê¤¬Â¤ê¤Ê¤¤¤Î¤Ç¤¢¤Ã¤¿¡£ 512MB¤Ç¤ê¤Ê¤¤¤È¤¤¤¦¤Î¤Ï¤Ê¤ó¤Ä¡¼¤« UM ¤¬°¤¤µ¤¤¬¤·¤Æ¤Ê¤é¤Ê¤¤¡£
(01:52)
(02:54)
(02:54)
(02:54)
¤È¤ê¤¢¤¨¤º UM ¤Á¤ç¤Ã¤È¥¤¥¸¤Ã¤¿¤é ¥á¥â¥ê»ÈÍÑÎ̤º¤¤¤Ö¤ó¥Þ¥·¤Ë¤Ê¤Ã¤Æ²¶¤Î¥¢¥Û¥¢¥Û¤È»×¤Ã¤¿¡£
(02:58)
XML ¤È¤« S ¼°¤Ã¤Æ¤Þ¤¸¤Ç¤¹¤«¡£
º£²ó¤Î ICFPC ¤Ï¡¢¡Ö´Ø¿ô·¿¸À¸ì²°É¬»à¤À¤Ê¡×¤Ã¤Æ¤¤¤¦ °õ¾Ý¤òÍ¿¤¨¤é¤ì¤Ê¤«¤Ã¤¿¤Î¤âÎɤ«¤Ã¤¿¤«¤Ê¡£ ¤Ê¤ó¤«¡¢Àè°ìºòǯ°ÊÍè¤Î2ǯ¤Ï¡¢ ´Ø¿ô·¿¤Ä¤«¤¨¥ª¡¼¥é¤ò´¶¤¸¤¿¤ó¤À¤±¤É¡¢ º£²ó¤Ï´Ø¿ô·¿¸À¸ì¤Î¥¢¥¸¤ß¤¿¤¤¤Ê¤â¤Î¤ò¡¢ ¥¢¥Õ¥©¡¼¥É¤Á¤å¤¦¤ó¤«¤Í¡¢ ¤µ¤ê¤²¤Ê¤¯Ä󼨤µ¤ì¤Æ¤ë°õ¾Ý¤ò¼õ¤±¤¿¡£ ¤È¤¤¤¦¤«Á´ÂÎŪ¤Ë¥¢¥Õ¥©¡¼¥É¤¬Èó¾ï¤Ë¤¦¤Þ¤¤¤ï¤±¤À¤±¤É¡£ ¤Þ¤ºÎý½¬¤ò¤µ¤»¤ë¡¢¤È¤¤¤¦¤«¡¢ ¤³¤¦¤¤¤¦¤Î¤Ï¤¿¤Ö¤ó¡¢¤½¤ó¤Ê¤Ë´Êñ¤¸¤ã¤Ê¤¤¡£
(04:35)
¤µ¤Ã¤ÀѤޤì¤Æ¤ë¥¢¥¤¥Æ¥à¤Ë ex ¤Ç¤¤ë¤³¤È¤Ëµ¤ÉÕ¤¤¤¿¤ó¤Ç¤¹¤¬¤Í¡Ä
¤Ä¡¼¤«ËÜÅö¤Ï¡¢ keypad ²ò¤¤¤¿¸å¤Ë ex ¥³¥Þ¥ó¥É¤Ç ¥¢¥¤¥Æ¥à¤ËɬÍפʤâ¤ÎÄ´¤Ù¤é¤ì¤ë¤ÈÃΤ俤ó¤Ç¤¹¤¬¤Í¡Ä
¤Ä¤Þ¤êÁ´¥Ñ¥¿¡¼¥ó combine ¤·¤Æ¤¿¤ó¤À¤Ê¡¼¡£ ¤¢¤Û¡¼¡£¤¢¤Û¡¼¡£
(04:36)
µ²±¤¬ºøÁ¤Æ¤ë¡£
¤³¤ì¤¸¤ã¤¢ antenna ̵¤· radio ¤Ëµ¤ÉÕ¤¯¤ï¤±¤Ê¤¤¤·¡¢ ex ¤ÇÄ´¤Ù¤¿µ²±¤Ï¤¢¤ë¡£
(04:39)
(success (command (go (room (name "54th Street and Dorchester Avenue")(description "You are standing at the corner of 54th Street and Dorchester Avenue. From here, you can go north, east, south, or west. ")(items ((item (name "X-9247-GWE")(description "an exemplary instance of part number X-9247-GWE")(adjectives ((adjective "orange-red") ))(condition (pristine ))(piled_on ((item (name "V-0010-XBD")(description "an exemplary instance of part number V-0010-XBD")(adjectives ((adjective "magenta") ))(condition (broken (condition (pristine ))(missing ((kind (name "X-9247-GWE")(condition (pristine ))) ))))(piled_on ((item (name "F-1403-QDS")(description "an exemplary instance of part number F-1403-QDS")(adjectives ((adjective "pumpkin") ))(condition (pristine ))(piled_on ((item (name "P-5065-WQO")(description "an exemplary instance of part number P-5065-WQO")(adjectives ((adjective "heavy") ))(condition (broken (condition (broken (condition (broken (condition (pristine ))(missing ((! kind (name "T-6678-BTV")(condition (pristine ))) ))))(missing ((kind (name "B-4832-LAL")(condition (pristine ))) ))))(missing ((kind (name "F-1403-QDS")(condition (pristine ))) ))))(piled_on ((item (name "B-4832-LAL")(description "an exemplary instance of part number B-4832-LAL")(adjectives ((adjective "taupe") ))(condition (pristine ))(piled_on ((item (name "L-6458-RNH")(description "an exemplary instance of part number L-6458-RNH")(adjectives ((adjective "gray40") ))(condition (broken (condition (pristine ))(missing ((kind (name "P-5065-WQO")(condition (broken (condition (pristine ))(missing ((kind (name "T-6678-BTV")(condition (pristine ))) ))))) ))))(piled_on ((item (name "T-9887-OFC")(description "an exemplary instance of part number T-9887-OFC")(adjectives ((adjective "eggplant") ))(condition (broken (condition (broken (condition (pristine ))(missing ((kind (name "X-6458-TIJ")(condition (pristine ))) ))))(missing ((kind (name "H-9887-MKY")(condition (pristine ))) ))))(pi! led_on ((item (name "Z-1623-CEK")(description "an exemplary instance of part number Z-1623-CEK")(adjectives ((adjective "indigo") ))(condition (broken (condition (broken (condition (pristine ))(missing ((kind (name "D-4292-HHR")(condition (pristine ))) ))))(missing ((kind (name "L-6458-RNH")(condition (pristine ))) ))))(piled_on ((item (name "H-9887-MKY")(description "an exemplary instance of part number H-9887-MKY")(adjectives ((adjective "yellow-green") ))(condition (pristine ))(piled_on ((item (name "F-6678-DOX")(description "an exemplary instance of part number F-6678-DOX")(adjectives ((adjective "shiny") ))(condition (broken (condition (broken (condition (pristine ))(missing ((kind (name "J-9247-IRG")(condition (pristine ))) ))))(missing ((kind (name "V-0010-XBD")(condition (pristine ))) ))))(piled_on ((item (name "R-1403-SXU")(description "an exemplary instance of part number R-1403-SXU")(adjectives ((adjective "pale-green") ))(condition (pristine ))(piled_on ((item (nam! e "USB cable")(description "compatible with all high-speed Universal Sand Bus 2.0 devices")(adjectives )(condition (broken (condition (broken (condition (broken (condition (pristine ))(missing ((kind (name "T-9887-OFC")(condition (broken (condition (pristine ))(missing ((kind (name "X-6458-TIJ")(condition (pristine ))) ))))) ))))(missing ((kind (name "F-6678-DOX")(condition (pristine ))) ))))(missing ((kind (name "N-4832-NUN")(condition (pristine ))) ))))(piled_on ((item (name "N-4832-NUN")(description "an exemplary instance of part number N-4832-NUN")(adjectives ((adjective "sienna") ))(condition (pristine ))(piled_on ((item (name "J-9247-IRG")(description "an exemplary instance of part number J-9247-IRG")(adjectives ((adjective "slate-gray") ))(condition (pristine ))(piled_on ((item (name "B-5065-YLQ")(description "an exemplary instance of part number B-5065-YLQ")(adjectives ((adjective "dim-gray") ))(condition (pristine ))(piled_on )) ))) ))) ))) ))) ))) ))) ))) ))) ))) )))! ))) ))) ))) ))) ))))))
(04:42)
multmem ¤Î¼ÂÁõ¤Î¤·¤«¤¿¤ï¤«¤Ã¤¿¤¾¡£ ¤¯¤½¤¦º£º¢ÃÙ¤¤¤è¡£ ¤Ç¤âº£»×¤¤¤Ä¤¤¤¿¤Î¤À¤ÈÅÀ¿ô¾¯¤Ê¤½¤¦¡£ ¤·¤«¤·¤»¤Ã¤«¤¯¤À¤«¤é»î¤·¤Æ¤ß¤è¤¦¤¾¡Ä
(06:17)
(06:23)
¤Ò¤É¤¹¤®¤Æ¼ê¤Ç¤Ï¼ÂÁõ¤Ç¤¤½¤¦¤â¤Ê¤¤¤±¤É¡£
a+a ¤ò·×»»¤·¤Þ¤¯¤Ã¤Æ¡¢ 0 ¤Ë¤Ê¤ë¤Þ¤Ç M[4]=a, M[5]=a*2, M[6]a*4,... ¤òʤ٤롣 ¤³¤Î±¦¤Ï M[12]=0 ¤Ë¤·¤Æ¤ª¤¯¡£ ¤³¤Îʤó¤À¿ô¤ÏÎ㤨¤Ð¡¢´ñ¿ô¤Ê¤é8¸Ä¤Ê¤É¤Èʤ֡£
¤Ç¡¢¤³¤ì¤òº¸¸þ¤¤Ë¤¿¤É¤ë¡£ ¤³¤Î»þ¤Î¥á¥â¥ê¤ò i ¤È¤·¤è¤¦¡£ i ¤ÏºÇ½é¤Ïɬ¤º 0x80 ¤À¡£ ¤³¤ì¤òÊ̤ʾì½ê d ¤ËµÏ¿¤·¤Æ¤ª¤¯¡£ ¼¡¤ÎÃÍ i ¤ò¸«¤¿¤é¡¢d ¤«¤é 2²ó¤Ò¤¤¤Æ¤ß¤Æ¡¢ 0¤Ë¤Ê¤ë¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ë¡£ 0¤Ë¤Ê¤Ã¤¿¤é d XOR i ¤ò d ¤Ë¡¢ ¤½¤¦¤Ç¤Ê¤¤¤Ê¤é i ¤ò d ¤ËÂåÆþ¤¹¤ë¡£ ¤³¤ì¤Ç 0x40 ¤¬¼ê¤ËÆþ¤ë¡£ ¤³¤ì¤ò½ª¤ï¤ê¤Þ¤Ç(M[3] ¤Ï 0¤Ë¤·¤Æ¤ª¤¯)·«¤êÊÖ¤¹¤È¡¢ a ¤ÎºÇ±¦ bit ¤¬Î©¤Ã¤¿ÃÍ d=2^e ¤¬¼ê¤ËÆþ¤ë¡£
a-=d ¤ò 0 ¤Ë¤Ê¤ë¤Þ¤Ç·×»»¤·¤Æ¡¢ ¤½¤Î²ó¿ô¤À¤±¡¢ b ¤ò 0 ¤Ë¤·»»¤·¤ÆÃÍ f ¤òÆÀ¤ë¡£
¤³¤ì¤ÇÆÀ¤é¤ì¤¿¿ôÃÍ f (M[2] ¤ËÆþ¤ì¤Æ¤ä¤ë) ¤Ï a*b/d ¤Ë¤Ê¤ë¡£ ¤µ¤Æ¡¢ M[11] ¤«¤é½ç¤Ë¡¢ 0 ¤Ç¤Ê¤¤¿ôÃͤ¬¤¢¤é¤ï¤ì¤ë¤Þ¤Ç f += f ¤ò·×»»¤¹¤ë¡£ ¤¹¤ë¤È¤Á¤ç¤¦¤É f*2^e ¤Ä¤Þ¤ê a*b ¤¬ÆÀ¤é¤ì¤Æ¤¤¤ë¤Ï¤º¡£
¤¢¤ê¤¨¤ó¡£ ËÜÅö¤Ë¤³¤ó¤Ê¤á¤ó¤É¤¤¤Î¤«¡£
(07:26)
ubyte M[256]; ubyte mult(ubyte a, ubyte b) { int i = 4; // i is register ubyte c = a; M[i] = c; while (true) { c += c; if (!c) break; M[++i] = c; } ubyte d = 0; ubyte g = 0; while (true) { ubyte e = M[i--]; if (!e) break; d = (e&g)^e; g ^= d; } ubyte f = 0; while (true) { a -= d; f += b; if (!a) break; } i = 11; while (true) { if (M[i--]) break; f += f; } return f; } void test_mult(ubyte a, ubyte b) { foreach (inout ubyte u; M) u = 0; ubyte c = a*b; printf("%d == %d ?\n", mult(a, b), c); assert(mult(a, b) == c); } int main() { test_mult(35, 27); test_mult(2, 11); test_mult(4, 11); test_mult(18, 11); test_mult(0xff, 0xff); test_mult(0xd1, 0xc3); return 0; }
0x80 ¤«¤éÍî¤È¤·¤Æ¤¤¤¯Éôʬ¤Î¥¢¥ë¥´¥ê¥º¥à¤Ï¥À¥á¤À¤Ã¤¿¤Î¤Ç¾¯¤·ÊѤ¨¤¿¡Ä
(08:06)
¤Á¤ç¤Ã¤È½¤Àµ¤·¤¿¡£
¤É¤¦¤Ç¤¹¡©¤³¤ÎÉ÷³Ê¡£ ¤³¤ì¤¬²¦¼Ô¤Î°Ò¸÷¤È¤¤¤¦¤â¤Î¤Ç¤¹¡£ ¤³¤Î¥Õ¥©¥ó¥È¤Ç¥¥ê¥¹¥È¤ò±Û¤¨¤Æ¤·¤Þ¤Ã¤¿¤«¤â¤·¤ì¤Þ¤»¤ó¡£ ¾¯¤Ê¤¯¤È¤â¶õ³¤¥¯¥é¥¹¤Ï´û¤Ë¥á¤¸¤ã¤¢¤ê¤Þ¤»¤ó¡£ (Åö¤¿¤êÁ°¤Ç¤¹¡£»ä¤Ï¤³¤Î¥Õ¥©¥ó¥È¤Ç¥Î¡¼¥Ù¥ëʸ³Ø¾Þ¤òÁÀ¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¹¤«¤é) À¤³¦Ãæ¤ÎË´¼Ô¤É¤â¤¬¤³¤Î¥Õ¥©¥ó¥È¤òÁÀ¤Ã¤Æ¤¯¤ë¤Ç¤·¤ç¤¦¤Í¡£
´Å¤¤¡£
¤³¤ì¤À¤«¤é±î¤Ï´Å¤¤¤Î¤Ç¤¹¡£ »ä¤Ï¥Þ¥¤¥¯¥í¥½¥Õ¥È¤È·ÀÌó¤ò¤¹¤ëͽÄê¤Ç¤¹ ¤¦¤ó¤Ì¤ó¤«¤ó¤Ì¤ó¡Ä
°Æ³°Æñ¤·¤¤Ê¸ÂΤʤó¤À¤Ê¤È»×¤Ã¤¿¡£
²¼¤Ë GPL ¤¬¤É¤¦¤È¤«½ñ¤¤¤Æ¤¢¤ë¤±¤É¤Ê¡¼¡£
codex.um ¹¶Î¬¥µ¥¤¥ÈÍߤ·¤¤¤È»×¤Ã¤Æ¤Þ¤·¤¿¡ª ¤¢¤ÈÌîÎÉ¥¹¥³¥¢¥¿¥Ã¥¯¤È¤«¤·¤¿¤¤¤¤¡£ ¤¿¤À¼«Ê¬¤¬Á´Á³¾å°Ì¤È¤«¤Ë¤«¤á¤Ê¤µ¤½¤¦¤Ê¤Î¤¬°à¤¨¤Ç¤¹¡£
¤Ç¤âËͤ¬¤ó¤Ð¤ë¤è¡ªADVTR²ò¤¯¤«¤é¡ª
¤Þ¤¿¤·¤Æ¤â°à¤¨¤«¤±¤Æ¤«¤é¡¢ UM ¤ò¥½¥±¥Ã¥È¤Ç½ñ¤¹þ¤á¤ë¤è¤¦¤Ë¤·¤¿¡£ ¼ê¤Ç²ò¤¯µ¤Ìµ¤µ¤²¤À¤¾¡ª
¤½¤ì¤Ï¤½¤¦¤È¡¢¤³¤ì¤Ï¤¢¤ì¤À¡£ ³°Éô¤Ë¸ø³«¤¹¤ë¤ÈÌÌÇò¤¯¤Í¡© ³°¤«¤é UMIX ¤ËÆþ¤ì¤ë¤ó¤À¤¼¡£
Ʊ¤¸²èÌ̤Ë̵¤¤¥¢¥¤¥Æ¥à¤¢¤ë¤Î¤Í¡Ä
¤Þ¤¡¤³¤Î¤¯¤é¤¤¤Ï¡£
{"USB cable"=>"eggplant T-9887-OFC", ["X-6458-TIJ", ["shiny F-6678-DOX", []], ["sienna N-4832-NUN", []]], "magenta V-0010-XBD"=>"orange-red X-9247-GWE", [], "eggplant T-9887-OFC"=>"!X-6458-TIJ", [, ["yellow-green H-9887-MKY", []]], "shiny F-6678-DOX"=>"slate-gray J-9247-IRG", [, ["magenta V-0010-XBD", []]]}
["USB cable", "sienna N-4832-NUN", "shiny F-6678-DOX", "magenta V-0010-XBD", "orange-red X-9247-GWE", "slate-gray J-9247-IRG", "eggplant T-9887-OFC", "yellow-green H-9887-MKY", "!X-6458-TIJ"]
¤¢¤È¤Ï¼êÆ°¤Ç¤¤¤¤¤ä¡Ä
¤¢¤¢¤Ê¤ó¤È¤« TIJ ¤Ï¸ºß¤·¤Ê¤¤¤±¤É¡¢¤½¤â¤½¤â·ç¤±¤Æ¤Æ¤¤¤¤¤Î¤Í¡Ä
USB ¼«Æ°¼èÆÀÀ®¸ù¡£
Á° | 2006ǯ 7·î |
¼¡ | ||||
Æü | ·î | ²Ð | ¿å | ÌÚ | ¶â | ÅÚ |
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Á´¤Æ¥ê¥ó¥¯¥Õ¥ê¡¼¤Ç¤¹¡£ ¥³¡¼¥ÉÊҤϼ«Í³¤Ë»ÈÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾¤Î¤â¤Î¤ÏGPL°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£
¥³¥á¥ó¥È¥Æ¥¹¥Ä
¤â¤¦¤¤¤Á¤É¥³¥á¥ó¥È¥Æ¥¹¥Ä