お題7 google†
googleの検索結果のしたに表示されるあれ
goooooo(ry)ooooogle
http://golf.shinh.org/p.rb?google
Smaple Input†
2
Sample Output†
Sample Input 2†
10
Sample Output 2†
goooooooooogle
Perl (min 17byte)†
pachiki @narita perl 5.8.8 21byte
print'g'.'o'x<>.'gle'
あと何じゃ
masawaki @自宅 perl 5.8.8 17bytes
print g.o x<>.gle
Smaple Input・・・
Java (min 155byte)†
masawaki @java version "1.6.0_11" 09/2/20 181bytes
class g{static{try{int a;String b="",c="";while((a=System.in.read())!=10)c+=(char)a;for(a=0;a<Integer.parseInt(c);a++)b+="o";System.out.println("g"+b+"gle");}catch(Exception e){}}}
Zauberer @gcj4.3.0 171bytes
class G{public static void main(String[]a)throws Exception{int n=0,t;String g="g";for(;(t=System.in.read()-48)>=0;)n=n*10+t;for(;n-->0;)g+="o";System.out.print(g+"gle");}}
C (min 55byte)†
siso@gcc4.1.2 69bytes, 0.0577seconds.
whileで書くと 70bytes, 0.0427seconds.
main(a){printf("g");for(scanf("%d",&a);a--;)printf("o");puts("gle");}
Zauberer @gcc4.3.0 66bytes
秘密!
ランキングを見るとこの先に超えられない壁がありそうだね.
C++ (min 71byte)†
siso@gcc4.1.2 104bytes, 0.0351seconds.
ほとんどCのコピペ。includeは削れなかった…
#include<iostream>
int main(){int a;printf("g");for(std::cin>>a;a--;)printf("o");puts("gle");return 0;}
Brainfuck (min 110byte)†
Zauberer @自宅 BFI1.1 155bytes
>>>,>,>>++++++++++[<+<<-----<+>>>>-]<<<++>+[<[<<+>>-]<[<[>>+<<<+>-]<[>+<-]>>>-----<-]>>+[<+>-]]>[<++++++++++>-]<+++.++++++++<[>.<-]>--------.+++++.-------.
Python (min 25byte)†
pachiki @narita python 2.4.3 26byte
print'g'+'o'*input()+'gle'
あと何じゃ
Common Lisp (min 30byte)†
kurohuku @自宅 sbcl 1.0.23 32byte
(format t"g~V{o~}gle"(read)'(a))
kurohuku @oss03 31byte
(format t"g~V{o~}gle"(read)''a)
kurohuku @oss03 30byte
(format t"g~V@{o~}gle"(read)t)
formatの機能多すぎ。
Bash (min 25byte)†
masawaki @自宅 bash 3.2.25 54bytes
g=g;read a;for i in `seq $a`;do g+=o;done;echo ${g}gle
masawaki @自宅 bash 3.2.25 51bytes
read a;for i in `seq $a`;do g+=o;done;echo g${g}gle
素人がやってみた。bashの需要はないですかそうですか。
masawaki @golfで直接試した 27bytes
perl -e "print g.o x<>.gle"
これで通った。これはひどい。





