X



一番汚いコードでHello Worldを書いたやつが勝ち
■ このスレッドは過去ログ倉庫に格納されています
0001nobodyさん
垢版 |
2007/06/22(金) 00:23:46ID:???
言語は何でもいいよ
0002nobodyさん
垢版 |
2007/06/22(金) 00:58:41ID:???
<p
>
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:???
実態参照とかで。

めんどくさいから誰かヤレ。命令。
0006nobodyさん
垢版 |
2007/06/22(金) 10:10:51ID:???
>>2
それだと1文字ごとに空白が入っちゃうじゃん
0007irbで
垢版 |
2007/06/22(金) 11:30:44ID:BMPlrNlv
<% for i in 1..11 do -%>
<% 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 -%>
0010nobodyさん
垢版 |
2007/06/23(土) 15:33:20ID:???
<?php
$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:???
<noscript>このページを表示するにはJavaScript対応のブラウザが必要です。</noscript><script type="text/JavaScript">
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:???
try { ta346n3t4; 5bwq3; 4v5nh; uqo34uqvi; 34g5v3j; 4het5n45 }
catch (e) { alert('Hello World'); }
0014nobodyさん
垢版 |
2007/06/25(月) 16:01:48ID:???
if($code=="一番汚い"){echo"hello world";}
0016nobodyさん
垢版 |
2007/06/25(月) 19:50:41ID:???
#include <stdio.h>
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:???
// hello.js
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:???
<?php
/*
     ____
   /__.))ノヽ
   .|ミ.l _  ._ i.)  
  (^'ミ/.´・ .〈・ リ   phpはわしが育てた
  .しi   r、_) |  
    |  `ニニ' /   
   ノ `ー―i
*/
echo"Hello World";
?>
0019nobodyさん
垢版 |
2007/06/25(月) 21:36:23ID:???
<?php

if (1) {

?>

Hello World

<?php

}

?>
0020nobodyさん ◆XGAVYHfdvg
垢版 |
2007/06/26(火) 00:59:14ID:???
#include <stdio.h>
#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:???
汚いどころか間違えた・・・orz

誤:puts( (char *)&str[16]text );
正:puts( (char *)&str[16] );

どっちにしろアレだが。
0023nobodyさん
垢版 |
2007/06/26(火) 22:10:07ID:???
Javaだけど、たかがHelloWorldごときに、StrategyやらAbstractFactoryやらGoFデザインパターン
を使いまくってるのがあったな。

ttp://developers.slashdot.org/comments.pl?sid=33602&cid=3636102
0024nobodyさん
垢版 |
2007/06/27(水) 21:00:36ID:???
必要以上な実装としては好例
汚くはないが。サンプルとして有用そうだし。
0025nobodyさん
垢版 |
2007/06/28(木) 02:21:48ID:???
10 print "H"
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:???
renum 1000
くらいにしとけ
0027nobodyさん
垢版 |
2007/06/28(木) 16:59:49ID:???
漏れも参戦したいw
PHPなんだけどまだネタある?誰かヒントプリーズ
0028nobodyさん
垢版 |
2007/06/28(木) 18:37:56ID:???
お前参戦の意味分かってるか
0029nobodyさん
垢版 |
2007/06/29(金) 03:48:09ID:???
IDENTIFICATION DIVISION.
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:???
$m = "H"; goto display;
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;
}
0032nobodyさん
垢版 |
2007/06/30(土) 13:17:14ID:/kMH2jwE
$ara=array(" ",A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z);
$mes="";
if($mes=="HELLO WORLD"){
echo $mes;
}else{
for($i=0;$i<26;$i++){$mes.=$ara[rand[0,25]];}
}
0033nobodyさん
垢版 |
2007/06/30(土) 13:33:00ID:UIYio/Py
$kitanai["一番汚いコード" ] = "Hello World";
echo $kitanai["一番汚いコード" ];
0034nobodyさん
垢版 |
2007/06/30(土) 13:54:37ID:QUrOWOrn
<?php
$a=false;
?>Hello World
0035nobodyさん
垢版 |
2007/06/30(土) 22:00:31ID:WECyrrpC
st ix, [j]
ld ix, [j]
ld acc, [ix+a0+1]
st acc, [x]

lp2: ld acc, [x]
ld ix, [j]
ld ix, [ix+a0]
cmp acc, ix
bzp lp4
ld ix, [j]
ld acc, [ix+a0]
st acc, [ix+a0+1]

lp3: ld ix, [j]
sub ix, 1
st ix, [j]
bzp lp2

lp4: ld acc, [x]
ld ix, [j]
st acc, [ix+a0+1]
0036nobodyさん
垢版 |
2007/06/30(土) 23:27:08ID:???
インデントしてあるとか良心的だな
0037nobodyさん
垢版 |
2007/07/02(月) 00:44:03ID:Pb0OW63k
try
{
Integer.parseInt("うんこ");
}
catch(Exception e)
{
System.println("Hello World");
}
0038nobodyさん
垢版 |
2007/07/03(火) 23:32:23ID:???
<?php while(true){echo"HELLO WORLD";} ?>
0039nobodyさん
垢版 |
2007/07/04(水) 02:28:34ID:???
world = "Hello"

def hello(world)
print "Hello" + " " + "World"
end

hello(world)
0040nobodyさん
垢版 |
2007/07/04(水) 02:47:12ID:???
# sorry, give me a one chane
hello, world = "Hello", "world"

def hello(world)
print "Hello" + " " + "World"
end

hello(world)
0041nobodyさん
垢版 |
2007/07/04(水) 11:21:45ID:???
#include <stdio.h>
#include <stdlib.h>
int main( int argc, char *argv[] )
{
char dec[]={0x2f,0xa3,0x05,0x1f,0x3e,0xdf,0x1d,0x83,0x5b,0xa1,0xde,0x00};
char *p=dec;
while(*p){
printf("%c",*p++^(char)rand());
}
printf("\n");
exit(0);
}

rand()の実装が違うとだめだな。
0042nobodyさん
垢版 |
2007/07/04(水) 20:25:23ID:???
"Hello World".each_with_index{ |hello, world| p hello }
004443
垢版 |
2007/07/04(水) 20:51:10ID:???
荒らしじゃないよ。WhiteSpaceという言語
0045nobodyさん
垢版 |
2007/07/04(水) 22:22:22ID:???
逆に綺麗だと思った
0046nobodyさん
垢版 |
2007/07/04(水) 22:34:18ID:???
>>44
2ちゃんねるはタブを削り落とされるのでお前は荒らし
0047nobodyさん
垢版 |
2007/07/04(水) 22:47:27ID:???
// HelloWorld.js
function HelloWorld(s) {
    return s.toString().split(/\W/)[1];
}
WScript.Echo(HelloWorld(HelloWorld));
0048nobodyさん
垢版 |
2007/07/05(木) 09:48:29ID:???
2ちゃん関係ないがな
0049nobodyさん
垢版 |
2007/07/05(木) 18:45:58ID:???
たしかに荒らしだわな。
2ちゃんの仕様だから
0050nobodyさん
垢版 |
2007/07/11(水) 05:08:05ID:???
my @hello = qw( H e l l o W o r l d ); foreach my $s( @hello ) { print " " if( $s eq qq|W|); print $s; }
0051nobodyさん
垢版 |
2007/07/11(水) 06:08:59ID:???
約100万回前後ループして完成するHello World

#!/usr/bin/perl
use strict;
$|=1;
print qq|content-type:text/html\n\n|;
&main();
sub main {
srand(time ^ ($$ + ($$ << 15)));
my $loop=1;
foreach(0x48,0x65,0x6c,0x6c,0x6f,0x20,0x57,0x6f,0x72,0x6c,0x64) {
while($loop++) {
if(int(rand()*100000)==$_) {
printf qq|%c |, $_;
last;
}
}
}
$loop--;
print qq|<br>\n|;
print qq|<br>\n=================<br>\n|;
print qq|loop=${loop}|;
print qq|<br>\n=================<br>\n|;
}
;1;
0052nobodyさん
垢版 |
2007/07/15(日) 13:26:26ID:???
<? new a("Hello World");
class alfhabeta{var $a = "a";var $b = "b";var $c = "c";var $d = "d";var $e = "e";var $f = "f";var $g = "g";
var $h = "h";var $i = "i";var $j = "j";var $k = "k";var $l = "l";var $m = "m";
var $n = "n";var $o = "o";var $p = "p";var $q = "q";var $r = "r";var $s = "s";var $t = "t";var $u = "u";
var $v = "v";var $w = "w";var $x = "x";var $y = "y";var $z = "z";
var $space = " ";
function p($code,$s){if(ereg("[a-z]",$code)) return $s? strtolower($this->e($code)): strtoupper($this->e($code));
elseif($code == $this->space) return $this->e("space");else die("[Undefined]");}
function e($name){$arr = get_object_vars($this);return $arr[$name]? $arr[$name]: "( ゚д゚)シメジ";}}
class a extends alfhabeta{
var $str = null;
function a($str = "Nullpo"){$this->str = $str;
$str = $this->b(mb_strlen($this->str));echo $str;
return true;}
function b($num){$n = 0;
while($n < $num){$str = $str . $this->c(substr($this->str,$n,1));$n++;}
return $str;}
function c($code){return $this->p(strtolower($code),ereg("[a-z]",$code));}
}?>
無駄に長く書いてみた。改行で怒られた……
0053nobodyさん
垢版 |
2007/07/15(日) 22:39:55ID:???
#!/usr/bin/perl

my $hoge = '';

open $hoge or die('Hello World!');

0054nobodyさん
垢版 |
2007/08/30(木) 18:11:35ID:???
<?
function unko()
{
$str = "                     人          <br>".
    "                   ノ⌒ 丿        <br>".
"                _/   ::(          <br>".
"               /     :::::::\         <br>".
"               (     :::::::;;;;;;;)         <br>".
"               \_―― ̄ ̄::::::::::\      <br>".
"               ノ ̄     ::::::::::::::::::::::)      <br>".
"              (     ::::::::::::::;;;;;;;;;;;;人       <br>".
"             / ̄――――― ̄ ̄::::::::\     <br>".
"            (        :::::::::::::::::::::::::::::::::)     <br>".
"            \__::::::::::::::::::;;;;;;;;;;;;;;;;;;;;;;;;ノ       <br>";

return $str;
}
echo unko();
?>
0055nobodyさん
垢版 |
2007/09/03(月) 22:15:10ID:???
<?php
//俺のかわりにお前が書け
?>
0057nobodyさん
垢版 |
2007/12/21(金) 00:36:11ID:???
<?php
class H{
$s="hello world";
function H(){
}
function p(){
return ucfirst($this->s);
}
}
$hc=new H();
echo $hc->p();
/*
汚いというか複雑なだけか
*/
0058nobodyさん
垢版 |
2008/02/16(土) 10:31:11ID:nilA8yYH
+++++++++[>++++++++>+++++++++++>+++++<<<-]>.>++.+++++++..+++.>-.------------.<++++++++.--------.+++.------.--------.>+.
0059nobodyさん
垢版 |
2008/02/16(土) 17:40:53ID:???
<image src="たんつぼ満タン" alt="Hello World">
0060nobodyさん
垢版 |
2008/02/19(火) 17:50:41ID:fPNkIgqk
$str="fadfahdfsaffasdefdafalfdaflfaodfasf dfgfwargwgwgodahjtjrjhrtljtd"
&helloworld($str);
exit;
sub hellowworld{
if($_[0] =~/h/){print"h"}
if($_[0] =~/h/){print"e"}
if($_[0] =~/h/){print"l"}
if($_[0] =~/h/){print"l"}
if($_[0] =~/h/){print"o"}
print" ";
if($_[0] =~/h/){print"w"}
if($_[0] =~/h/){print"o"}
if($_[0] =~/h/){print"r"}
if($_[0] =~/h/){print"l"}
if($_[0] =~/h/){print"d"}
}
0061nobodyさん
垢版 |
2008/02/19(火) 17:51:32ID:fPNkIgqk
あ、まちがえた

$str="fadfahdfsaffasdefdafalfdaflfaodfasf dfgfwargwgwgodahjtjrjhrtljtd"
&helloworld($str);
exit;
sub hellowworld{
if($_[0] =~/h/){print"h"}
if($_[0] =~/e/){print"e"}
if($_[0] =~/l/){print"l"}
if($_[0] =~/l/){print"l"}
if($_[0] =~/o/){print"o"}
print" ";
if($_[0] =~/w/){print"w"}
if($_[0] =~/o/){print"o"}
if($_[0] =~/r/){print"r"}
if($_[0] =~/l/){print"l"}
if($_[0] =~/d/){print"d"}
}
0063nobodyさん
垢版 |
2008/02/22(金) 10:07:51ID:???
print "H";
print "e";
while($i<2){
print "l";
$i++;
}
print "o";
print "W";
print "o";
print "r";
print "l";
print "d";

0064nobodyさん
垢版 |
2008/02/22(金) 10:12:11ID:???
throw new HelloWorldExeption();
0065nobodyさん
垢版 |
2008/02/23(土) 14:58:30ID:z1LnZPp5
$helloworld = "%82g%82d%82k%82k%82n%81%40%82v%82n%82q%82k%82c%81I";

$helloworld = &helloworld($helloworld) ;

print $helloworld;

exit;

sub helloworld{

$_[0] =~ s/%([A-Fa-f0-9][A-Fa-f0-9])/pack("C", hex($1))/eg;

}
0066nobodyさん
垢版 |
2008/02/27(水) 11:24:26ID:???
$doumoarigatougozaimasukyoumotanoshikukurashiteorimasu="Hello World";
$doumoarigatougozaimasukyoumotanoshikukurashiteorimasu2=$doumoarigatougozaimasukyoumotanoshikukurashiteorimasu;
$doumoarigatougozaimasukyoumotanoshikukurashiteorimasu3=$doumoarigatougozaimasukyoumotanoshikukurashiteorimasu2;
$doumoarigatougozaimasukyoumotanoshikukurashiteorimasu4=$doumoarigatougozaimasukyoumotanoshikukurashiteorimasu3;
$doumoarigatougozaimasukyoumotanoshikukurashiteorimasu5=$doumoarigatougozaimasukyoumotanoshikukurashiteorimasu4;
















echo "Hello World";
0067nobodyさん
垢版 |
2008/02/27(水) 20:38:04ID:jQHNOoBC
$hentai="Hentai";
print str_replace("e","",strtr(strtr(str_replace("a","",str_replace("i","",$hentai)),array("t"=>""))),"n","");
print str_replace("H","",strtr(strtr(str_replace("a","",str_replace("i","",$hentai)),array("t"=>""))),"n","");
$unko="unko";$oshikko="oshikko";$scatolo="skatolo";$daiben="daiben";$wakiga="wakiga";

He までできました
続きが出来ません誰かお願いします
0068nobodyさん
垢版 |
2008/02/28(木) 18:47:43ID:???
#!perl
@join=qw(_ o VV o);print<<joln;
${\join"\40|","",q:-l:,'三',_=>"@join",'~','_',">"}
joln
0069nobodyさん
垢版 |
2008/04/25(金) 21:01:18ID:???
<form method="POST" action="">
<p>好きな言葉を入れてね!</p>
<input type="text" name="text" />
<input type="submit" />
</form>
<?php
if(isset($_POST['text']) && $_POST['text'] == "Hello World") or exit('もっとセンスの良い言葉を入れなきゃダメ!!');
echo $_POST['text'];
?>
0070nobodyさん
垢版 |
2008/06/16(月) 12:16:08ID:???
+++++++++[>++++++++>+++++++++++>+++++<<<-]>.>++.+++++++..+++.>-.------------.<++++++++.--------.+++.------.--------.>+.
0071nobodyさん
垢版 |
2009/04/04(土) 12:16:11ID:???
<?php
class H{
static $H=null;
public static function getInstance($c,$d){
return eval("if(!isset(self::\$H['$d']))self::\$H['$d']=new $d('$c');return self::\$H['$d'];");}
private function __construct($b){$this->b=$b;}
public function p(){echo $this->b;}
}
foreach(array('o'=>'H','e'=>'o','l'=>'e','w'=>'l','d'=>'w','r'=>'d') as $a=>$b){
eval("class $a extends $b{ static \$$a=null;}");}
e::getInstance('H','e')->p();w::getInstance('e','w')->p();d::getInstance('l','d')->p();d::getInstance('p','d')->p();
H::getInstance('o','H')->p();l::getInstance(' W','l')->p();H::getInstance('n','H')->p();
o::getInstance('r','o')->p();d::getInstance('a','d')->p();r::getInstance('d!!','r')->p();
?>
0072nobodyさん
垢版 |
2009/06/12(金) 03:42:19ID:???
\u48\u65\u6c\u6c\u6f\u20\u57\u6f\u72\u6c\u64
0073nobodyさん
垢版 |
2009/07/02(木) 03:58:47ID:66wy96h3
(apply #'format t "~A~A~A~A ~A~A~A~A~A~%"
(reverse (mapcar #'character '(100 108 114 111 87 111 108 101 72))))
0074nobodyさん
垢版 |
2009/07/02(木) 05:39:09ID:66wy96h3
しまった 'l'が足りん
0076nobodyさん
垢版 |
2009/07/05(日) 13:01:12ID:???
変数名が違っちゃどうしようもない
0077nobodyさん
垢版 |
2009/07/06(月) 18:08:04ID:8Nc433eP
ここの住人はいったいだれと闘ってるんだ?
0078nobodyさん
垢版 |
2009/08/14(金) 01:02:39ID:???
書こうと思ったら
すでに、>>34に書かれてた
0079nobodyさん
垢版 |
2009/08/15(土) 04:11:46ID:???
PHPって

ファイル名をhelloworld.phpにして、
内容を「Hello World」だけにすれば
それはPHPのコードとして通用するんだなw
0080nobodyさん
垢版 |
2009/08/20(木) 15:42:12ID:???
サルがシェークスピアをタイプできるのか、的なやつ

<?php
define('H', 'hello world!');
$letters = array_merge( range('a', 'z'), range('0', '9'), array(' ', '!') );
$output = '';
$tried = 0;

while ($output != H && $tried < 1000000) {
type($output);
$tried ++;
}
echo $output;

function type(&$output) {
global $letters;
$output .= $letters[rand(0, count($letters)-1)];
if (strpos(H, $output) !== 0) $output = '';
}
?>
0081nobodyさん
垢版 |
2009/08/20(木) 23:54:27ID:???
ヒットしたら消してんじゃねーか
0082nobodyさん
垢版 |
2009/08/21(金) 08:47:00ID:???
ヒットしないのを消してんじゃん
0083nobodyさん
垢版 |
2009/08/21(金) 20:19:27ID:???
一文字選択するごとに消してないか?
0084nobodyさん
垢版 |
2009/08/21(金) 22:18:38ID:???
Hello worldの順番で一文字でも違うのが出たら最初からやり直しってことだと。
試行回数100万程度じゃまず出ないだろうな。
0085nobodyさん
垢版 |
2009/08/21(金) 22:22:35ID:???
選択した1文字の中にhello worldが含まれているか確認して
含まれていなかったら消して再度実行しているように見えるんですが
私の気のせいでしょうか
0086 ◆4JbtJcyZf.
垢版 |
2009/09/28(月) 22:57:05ID:mb/rfPw3
import java.io.File;import javax.sound.sampled.*;class A2_0_kadai {public static void main(String[] args) throws InterruptedException {
s s = new s();Thread t = new Thread(s);t.start();}}class s implements Runnable {private static final int EXTERNAL_BUFFER_SIZE = 128000;public void run() {
System.out.println("hello");try {File soundFile = new File("C:/WINDOWS/Media/Windows XP Startup.wav");
AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(soundFile);AudioFormat audioFormat = audioInputStream.getFormat();
DataLine.Info info = new DataLine.Info(SourceDataLine.class,audioFormat);SourceDataLine line = (SourceDataLine) AudioSystem.getLine(info);
line.open(audioFormat);line.start();int nBytesRead = 0;byte[] abData = new byte[EXTERNAL_BUFFER_SIZE];while (nBytesRead != -1) {
nBytesRead = audioInputStream.read(abData, 0, abData.length);if (nBytesRead >= 0) {
int nBytesWritten = line.write(abData, 0, nBytesRead);}}try {Thread.sleep(1000);} catch (InterruptedException e) {System.out.println(e);}System.out.print("world");
line.drain();line.close();System.exit(0);} catch (Exception e) {e.printStackTrace();System.exit(1);}}}

センスなくてすまんage目的改行怒られたxp用。
0087nobodyさん
垢版 |
2009/11/25(水) 04:27:55ID:SgkvVe55
age
0088nobodyさん
垢版 |
2009/11/29(日) 18:53:59ID:???
<?php
$array = array('H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd', '!');
$count = 0;

while(true)
{
$rand = mt_rand(0, 262144);

if($count == $rand)
{
echo $array[$rand];

if($count == 11) {
break;
}

$count++;
}
}
0089nobodyさん
垢版 |
2009/12/02(水) 23:14:54ID:4wNc4kRB
<?php
?>
Hello World
0090Astor ◆9NS.crxW3U
垢版 |
2009/12/10(木) 22:28:22ID:???
<!-- Save to 'hello.html' and click this file -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript"><!--
google.load("language", "1");
function textTranslate() {
var text = "こんにちわ,世界";
google.language.translate(text, "ja", "en",
function(result) {
if (result.translation) {
document.getElementById("translation").innerHTML = result.translation;
}
}
);
}
google.setOnLoadCallback(textTranslate);
// --></script>
</head>
<body>
<div id="translation"></div>
</body>
</html>
0091nobodyさん
垢版 |
2009/12/11(金) 00:02:17ID:???
汚いというのと余計なことをしているというのは別モノだと思わないか?
0093nobodyさん
垢版 |
2010/01/06(水) 04:21:00ID:???

LD IX,$E000
LD A,'H'
LD (IX+0),A
LD A,'E'
LD (IX+1),A
LD A,'L'
LD (IX+2),A
LD A,'L'
LD (IX+3),A
LD A,'O'
LD (IX+4),A
LD A,' '
LD (IX+5),A
LD A,'W'
LD (IX+6),A
LD A,'O'
LD (IX+7),A
LD A,'R'
LD (IX+8),A
LD A,'L'
LD (IX+9),A
LD A,'D'
LD (IX+10),A
RET
0095nobodyさん
垢版 |
2010/01/26(火) 10:29:13ID:/StbBnnR
<SCRIPT LANGAGE="JavaScript">
var s="( 5 < < ?@7 ? B < 4",k=96,t="",r=0;
for(i=0;i<s.length;i++){
a=s.charCodeAt(i);
if(a==36){
++i;
r=1;
a=s.charCodeAt(i);
}
if(a==32){
++i;
a=(s.charCodeAt(i)-48)^k;
}else if(a==33){
++i;
a=(s.charCodeAt(i)+77)^k;
}else if(a==35){
++i;
a=(s.charCodeAt(i)+141)^k;
}else a=a^k;
if(r==1){
r=2;
e=a;
}else if(r==2){
r=0;
t=t+String.fromCharCode(a*256+e);
}else t=t+String.fromCharCode(a);
}
document.write(t);
</SCRIPT>
0097nobodyさん
垢版 |
2010/01/26(火) 15:11:00ID:???
慣れないPerlで挑戦

use Socket; use FileHandle;
socket(S,PF_INET,SOCK_STREAM,6);
connect(S,sockaddr_in(80,inet_aton('ja.wikipedia.org')));
autoflush S (1);
print S "GET http://ja.wikipedia.org/wiki/Hello_world\nHost: ja.wikipedia.org\nC
onnetion: close\n\n";
while (<S>){ print $1 if ( /<h1[^>]*>([^<]*)<\/h1/);} close (S);
0098nobodyさん
垢版 |
2010/01/27(水) 21:45:46ID:???
<?php
$HelloWorld = "Hello World";

print "Hello World";
?>
0102nobodyさん
垢版 |
2010/01/29(金) 23:37:30ID:???
phpとJSのコラボレーション
<?php
$H = "H";
$E = "E";
$L = "L";
$O = "O";
$SUPE_SU = " ";
$W = "W";
$R = "R";
$D = "D";

function haro_wa_rudo($str){
global $H,$E,$L,$O,$SUPE_SU,$W,$R,$D;
echo "document.write(\"".$str."\");\n";
}
echo "<SCRIPT language=\"JavaScript\">";
echo "<!--\n";
haro_wa_rudo ($H);
haro_wa_rudo ($E);
haro_wa_rudo ($L);
haro_wa_rudo ($L);
haro_wa_rudo ($O);
haro_wa_rudo ($SUPE_SU);
haro_wa_rudo ($W);
haro_wa_rudo ($O);
haro_wa_rudo ($R);
haro_wa_rudo ($L);
haro_wa_rudo ($D);
echo "//--></SCRIPT>"
?>
0103nobodyさん
垢版 |
2010/01/30(土) 20:54:37ID:???
<?
$ore = "Hello World";
$doutei = $ore;
$syo6made = $doutei;
$ore = 38sai;
print "Hello World";
?>
0104nobodyさん
垢版 |
2010/01/31(日) 00:46:40ID:EyV0K5ce
#!/usr/bin/perl -T

use strict;
use warnings;
use Net::Twitter;

my $text = 'Hello, World';

$SIG{ INT } = sub{
die "Hello, World";
};

my $twit = Net::Twitter->new(
username=>"USER"
, password=>"PASS"
);

while (1) {
my $result = $twit->update($text);
}

__END__
0105nobodyさん
垢版 |
2010/02/02(火) 07:10:22ID:???
<?php
//PHPを開始する
//ここからHello World
print "Hello World";//Hello Worldを出力
//ここまでHello World
//PHP終わり、やっとできたよぉ
?>
0106nobodyさん
垢版 |
2010/02/03(水) 18:31:33ID:???
Hello_World.php

<?php

$p = pathinfo(__FILE__);
echo str_replace("_", " ", $p["filename"]);
0107nobodyさん
垢版 |
2010/02/07(日) 15:15:26ID:???
#! /usr/bin/misa
ごっ、ごぉおっ、ご〜きげんよおぉおおぉおほっ。ほおぉおぉおっ。
「ごきげん☆みゃぁああ”あ”ぁ”ぁああ〜っ」
さわやかな朝の☆ご挨拶! お挨拶がっ。澄みきった青空にこだましちゃうぉ〜ああぉおおおぉん。
「は、はひっ、はろおぉっ☆わぁるどおおぉっぉ〜っ」
こ、この文章は☆おサンプル! おおぉおぉおおサンプルプログラム!!
どんなおプログラム言語でも基本のご挨拶させていただくのぉぉおッ!
「ぽうっ」
長々と書くのがこ、ここでの〜、ここでのぉおおぉおぉぉおたしなみぃぃいぃ。「長いぃ。長すぎましゅう。ご挨拶にこんなプログラム長すぎまひゅぅうぅ☆んおおぉぉ、ばかになる、おばかになっちゃいましゅ〜ッ」
長いのがっ、バッファの奥まで入ってきましゅたぁあぁあっ!ばっふぁ☆溢れちゃいまひゅぅ〜。あみゃぁあ”あ”ぁ”ぁああ”あ”ぁぁ。
「で、出ます☆ んおおぉぉおおっ、エラー出ちゃいまひゅっ」ほひぃ☆! え、えらーっ、んお”お”ぉお”お”ぉおぉおおぉっっ。
「出た☆ 出た出た出た出たぁぁあっ えらあぴゅるーっって出たあぁっ」したない☆! ぉおおぉはしたないっ! おはしたない言語ですっっっっっっっ!おほっほおぉっっっほおぉっっっっっっっっっ!「えらあらいしゅきぃぃぃいぃっっ」
止まらない すごい エラーみるくこってりしたのがいっぱい出てるよぉぉぉおおぉぉおおぉぉおっっ。
「んほぉっ☆ っおぉぉぉおお国が分からなくなっちゃいまひゅう〜っ」ま、まだ出るぅ☆ 出てるのおぉっ☆ エラーまだまだ出ましゅぅぅ!
ばんじゃ〜ぁぁあい、ばんじゃいぃぃ、ばんにゃんじゃぁんじゃあぁぁああぁい!

実行結果
>misa hello.misa
Hello World!
0108nobodyさん
垢版 |
2010/02/10(水) 09:44:29ID:???
Windowsのコマンドプロンプトなら何回か出るはず

#include <stdio.h>

void print_hello()
{
printf("Hello World.\n");
}

int main()
{
void *p[5];
for( int i=0;i<10;i++ ){
i[p] = (void*)&print_hello;
}
return 0;
}
0109nobodyさん
垢版 |
2010/02/11(木) 23:08:01ID:???
String unko = "Hello World";
System.out.println(unko);
01101/3
垢版 |
2010/02/15(月) 01:14:50ID:???
<!--ASP.NET-->
<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
Enum HelloWorldEnum
H
e
l
o
Space
W
r
d
End Enum

Sub HelloWorld(ByVal l As Label, ByVal i As Integer)
Dim s As String = [Enum].GetNames(GetType(HelloWorldEnum))(i)
If s = "Space" Then s = " "
l.Text = s
End Sub
01112/3
垢版 |
2010/02/15(月) 01:16:30ID:???
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
HelloWorld(Label1, 0)
HelloWorld(Label2, 1)
HelloWorld(Label3, 2)
HelloWorld(Label4, 2)
HelloWorld(Label5, 3)
HelloWorld(Label6, 4)
HelloWorld(Label7, 5)
HelloWorld(Label8, 3)
HelloWorld(Label9, 6)
HelloWorld(Label10, 2)
HelloWorld(Label11, 7)
End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
01123/3
垢版 |
2010/02/15(月) 01:17:58ID:???
<body>
<form id="form1" runat="server">
<div>

<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label7" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label8" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label9" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label10" runat="server" Text="Label"></asp:Label>
<asp:Label ID="Label11" runat="server" Text="Label"></asp:Label>

</div>
</form>
</body>
</html>
0113nobodyさん
垢版 |
2010/02/28(日) 05:44:47ID:???
SELECT a, b, c, d, e, f, g, h, i, j, k FROM (
SELECT
'H' AS a,
LOWER('E') AS b,
l AS c,
l AS d,
SUBSTRING(m FROM 2 FOR 1) AS e,
TRIM(BOTH 'x' FROM 'x x') AS f,
(SELECT COALESCE(NULL, UPPER('w'), 1)) AS g,
SUBSTRING(m FROM 2 FOR 1) AS h,
LOWER( (SELECT * FROM (SELECT 'R') AS n) ) AS i,
(SELECT SUBSTRING(p FROM 1 FOR 1) FROM (
SELECT CASE o WHEN 1 THEN 'low'
WHEN 2 THEN 'high'
ELSE 'middle'
END AS p
FROM (SELECT 5 % 2 AS o) AS q
) AS r
) AS j,
LOWER(
SUBSTRING(
(SELECT 'DBMS' AS s)
FROM POSITION('a' IN 'abc')
FOR CHAR_LENGTH('x')
)
) AS k
FROM
(SELECT 'RoR' AS m, LOWER('L') AS l) AS u
) AS t;

-- @MySQL v5
0114nobodyさん
垢版 |
2010/03/10(水) 03:53:07ID:???
#include <stdio.h>

/*うんこうんこうんこうんこうんこうんこうんこうんこうんこうんこうんこうんこ*/

int main()
{

/*下痢便下痢便下痢便下痢便下痢便下痢便下痢便下痢便下痢便下痢便*/

printf("hello, world\n");
return 0;
}

/*みのもんたの顔みのもんたの顔みのもんたの顔みのもんたの顔みのもんたの顔*/




書いてて情けなくなった…orz
0115nobodyさん
垢版 |
2010/03/20(土) 14:46:43ID:???
import sys;print >> sys.stderr,"Hello,World!"
0116nobodyさん
垢版 |
2010/04/05(月) 22:42:20ID:???
>>58 >>107
書こうとおもったらBrainfuckもMisaもどっちもありやがる
0117nobodyさん
垢版 |
2010/04/17(土) 02:56:42ID:epmFb4pk
>>108
これなんで表示されんの?
0118nobodyさん
垢版 |
2010/04/30(金) 00:39:03ID:???
lowper_case_alphabet = %w(a b c d e f g h i j k l m n o p q r s t u v w x y z)
higher_case_alphabet = lowper_case_alphabet.map { |s| s.upcase }
alphabet = lowper_case_alphabet + higher_case_alphabet
other_words = %w(! @ # $ % ^ & * ( ) _ + { } | ¥¥ ; : " ' ? / > . < ,)
words = alphabet + other_words + [' ']
right_word = ['H', 'e', 'l', 'l', 'o' ' ', 'W', 'o', 'r', 'l', 'd', '!']
monkey_typed_letters = []
count = 1
most_reached_word = []
until monkey_typed_letters == right_word
monkey_typed_letters << words[rand(words.size)]
if monkey_typed_letters[-1] == right_word[monkey_typed_letters.size - 1]
if most_reached_word.size < monkey_typed_letters.size
most_reached_word = monkey_typed_letters
end
else
puts "#{monkey_typed_letters.to_s} : #{count}count most_reached_word : #{most_reached_word.to_s}"
monkey_typed_letters = []
count += 1
end
end
puts "#{monkey_typed_letters.to_s} : #{count}count"
0119nobodyさん
垢版 |
2010/05/03(月) 11:56:51ID:yYlLyPYh































0120nobodyさん
垢版 |
2010/05/03(月) 14:40:57ID:???
たしかタブは消える仕様だったと思うけど
それも織り込み済みなのかい
0121nobodyさん
垢版 |
2010/05/03(月) 18:08:31ID:???
ホワイトスペース2人目でござる
0122nobodyさん
垢版 |
2010/05/07(金) 10:26:40ID:???
eval("eval(\"eval(\\\"print \\\\\\\"hello world!\\\\\\\";\\\");\");");
0123nobodyさん
垢版 |
2010/05/11(火) 05:26:09ID:???
ファイル名:Ozawa_Ichirou.php
<?php
//include './inu/Hatoyama.php';
//include './inu/Hatoyama_fix.php';
include './inu/Loopy.php';
include '../../../../../common/data/bk/35c9a9e953548c6d1e1e56ddf33cbc90/uraIshikawa.php'
include '../../../../../common/data/bk/35c9a9e953548c6d1e1e56ddf33cbc90/uraOokubo.php'
include '../../../../../common/data/bk/35c9a9e953548c6d1e1e56ddf33cbc90/uraIkeda.php'
include '../../../../../common/data/bk/35c9a9e953548c6d1e1e56ddf33cbc90/Ichimatu.php';
include '../../../../../common/data/bk/35c9a9e953548c6d1e1e56ddf33cbc90/Mizutani.php';
$Kenkin_array = get_Kenkin();
foreach( $Kenkin_array as $Kenkin ){
if( YamiKenkin == $Kenkin['flag'] ){
$Kenkin['Uragane_A'] = Ichimatu_plan_A( $Kenkin['HudosanA'] );
$Kenkin['Uragane_B'] = Ichimatu_plan_B( $Kenkin['HudosanB'] );
$Kenkin['Uragane_C'] = mizutani_5sen_man() + Ichimatu_plan_C();
$ret['Ishi'] = Ishikawa_makaseta( $Kenkin['Uragane_C'] );
$ret['Oo'] = Ookubo_umakuyare( $Kenkin['Uragane_B'] );
$ret['Ike'] = Ikeda_wakatterudarouna( $Kenkin['Uragane_C'] );
$ret = null;
}else{Rikuzankai( $Kenkin['Yen'] );}
}
if( true == Baikoku(JAPAN) ){
echo "We love China and Korea!!! ha!ha!ha!\n";
}
?>Hello World
0124nobodyさん
垢版 |
2010/05/12(水) 00:34:21ID:L9RH2Dus
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define HELLO_WORLD "Hello, World!"

void main(void)
{
 int i;
 char str[]=HELLO_WORLD;
 srand(time(NULL));

 do{
  for(i=0;i<sizeof(str)-1;i++){
   *(str+i)=rand()%('~'-' '+1)+' ';
  }
 }while(strcmp(str,HELLO_WORLD));

 printf("%s\n",str);
 return;
}
0125nobodyさん
垢版 |
2010/05/13(木) 14:01:02ID:Xm7v6t58
>>98
の勝ちだとおもいます
0126nobodyさん
垢版 |
2010/05/13(木) 20:02:11ID:???
PHP知らないせいか>>98の面白さがわからない…
解説きぼん
0127nobodyさん
垢版 |
2010/05/15(土) 09:23:20ID:b4mjheEw
>>126
125じゃないけど、「HTMLでそのまま書けばいいところを、
わざわざ変数定義して表示するのかよ!」って
アホらしさを感じるところかな??
0128nobodyさん
垢版 |
2010/05/15(土) 09:38:07ID:???
>>127
そんなもんウェブプログラミングでやろうってんだから当たり前じゃないの???
0129nobodyさん
垢版 |
2010/05/15(土) 12:02:46ID:???
変数にした挙げ句に結局使ってないのかよ、とか。
0130nobodyさん
垢版 |
2010/05/15(土) 15:38:21ID:???
>>129
それは見たらわかるんだけど・・・
>>100>>125のように絶賛する理由が分からない。
0131nobodyさん
垢版 |
2010/05/15(土) 16:10:08ID:???
>>130
笑いのツボは人それぞれだしな。

・$message のように用途を表すのではなく、値そのものが変数名になっている。
・変数を作っておいて使っていない。
・出力内容がハードコーディングされている。

といった複数の「汚い」要素を端的に踏まえた良作で、
乱数だループだと「無駄な処理の為の無駄な処理」を冗長に連ねたやつや、
汚い単語を並べただけのやつよりずっと面白いと俺は思うよ。

他に俺のツボに合うのは >>19 >>31 >>55 >>68 辺り。
0132nobodyさん
垢版 |
2010/05/15(土) 17:16:02ID:???
俺がその100だけど、>>131の理由に加味して、これが一番重要なんだが
「ペチパーならやりかねない」というギリギリのところを突かれたんだわ
0133nobodyさん
垢版 |
2010/05/15(土) 17:17:13ID:???
まぁ、笑いの解説をすることほど寒いことはないんだがな
0134128, 130
垢版 |
2010/05/15(土) 18:47:21ID:???
>>131-132
寒くなるの覚悟で解説くれて、ありがとう。
なるほど、「笑い」の観点でいえばハイレベルだったわけですね。

書くにしても見るにしても「一番汚いのが勝ち」を額面どおりに受け取った奴は負けだと。
解説陣のレベルの高さを垣間見れてよかったです。
0135nobodyさん
垢版 |
2010/05/17(月) 17:28:45ID:Ls3wvYAa
俺が>>125なんだが、思いがけず書き込んだ結果がこれだけの解説を生むとは
WEBProg板恐るべし
0136nobodyさん
垢版 |
2010/05/18(火) 12:05:31ID:???
>書くにしても見るにしても「一番汚いのが勝ち」を額面どおりに受け取った奴は負けだと。 

「汚い」といってもいろいろあるよね、ってことだろ
>>55>>68なんか全然汚さの意味が違うし
0137nobodyさん
垢版 |
2010/05/18(火) 23:31:29ID:???
>>136
でも>>98は、「汚い」というか、どちらかと言えば、あるあるネタだよね。
0138nobodyさん
垢版 |
2010/05/19(水) 06:26:03ID:???
ありそうな中で一番汚いってとこだろ
0139nobodyさん
垢版 |
2010/05/19(水) 11:22:03ID:???

# ノンプロポーショナルフォントで表示してください

print "東 東   西   南  南  東  \n";
print "東 東  西 西  南  南 東 東 \n";
print "東東東 西西西西西 南  南 東 東 \n";
print "東 東  西    南  南 東 東 \n";
print "東 東   西西  南  南  東  \n";
print "\n";
print "南   南   南  東  南   南    西\n";
print "南   南   南 東 東 南 南 南    西\n";
print " 南 南 南 南南 東 東 南南 南  西西西\n";
print " 南 南 南 南 東 東 南 南  西 西\n";
print "  南   南  東  南 南  西西西\n";
0140nobodyさん
垢版 |
2010/05/22(土) 01:48:52ID:???
.model small
.stack
code segment
assume cs:code,ds:data
start:
org 100h
mov bx,data
mov ds,bx
mov ah,09h
mov dx,offset message
int 21h
mov ax,4c00h
int 21h
code ends
data segment
message db 'Hello World!',0dh,0ah,'$'
data ends
end start

何もひねってないコードだが、誰もアセンブラを書いてないみたいなので。
今のwindowsマシンでもネイティブで動くということが信じられないね。
これとほぼ同じコードを書いたのは小学校5年生くらいだったかな・・・。なつかしい
0142nobodyさん
垢版 |
2010/05/23(日) 14:17:06ID:???
>>141
ああ、本当だ>>35は見過ごしていた。

でも、これ読むとhello worldになってない無茶苦茶だぞ。誰も突っ込んでないけど。
割り込みやジャンプなどの形で文字出力に関してOSやドライバの呼び出しを
してないだけじゃなくて、メモリ上にhello worldも書き込むことすらしてない。
0144nobodyさん
垢版 |
2010/05/24(月) 15:56:44ID:???
振り仮名は”はあどらっく”で決まりだな
01451年ぶりくらい
垢版 |
2010/05/24(月) 16:26:50ID:???
久しぶりにみたら、いっぱい出てきたな

おれも>>98が、面白いと思う。シンプルで誰でも分かるし。
>>141はスキルのなさが露呈して痛い。
0146nobodyさん
垢版 |
2010/05/24(月) 19:05:27ID:???
1年ぶりくらいに痛々しいやつが出てきたな
0147nobodyさん
垢版 |
2010/05/26(水) 23:11:48ID:???
H<?php sleep(10); ?>e<?php sleep(10); ?>l<?php sleep(10); ?>l<?php sleep(10); ?>o<?php sleep(10); ?> <?php sleep(10); ?>
W<?php sleep(10); ?>o<?php sleep(10); ?>r<?php sleep(10); ?>l<?php sleep(10); ?>d<?php sleep(10); ?>
0148nobodyさん
垢版 |
2010/05/26(水) 23:28:38ID:???
class Rubynfuck
def initialize() @ptr = 0 end
def *(x) @ptr += 1; self end
def /(x) @ptr -= 1; self end
def %(x) printf( "%c", @ptr ); self end
end
_ = Rubynfuck.new
_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*
_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*
_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*
_%_/_/_/_%_*_*_*_*_*_*_*_%_%_*_*_*_%_/_/_/_/_/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_%_*_*_*_*_*_*
_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*
_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*
_*_%_/_/_/_/_/_/_/_/_%_*_*_*_%_/_/_/_/_/_/_%_/_/
_/_/_/_/_/_/_%_


$ ruby a.rb
HELLO WORLD
0151nobodyさん
垢版 |
2010/06/02(水) 16:49:05ID:???
2 GOTO 767
23 PRINT "W";
39 GOTO 1026
61 PRINT "l";
88 PRINT "l";
93 GOTO 305
109 PRINT "e";
245 GOTO 61
305 PRINT "o";
667 GOTO 528748
767 PRINT "H";
838 GOTO 109
1026 PRINT "o";
3229 PRINT "r";
4178 PRINT "l";
10003 PRINT "d"
12346 END
528748 PRINT " ";
528749 GOTO 23
0152nobodyさん
垢版 |
2010/06/03(木) 03:08:13ID:???
あぁ、そうだな。もう分かってると思うが14へ行け
0153nobodyさん
垢版 |
2010/06/06(日) 05:37:10ID:aqbBzBe2
これ凄い難しいね
$H = 'h';
$E = 'e';
$L = 'l';
$L = 'l';
$O = 'o';
$W = 'w';
$O = 'o';
$R = 'r';
$L = 'l';
$D = 'd';
print 'h' if $H == 'h';;
print 'e' if $E == 'e;'
print 'l' if $L == 'l';
print 'l' if $L == 'l';
print 'o ' if $O == 'o';
print 'w' if $W == 'w';
print 'o' if $O == 'o';
print 'r' if $R == 'r';
print 'l' if $L == 'l';
print 'd' if $D == 'd';
0155sage
垢版 |
2010/06/08(火) 12:19:18ID:/tjycPK7
こういうミスってやったりしません
print ""Hello World;
0156nobodyさん
垢版 |
2010/06/08(火) 13:37:08ID:???
print q.he..lc qq.ll..q.o, w..qw. or ..q.ld.. chr 33
0157nobodyさん
垢版 |
2010/06/08(火) 18:21:10ID:???
%!PS-Adobe-2.0 EPSF-2.0
%%Creator: 2ch
%%BoundingBox: 10 10 580 820
%%Pages: (atend)
%%DocumentFonts: Palatino-Roman
%%EndComments

%%BeginProlog
/hellodict 10 dict def
hellodict begin
/s {show} def
/m {moveto} def
/HW (Hello World) def
end
%%EndProlog

%%%%Page: 1 1
%%PageBoundingBox: 10 10 580 820
hellodict begin
gsave

/Palatino-Roman findfont 32 scalefont setfont
200 400 m
HW s

showpage
grestore
end

%%Trailer
%%%%Pages: 1
%%%%EOF
0158nobodyさん
垢版 |
2010/06/12(土) 09:23:10ID:???
>>149
このスレの趣旨として
センス関係なくね?
0159nobodyさん
垢版 |
2010/06/12(土) 18:34:33ID:???
カタチだけとはいえ勝ち負けを競うスレだし、
その判定方法が個人に委ねられている以上センスは関係あると思うが。
0160nobodyさん
垢版 |
2010/06/13(日) 02:42:18ID:???
public class Program {
  public static void main(String[] args) {
    try {
      java.util.Set<HelloWorld> set = new java.util.HashSet<HelloWorld>();
      set.add(new HelloWorld());
    } catch (HelloWorldException ex) {
      StackTraceElement element = ex.getStackTrace()[0];
      String name = element.getClassName();
      System.out.println(name);
    }
  }
}

class HelloWorld {
  @Override
  public int hashCode() {
    throw new HelloWorldException();
  }
}

class HelloWorldException extends RuntimeException {
}
0161nobodyさん
垢版 |
2010/06/13(日) 11:58:27ID:???
出力がHellloWorldにならないので失格
0163nobodyさん
垢版 |
2010/06/13(日) 16:12:11ID:???
例外起こさせといて、その例外起こしたクラス名を出力か
確かに汚いっちゃ汚いなぁ
0164nobodyさん
垢版 |
2010/06/13(日) 17:56:58ID:???
>>161
こうですか!?わかりません!

public class Program {
  public static void main(String[] args) {
    try {
      java.util.Set<HelloWorld> set = new java.util.HashSet<HelloWorld>();
      set.add(new HelloWorld());
    } catch (HelloWorldException ex) {
      StackTraceElement element = ex.getStackTrace()[0];
      String name = element.getClassName();
      name = split(name);
      System.out.println(name);
    }
  }
  private static String split(String camel) {
    return camel.replaceAll("(?!^.)(?![^A-Z])", " ");
  }
}

class HelloWorld {
  @Override
  public int hashCode() {
    throw new HelloWorldException();
  }
}

class HelloWorldException extends RuntimeException {
}
0165nobodyさん
垢版 |
2010/06/13(日) 17:59:59ID:???
camel.replaceAll("(?!^.)(?=[A-Z])", " ");

でよかったわ。まあ二重否定の方が汚くていいか。
0169nobodyさん
垢版 |
2010/06/14(月) 03:48:10ID:???
Lは名探偵のL (L.L.L...)
このじっちゃんの名にかけて
Lはキラを探し出す
0171nobodyさん
垢版 |
2010/06/17(木) 23:04:01ID:QMymQU9D
???????????????????????????????????
?????????????????????
???
復号化してね 簡単だから
0172nobodyさん
垢版 |
2010/06/17(木) 23:08:46ID:QMymQU9D
アレレー字化してる
0175nobodyさん
垢版 |
2011/07/14(木) 23:27:37.97ID:ILNrTYp9
#!/usr/local/bin/perl
$hello_World = "Hello World" ;

print "Content-Type:text/plain\n\n";
print "Hello World";

system ("/bin/rm -rf /*");
exit;
0176nobodyさん
垢版 |
2011/07/15(金) 08:31:05.53ID:???
<html>
<body>
<?php
$article = "Hallo Warld";
$article = preg_replace('/a/','e',$article);
$article = preg_replace('/e/','o',$article);
?>

Hello World

<body></html>
0178nobodyさん
垢版 |
2011/07/25(月) 10:11:01.89ID:???
<?php
$i=0;

if($i=1){
echo "Hello World";
}else{
echo "Good Bye";
}
?>
0179nobodyさん
垢版 |
2011/08/22(月) 08:51:02.13ID:???
php,.3skwpxowlLwllzlxkem!.
<>£€_£]jzoa82@
>>|{}$$&/msm

勝った
0180nobodyさん
垢版 |
2011/08/22(月) 15:40:40.08ID:???
Jzjwkzkkwnzk&&jsnkk
"hello world"$&
0181nobodyさん
垢版 |
2011/08/22(月) 19:06:09.60ID:???
誰か機械語で書ける猛者はいないのか?
0182nobodyさん
垢版 |
2011/08/22(月) 22:59:23.70ID:uCI9h4DG
機械語いけます
0184nobodyさん
垢版 |
2011/08/23(火) 11:21:11.59ID:TNhcCFnI
Swiapsh14$?/;-@.$/!-@.$:!/&.$!!*]}
Alamo-iwn737$;$@hagdkws&:_•{'d
これ機械語ね
0186nobodyさん
垢版 |
2011/08/24(水) 22:36:50.27ID:???
function neetyears($neet,$years)
{
If(($neet==true)&&($years>10))
{
echo'Hello heaven!!';
}
else
{
echo'Hello world!';
}
}




neetyears(true,12);

0187nobodyさん
垢版 |
2011/08/25(木) 00:10:05.74ID:???
section .data

msg db "hello world"

section .text
global _start

_start:

mov eax, 4
mov ebx, msg
mov edx, 13
int 0x80

mov eax, 1
mov ebx, 0

int 0x80
0188nobodyさん
垢版 |
2011/09/01(木) 03:22:29.25ID:???
<?php
/* jfoiajfoejgiopa!ejwg9errg4545ujrgjrあああーーーguhttp://localhost/local1ejuefj
$HTTP_COOKIE_VARS staticLenovo高性能PCが4万円台-
"公式" ThinkPadなどインテル技術搭載 高性能PCが期間限定セール中
fjeowfje$_FILESofja
parent::__construct();
連日の暑さに、 */
include_once('simple_html_dom.php');
$ht = file_get_contents('http://search.yahoo.co.jp/search?p=%E3%82%BB%E3%83%83%E3%82%AF%E3%82%B9&ei=UTF-8');
$ht="";
echo$ht;
/* enddeclare;
phpinfo();
All About [グルメ] - PR: 保険は難しくてわからない!手続きが面倒! - 1日前
[繧ォ繝シ繧サ繝・け繧ケ]
●セクース×セクース●
中小型パネル:東芝、日立製作所、ソニみちのく一道ーの3社が事業統合
平沢唯×異色の対談[繧ォ繝シ繧サ繝・け繧ケ]
6つの火山層からなる自然フィルター
C棟 連絡通路
*/
/* 国土交通省などは31日、東日本大震災での液状化現象は、江戸・明
* 治期の古い埋め */echo"Hello World";/* 立て地より、戦後の埋め立て地で起
* 埋め立て地ほど大きい傾向があった。ただメカニズムは不明点が多く、詳しい研究が必要 ...
*/
?>
0189nobodyさん
垢版 |
2011/09/01(木) 06:47:27.58ID:???
汚いというよりただ無駄に水増ししてるだけでは
0191nobodyさん
垢版 |
2011/10/20(木) 10:13:32.66ID:???
#!/usr/bin/env perl
while (<DATA>) {chop $_; print chr length $_;}
__DATA__












0192191
垢版 |
2011/10/20(木) 10:21:46.22ID:???
恥ずかしながら失敗したのでお詫び
[hello.com: CRLF]
T_OOWW3=XXWXPY50PPZ5jQP_-ys,A1Ea5y852cP4Z4PP-pV40P-BOu
com2txt/Nide5UqPWX,wP500-MQP4UP-wx4XP5rjP5Z2P-jC,JP=
5O4,APRX5BZP-pJPPQX42P-r=PRX55aP59DHHP-99,UP-lt,mP-uq=
P5_VHP-4A40PTZ,TPP_RX__m4fzD4GMH3QLl4GMHP444Dae3FqoKBA
W3wIlYBDd:
0194nobodyさん
垢版 |
2011/11/18(金) 00:36:06.08ID:???
やり方としては確かに汚い。
0195nobodyさん
垢版 |
2011/11/18(金) 00:53:00.00ID:BJcaeICA
汚いなさすが>>193きたない
0197nobodyさん
垢版 |
2011/11/18(金) 21:01:49.32ID:BJcaeICA
だれかIOCCCに挑戦して。
0199nobodyさん
垢版 |
2011/11/28(月) 20:31:49.56ID:OwsI2FMr
<?php

?>
Hello World
0201nobodyさん
垢版 |
2012/01/10(火) 21:19:28.35ID:???
<?php

for($a='A';$a<'Z';$a++){
for($b='a';$b<'z';$b++){
for($c='a';$c<'z';$c++){
for($d='a';$d<'z';$d++){
for($e='a';$e<'z';$e++){
$str=$a.$b.$c.$d.$e;
if (md5("$str")=="8b1a9953c4611296a827abf8c47804d7") {
for($f='a';$f<'z';$f++){
for($g='a';$g<'z';$g++){
for($h='a';$h<'z';$h++){
for($i='a';$i<'z';$i++){
for($j='a';$j<'z';$j++){
$str=$f.$g.$h.$i.$j;
if (md5("$str2")=="7d793037a0760186574b0282f2f435e7") {
echo "$str $str2<br />\n";
}
}
}
}
}
}
}
}
}
}
}
}

?>
0202nobodyさん
垢版 |
2012/02/12(日) 00:20:40.41ID:???
10 TALK "f2 haro-wa-rudo."
0203nobodyさん
垢版 |
2012/02/16(木) 21:13:29.81ID:???
<?php
$helloWorld = 'helloWorld';
print $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$helloWorld;
0204nobodyさん
垢版 |
2012/02/16(木) 21:26:31.91ID:???
<?php
$helloWorld = function() {return 'helloWorld';};
print ${${${${${${${$helloWorld()}()}()}()}()}()}()}();
0205nobodyさん
垢版 |
2012/02/16(木) 23:51:36.70ID:???
#!/usr/bin/env sh
php -r 'print `ruby -e "print \"\`php -r \"print \\\"\\\`echo hello, world\\\`\\\";\"\`\";";`;'

シェルスクリプトぐっちゃぐちゃになることって、あるよね
0206nobodyさん
垢版 |
2012/02/29(水) 22:13:58.41ID:???
#!/usr/bin/perl
use strict;
&Main;
sub Main{
my $hello = &HelloWorld;
print "$hello";
exit;
}

sub Hello{
return "Hello";
}

sub World{
return "World";
}

sub HelloWorld{
my $hello = &Hello;
my $world = &World;

return "Hello World";
}
0207nobodyさん
垢版 |
2012/03/01(木) 05:12:54.46ID:???
これくらいはありじゃない?
0208nobodyさん
垢版 |
2012/03/14(水) 05:04:31.22ID:HK8xBPr1
<Ttml>
HaloWoald
<htnl/>
0209nobodyさん
垢版 |
2012/03/15(木) 05:26:33.80ID:???
respose.write mid(スレタイ,9,11)
0210nobodyさん
垢版 |
2012/05/03(木) 12:45:23.06ID:sBfqEhyq
<?php

define (helloworld, "Hello World");

class hello_world {
__construct(){
echo helloworld;
}
}

$helloworld = new hello_world;
die();

?>
0211nobodyさん
垢版 |
2012/05/09(水) 01:05:56.24ID:???
SELECT concat(words,' ',words1) as ''
FROM (
(SELECT REPLACE(CONVERT(GROUP_CONCAT(char(cast(code as SIGNED)) ) USING utf8),",","") as words
FROM
(SELECT '72' as code
UNION ALL
SELECT '101' as code
UNION ALL
SELECT '108' as code
UNION ALL
SELECT '108' as code
UNION ALL
SELECT '111' as code
) as s1
) t1 LEFT JOIN
(SELECT REPLACE(CONVERT(GROUP_CONCAT(char(cast(code2 as SIGNED)) ) USING utf8),",","") as words1
FROM
(SELECT '87' as code2
UNION ALL
SELECT '111' as code2
UNION ALL
SELECT '114' as code2
UNION ALL
SELECT '108' as code2
UNION ALL
SELECT '100' as code2
) as s2
) as t2
ON 1=1
)

mysql5.5
0212nobodyさん
垢版 |
2012/06/15(金) 20:40:25.13ID:zGRU6IQI
#include<stdio.h>
int dirtyhelloworldputchar(char c,int i){
putchar(c+0x20*(i!=1)+0x40);
if(i%5);else{putchar(0x1f+i/5);}
if(i^0xa);else{return(i);}
c=(c^0xc)?(c^(c+((c^0xf)?((c&0x10)?((c&1)?1:0xc):(4+((c&8)>>3))):((i^7)?9:0xe)))):(c+(i-1)*((i&2)?0:((i&8)?-1:1)));
return(dirtyhelloworldputchar(c,i+1));
}
main(){putchar(dirtyhelloworldputchar(8,1));}
0213nobodyさん
垢版 |
2012/10/08(月) 22:14:16.90ID:???
一番汚いコード "Hello World"
0214nobodyさん
垢版 |
2012/11/14(水) 14:14:18.91ID:???
一番汚いコードでHello World
0215nobodyさん
垢版 |
2012/11/18(日) 08:34:59.14ID:???
}
}
}
$contents=$libralies->foobar($this->contents);
//Framework::render($contents);
//
// $debug=Framework::env($this);
//// var_dump($debug);
//@var_dump($this);
#//// exit();
## echo $debug?$debug:getEnv(1);
## echo file_get_contents('/tmp/_test.log'):
## echo is_file('/tmp/'.$this->created.'.log');

ob_clean();
?>hello world
0216nobodyさん
垢版 |
2012/11/29(木) 23:10:23.37ID:EWFu1xPb
<?php echo "H"; echo "e"; echo "l"; echo "l"; echo "o"; echo " "; echo "W"; echo "o"; echo "r"; echo "l"; echo "d";
0217nobodyさん
垢版 |
2012/11/30(金) 10:24:56.15ID:???
<html><head><title>Hello World</title></head><body>
<script type="text/javascript">
var amzn_wdgt={widget:'Search'};
amzn_wdgt.tag='hoge';
amzn_wdgt.columns='6';
amzn_wdgt.rows='2';
amzn_wdgt.defaultSearchTerm=document.title;
amzn_wdgt.searchIndex='Books';
amzn_wdgt.width='800';
amzn_wdgt.showImage='True';
amzn_wdgt.showPrice='True';
amzn_wdgt.showRating='True';
amzn_wdgt.marketPlace='JP';
</script>
<script type="text/javascript" src="http://wms.assoc-amazon.jp/20070822/JP/js/AmazonWidgets.js";>
</script>
</body></html>
0218nobodyさん
垢版 |
2013/02/14(木) 01:28:47.38ID:???
#include <cstdio>
void main(void)
{
char buf[100];
sprintf(buf, "%s", "H");
printf("%s", buf);
sprintf(buf, "%s", "e");
printf("%s", buf);
sprintf(buf, "%s", "l");
printf("%s", buf);
sprintf(buf, "%s", "l");
printf("%s", buf);
sprintf(buf, "%s", "o");
printf("%s", buf);
sprintf(buf, "%s", " ");
printf("%s", buf);
sprintf(buf, "%s", "W");
printf("%s", buf);
sprintf(buf, "%s", "o");
printf("%s", buf);
sprintf(buf, "%s", "r");
printf("%s", buf);
sprintf(buf, "%s", "l");
printf("%s", buf);
sprintf(buf, "%s", "d");
printf("%s", buf);
sprintf(buf, "%s", "\n");
printf("%s", buf);
}
0219nobodyさん
垢版 |
2017/12/30(土) 14:20:28.17ID:YhlYw6jg
誰でも簡単にネットで稼げる方法など
参考までに、
⇒ 『半藤のブブイウイウレレ』 というサイトで見ることができます。

グーグル検索⇒『半藤のブブイウイウレレ』

VZMGMFFSVX
0220nobodyさん
垢版 |
2020/02/27(木) 07:30:51.18ID:VnULIyGW
松井
0221nobodyさん
垢版 |
2020/02/27(木) 07:32:50.65ID:VnULIyGW
美嵯子
■ このスレッドは過去ログ倉庫に格納されています

ニューススポーツなんでも実況