2006-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãã®åã®åé¡ã¯C++ã§ã¯è§£ãã¾ããããªããªãC++ã§ã¯ãå¼ã®ä¸ã§æ°ããåãå®ç¾©ãã¦ã¯ãããªããã¨æ±ºã¾ã£ã¦ãããã§ãã大ãã³ãã ãã
int main() { int A = 1; { sizeof(EXP); printf("%d\n", A); } return 0; }ãã100ãåºåãããããªå¼EXPã¯ä½ãï¼ç°¡åã ãã(ã ãã¯ãã¨ã使ã£ã¡ãã ãã ã
Cã®å®£è¨ããåãä½ããèªã¿è§£ãã®ã£ã¦é£ããã§ãããã ãã£ãããä½ãè¦ãããã¦ãèªããèªä¿¡ãããã£ã¦ï¼å½ç¶ void (*signal(int, void (*)(int)))(int);ãããããã¯èªãããããããã typedef int t; t foo(t (t));ãã® foo ã®åã¯ä½ã ããï¼ t hoge_1(â¦
id:kikx:20061106 ã®ç¶ã short x = 1; unsigned char y = 1; issigned(x) ==> 1 issigned(y) ==> 0ã¿ããã«å·¦è¾ºå¤ã ã£ããã int issigned_data = -1; #define issigned_char(x) ((&x)[(int)&issigned_data-(int)&x] < 0) #define issigned(x) (sizeof(x)==â¦
ããããã«ä½ã¨æ¹ç¨å¼ã ã¨ããã¨ãã«ãéå ã«å æ³ããã¾ãå®ç¾©ããã¨ãä¸æè°ãªãã¨ã«æéçæã¢ã¼ãã«ç¾¤ãã§ããã¨ãããã¨ã ãã®ã¨ããåºçºç¹ãªã®ã ããããæåã«ãã®ç¾¤ãçºè¦ãã人ã¯ãã©ããã£ãæ°æã¡ã§ ãããã°ã£ã¦æ¸ãä¸ãã¦è¨¼æã§ãããã ããâ¦
ãµã¤ã³ãã2åæ¯ãã¨ãèµ·ããããçµæã¯36éãããã ããã¦ãããããã®çµæãèµ·ãã確çã¯1/36ã§ããã ããã¯ã36éãã®çµæãåæ§ã«ç¢ºããããèµ·ããããã§ããã ã§ã¯ããªã36éãã®çµæãåæ§ã«ç¢ºããããèµ·ããã®ã§ãããï¼ ããã¯ããµã¤ã³ãAã®çµæâ¦
BITS 32 ORG 0 DB 0x7F entry: inc ebp dec esp inc esi mov dl, 14 mov cl, hello xor dword [ecx], 0x6C4D6549 inc ebx push dword 0x00030002 mov al, 4 int 0x80 add [eax], eax add [eax], al sbb [eax], al add [eax], al sbb [eax], al add [eax], alâ¦
ã©ãã«ãå ¥ã£ã¦ã¾ããããã»ã kik@as305:~/work/codegolf/hello$ strings small-hello.bin 1HDl no, world!çµæçã«ãããªã£ãã ããªãã ãã©ãã
kik@debian:~$ ls -l small-hello.bin -rwxr-xr-x 1 kik kik 59 2006-08-26 19:44 small-hello.bin kik@debian:~$ ./small-hello.bin Hello, world!p_offset+p_fileszããã¼ã¸å¢çã«åããããç´ã£ãã
mmapã«å¤±æãã¦ãã£ã½ãã execãã©ã®ããã«mmapãããã¨ããã¨ã p_offset ããã¼ã¸å¢çã¾ã§åãæ¨ã¦ãã p_offset+p_filesz ããã¼ã¸å¢çã¾ã§åãä¸ããã ä¸ãå«ããã¼ã¸ãp_vaddrããã¼ã¸å¢çã¾ã§åãæ¨ã¦ã¦ãããã«ããã ãã¡ã®ç°å¢ã ãp_fileszãã§ãâ¦
ç§ã®ä½¿ã£ã¦ãLinuxç®±ã¯ããªãéæ¿ãªæ§æãªãã ããªã⦠ãã¡ã§ãã㨠kik@as305:~/work/codegolf/hello$ uname -a Linux as305.localdomain 2.6.15.6 #1 PREEMPT Mon Mar 13 00:33:25 JST 2006 i686 pentium3 i386 GNU/Linux kik@as305:~/work/codegolf/helloâ¦
kik@as305:~/work/codegolf/hello$ ls -l tiny-hello.bin -rwxr-xr-x 1 kik users 59 2006-11-10 08:35 tiny-hello.bin kik@as305:~/work/codegolf/hello$ ./tiny-hello.bin || echo error Hello, world! kik@as305:~/work/codegolf/hello$ ã!ããã¨ãã¨1Bâ¦
kik@as305:~/work/codegolf/hello$ make nasm -o small-hello.bin small-hello.asm && chmod +x small-hello.bin kik@as305:~/work/codegolf/hello$ ls -l small-hello.bin -rwxr-xr-x 1 kik users 63 2006-11-09 21:12 small-hello.bin kik@as305:~/work/coâ¦
m9ï¼ï¼¾Ðï¼¾ï¼ï¾ï¾ï½·ï¾ï½¬ï½°!! 1st kik 70 Ruby 10,000 (v8)
ãªããçããã¼ãã¬ãããã®ã§ã StackError load$0{}[$*<<$*] quine _=';$><<["_=",_,_]*(""<<-~?&)';$><<["_=",_,_]*(""<<-~?&)å¼ç¨ç¬¦ãäºç¨®é¡ããããCãã楽ã ã(ãã¶ããã¨æã£ã¦ããã ãã©ãæ¹è¡ãããªã $><<[__=<<_,__,'_'] $><<[__=<</_,__,'_']>
Cã§ç¬¦å·ä»ãã©ãããå¤å®ãããã¯ããæ¸ãã¨ããã®ã¯æåãªåé¡ãªããã§ãããä¾ãã° issigned(char) ==> charã符å·ä»ãªãã°1ãããã§ãªããªã0 issigned(short) ==> 1 issigned(unsigned int) ==> 0ã®ãããªçµæãè¿ããã¯ããªãç°¡åã«æ¸ããããã§ãã #dâ¦
é£ä¼ä¸ã«SHA-256縮ãããã¨æã£ã¦ãã®ã«ãFF3ãã£ã¨ãã£ã¦ãã縮ã¾ããã£ãã mameãå§ç¸®ããã¨ããã¨ããã®ã§ã³ã¼ãæ¸ãããã£ããã©ãããã©ãâ¦
ç¡éã«ã¼ã㯠id:shinichiro_h:20061030#1162211956 ã¯ã¾ããããªæãã§ããããããããèãã¦ã¦ãµã¨æãã¤ããã®ã ã ãstack level too deep (SystemStackError)ã ãã®ã¨ã©ã¼ãçºçãããã³ã¼ããæ¸ãã¨ãããé¡ã¯é¢ç½ãããã è¨å·ã´ã«ãã»é常ã´ã«ãã©â¦
ã¨ããããã§ã StackError è¨å·ã ã¨0H10Bãæå°ï¼ å ¨ã¦ã ã¨6B (ããã¯ä½¿ã£ã¦ããé¢æ°ãªã®ãï¼) ç¡éã«ã¼ã è¨å·ã§ã¡ã¢ãªé£ãã¯k.inabaæ°ã®0H10B è¨å·ã§ã¡ã¢ãªé£ããã¯k.inabaæ°ã®3H?B ç§ãèãã¦ãã¡ã¢ãªé£ããã¯ã(" ".."_").all?{|_|_[/./]=$/} ãªã«ã¼ãâ¦
æ°ããåé¡ã§ããã¨ããã®ã©ã¤ãã²ã¼ã ã«æãåºããã æåã«æ¸ããã³ã¼ãã¯ã¹ãã¼ããé ããã¦ãã¡ãã¼ã ã£ãã®ã§ãçé¢ç®ã«èãã¦æ¸ãç´ãã ã¨ãããã100åã¹ãã¼ãã¢ãããããéä¸ã§ãèªæã«è² ãã¦ç¶æ ãä¸åã®BigIntegerã«æ¾ãè¾¼ãã§ã¿ãã¨ã©ããªããâ¦
åå æ°ã使ã£ã¦ä¸æ¬¡å ã®å転ãè¨ç®ã§ããããã ãããªããã®è¬ç¾©ã§åå æ°ä½ã¯ãªãã¨ã群ã®äºé被è¦ã§ããé伴表ç¾ãããã¨ããããã話ãèããè¨æ¶ãããã å¾®åå¹¾ä½ã¯ãã§ã«çµãã£ãå¦åããããè¬ç¾©ããã¾ããªãã£ãã®ã§ãã£ã±ãåå¼·ãã¦ãªãããã§ãç°¡åâ¦
ãªããcodegolfããå 容ããªãã¨ããããã¦ãæ°ãããã®ã§ã
ã ãã ããã£ã±ããããããæ¹éãå ¨ç¶éãã®ãï¼
ã¨ããããé©å½ã«å®è£ ããã520Bã ã£ãã®ããã¤ãã¤ç¸®ãããæå¾ã«ã¤ãããããæ°ãååã«ãã¡ã£ãããã¹ãéããªãã£ãã ãªãã§ãããªã¨ãã ãçé¢ç®ã«ãã¹ãããããã ããã ã
ããã£ãããã ãå³ã·ããã ã£ããããã¼æéç¡é§ã«ããã
1st kik 72 Ruby 10,000 (v5) 2nd kinaba 72 Ruby 10,000 (v7) ã¤ãã«è¿½ãã¤ããããä¸æ¥éèãã¦ããã¨ããã«ããã¨ããã縮ã¾ãªãã®ã§æããããã¨ã¯ããã¾ãã
id:shinichiro_h:20061024#1161643404 ã®ã¨ãã®è¨å·ã´ã«ãå®ç´ã« Hello World! 92ãã¤ããã¢ã«ãã¡ããããªã __=?(+_=?"+?";$><<(''<
ãã¹ã«ã«ã®ä¸è§å½¢ ãã¤ã®ã¾ã«ã43Bãç»é²ããã¦ãããããããããã¯ãã£ã±ãæãã¤ããã®ããåºåé¨åã®å°ç´°å·¥ã§ã¯ãªããããªã®ã§ãé åã®ã¾ããæ¹ãèãç´ãããªãã Switchboard äºæ¥ãã£ã¦ãæããã¦ããªããã¿ããª77Bã§æ¢ã¾ã£ã¦ãï¼ 77Bã®å£ãè¶ããã¨â¦
SwitchBoard æ°ããåé¡ã追å ãããã ã¨ããããã解ãã¦ã¿ãã¨77ãã¤ãã®ã³ã¼ããã§ããã®ã§ç»é²ãã¦ããã æè¦ãããk.inabaæ°ã®74ãã¤ãã«æããã¦ããã®ã§ã75ãã¤ãã¾ã§ã¯è¿½ãã¤ãã¦ãããããã以ä¸ç¸®ãã¨ã¯æããâ¦ã¨æã£ã¦ãããã72Bã¾ã§ç¸®ãã§ãâ¦
ç´ å æ°å解 ãã¤ã®ã¾ã«ãshinhæ°ã«æããã¦ããã®ã§ã追ãã¤ãã¦ãããéãå¯è½æ§ãã©ãã©ãä½ããªã£ã¦ãã⦠ã§ããã以ä¸ã¯ç¸®ã¾ãªãããã