一番汚いコードでHello Worldを書いたやつが勝ち
■ このスレッドは過去ログ倉庫に格納されています
0001nobodyさん
2007/06/22(金) 00:23:46ID:???0002nobodyさん
2007/06/22(金) 00:58:41ID:???>
h
e
l
l
o
,
w
o
r
l
d
</
p
>
0004nobodyさん
2007/06/22(金) 01:53:35ID:???0005nobodyさん
2007/06/22(金) 02:52:16ID:???めんどくさいから誰かヤレ。命令。
0007irbで
2007/06/22(金) 11:30:44ID:BMPlrNlv<% case i -%>
<% when 1 -%>
H
<% when 2 -%>
e
<% when 3 -%>
l
<% when 4 -%>
l
<% when 5 -%>
o
<% when 6 -%>
<% when 7 -%>
W
<% when 8 -%>
o
<% when 9 -%>
r
<% when 10 -%>
l
<% when 11 -%>
d
<% end -%>
<% end -%>
0009nobodyさん
2007/06/23(土) 02:47:08ID:???0010nobodyさん
2007/06/23(土) 15:33:20ID:???$unkoyamaunko = <<<UNKOYAMAUNKO
%48%65%6c%6c%6f%2c%57%6f%72%6c%64
UNKOYAMAUNKO
$unkokawaunko = urldecode($unkoyamaunko);
echo $unkokawaunko;
?>
0012nobodyさん
2007/06/25(月) 14:47:38ID:???s=decodeURI("%14%02rYE%5C%5D%14%02t%14%01p%14%01%08%14%02rYTPU%14%02t%14%02rEXE%5DT%14%02tyt%7D%7D~(改行しない)
%14%03%01f~c%7Du%14%02r%1EEXE%5DT%14%02t%14%02r%1EYTPU%14%02t%14%01p%14%01%08%14%02rS%5EUH%14%02tyt%7D%7D~(改行しない)
%14%03%01f~c%7Du%10%14%02r%1ES%5EUH%14%02t%14%01p%14%02r%1EYE%5C%5D%14%02t%14%01p");
k=49;t="";for(i=0;i<s.length;i++){a=s.charCodeAt(i)^k;t=t+String.fromCharCode(a);}document.write(decodeURI(t));</script>
長過ぎになってしまった
(改行しない)って書いた文字列とその直後の改行を省いてくれ
0013nobodyさん
2007/06/25(月) 15:41:12ID:???catch (e) { alert('Hello World'); }
0014nobodyさん
2007/06/25(月) 16:01:48ID:???0015nobodyさん
2007/06/25(月) 18:33:34ID:???0016nobodyさん
2007/06/25(月) 19:50:41ID:???int hello(int i)
{
static char * str="Hello world\n";
putchar(i++[str]);
if(i[str-1] == '\n') return(0);
hello(i);
}
int main(int argc, char * argv[])
{
hello(0);
return(0);
}
// なんかイマイチだな
// もっと天然で汚い感じが欲しい
0017nobodyさん
2007/06/25(月) 20:58:19ID:???import System;
import System.Text;
const a: String = "utf-8";
const b: Char = " ";
const c: Char = "d";
const d: Char = "e";
const e: Char = "h";
const f: Char = "l";
const g: Char = "o";
const h: Char = "r";
const i: Char = "w";
Console.WriteLine("Content-type: text/html; charset={0}", a);
Console.WriteLine();
var j: StringBuilder = new StringBuilder();
var k: Char[] = [Char.ToUpper(e), d, f, g, b, Char.ToUpper(i), h, c];
j.Append(k);
var l: int[] = [2, 2, 3, 7, 2, 9];
for (var m : int = 0; m < l.Length; m += 2)
j.Insert(l[m + 1], k[l[m]]);
Console.WriteLine('<{0}><{1}><{2}>{5}</{2}></{1}><{3}><{4}>{5}</{4}></{3}></{0}>',
'html', 'head', 'title', 'body', 'p', j.ToString());
0018nobodyさん
2007/06/25(月) 21:11:48ID:???/*
____
/__.))ノヽ
.|ミ.l _ ._ i.)
(^'ミ/.´・ .〈・ リ phpはわしが育てた
.しi r、_) |
| `ニニ' /
ノ `ー―i
*/
echo"Hello World";
?>
0019nobodyさん
2007/06/25(月) 21:36:23ID:???if (1) {
?>
Hello World
<?php
}
?>
0020nobodyさん ◆XGAVYHfdvg
2007/06/26(火) 00:59:14ID:???#include <string.h>
int main(void)
{
char str[16];
memset( str, "\0", sizeof(str) );
sprintf( (char *)&str[16], "Hello World" );
puts( (char *)&str[16]text );
return 0;
}
0021nobodyさん ◆XGAVYHfdvg
2007/06/26(火) 01:01:00ID:???誤:puts( (char *)&str[16]text );
正:puts( (char *)&str[16] );
どっちにしろアレだが。
0023nobodyさん
2007/06/26(火) 22:10:07ID:???を使いまくってるのがあったな。
ttp://developers.slashdot.org/comments.pl?sid=33602&cid=3636102
0024nobodyさん
2007/06/27(水) 21:00:36ID:???汚くはないが。サンプルとして有用そうだし。
0025nobodyさん
2007/06/28(木) 02:21:48ID:???20 print "e"
30 print "l"
40 print "l"
50 print "o"
60 print "W"
70 print "o"
80 print "r"
99999 print "l"
15656520 print "d"
renum
run
0026nobodyさん
2007/06/28(木) 02:50:34ID:???くらいにしとけ
0027nobodyさん
2007/06/28(木) 16:59:49ID:???PHPなんだけどまだネタある?誰かヒントプリーズ
0028nobodyさん
2007/06/28(木) 18:37:56ID:???0029nobodyさん
2007/06/29(金) 03:48:09ID:???PROGRAM-ID. HELLOWORLD.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER.
OBJECT-COMPUTER.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 HW PIC X(11) VALUE "Hello World".
PROCEDURE DIVISION.
DISPLAY HW
STOP RUN.
0030nobodyさん
2007/06/29(金) 11:23:59ID:???0031nobodyさん
2007/06/29(金) 22:26:21ID:???Add_e:{ $m .= "e"; goto display; }
Add_l:{ $m .= "l"; goto display; }
Add_o:{ $m .= "o"; goto display; }
Add_W:{ $m .= "W"; goto display; }
Add_r:{ $m .= "r"; goto display; }
Add_d:{ $m .= "d"; goto display; }
display:
if($m eq "H") {
goto Add_e;
} elsif($m eq "He") {
goto Add_l;
} elsif($m eq "Hel") {
goto Add_l;
} elsif($m eq "Hell") {
goto Add_o;
} elsif($m eq "Hello") {
goto Add_W;
} elsif($m eq "HelloW") {
goto Add_o;
} elsif($m eq "HelloWo") {
goto Add_r;
} elsif($m eq "HelloWor") {
goto Add_l;
} elsif($m eq "HelloWorl") {
goto Add_d;
} else {
print $m;
}
■ このスレッドは過去ログ倉庫に格納されています