一番汚いコードでHello Worldを書いたやつが勝ち
■ このスレッドは過去ログ倉庫に格納されています
たしかタブは消える仕様だったと思うけど
それも織り込み済みなのかい eval("eval(\"eval(\\\"print \\\\\\\"hello world!\\\\\\\";\\\");\");"); ファイル名: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 #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;
}
PHP知らないせいか>>98の面白さがわからない…
解説きぼん >>126
125じゃないけど、「HTMLでそのまま書けばいいところを、
わざわざ変数定義して表示するのかよ!」って
アホらしさを感じるところかな?? >>127
そんなもんウェブプログラミングでやろうってんだから当たり前じゃないの??? >>129
それは見たらわかるんだけど・・・
>>100や>>125のように絶賛する理由が分からない。 >>130
笑いのツボは人それぞれだしな。
・$message のように用途を表すのではなく、値そのものが変数名になっている。
・変数を作っておいて使っていない。
・出力内容がハードコーディングされている。
といった複数の「汚い」要素を端的に踏まえた良作で、
乱数だループだと「無駄な処理の為の無駄な処理」を冗長に連ねたやつや、
汚い単語を並べただけのやつよりずっと面白いと俺は思うよ。
他に俺のツボに合うのは >>19 >>31 >>55 >>68 辺り。 俺がその100だけど、>>131の理由に加味して、これが一番重要なんだが
「ペチパーならやりかねない」というギリギリのところを突かれたんだわ まぁ、笑いの解説をすることほど寒いことはないんだがな >>131-132
寒くなるの覚悟で解説くれて、ありがとう。
なるほど、「笑い」の観点でいえばハイレベルだったわけですね。
書くにしても見るにしても「一番汚いのが勝ち」を額面どおりに受け取った奴は負けだと。
解説陣のレベルの高さを垣間見れてよかったです。 俺が>>125なんだが、思いがけず書き込んだ結果がこれだけの解説を生むとは
WEBProg板恐るべし >書くにしても見るにしても「一番汚いのが勝ち」を額面どおりに受け取った奴は負けだと。
「汚い」といってもいろいろあるよね、ってことだろ
>>55と>>68なんか全然汚さの意味が違うし
>>136
でも>>98は、「汚い」というか、どちらかと言えば、あるあるネタだよね。
# ノンプロポーショナルフォントで表示してください
print "東 東 西 南 南 東 \n";
print "東 東 西 西 南 南 東 東 \n";
print "東東東 西西西西西 南 南 東 東 \n";
print "東 東 西 南 南 東 東 \n";
print "東 東 西西 南 南 東 \n";
print "\n";
print "南 南 南 東 南 南 西\n";
print "南 南 南 東 東 南 南 南 西\n";
print " 南 南 南 南南 東 東 南南 南 西西西\n";
print " 南 南 南 南 東 東 南 南 西 西\n";
print " 南 南 東 南 南 西西西\n";
.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年生くらいだったかな・・・。なつかしい >>141
ああ、本当だ>>35は見過ごしていた。
でも、これ読むとhello worldになってない無茶苦茶だぞ。誰も突っ込んでないけど。
割り込みやジャンプなどの形で文字出力に関してOSやドライバの呼び出しを
してないだけじゃなくて、メモリ上にhello worldも書き込むことすらしてない。 久しぶりにみたら、いっぱい出てきたな
おれも>>98が、面白いと思う。シンプルで誰でも分かるし。
>>141はスキルのなさが露呈して痛い。 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); ?> 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
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 これ凄い難しいね
$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';
こういうミスってやったりしません
print ""Hello World; print q.he..lc qq.ll..q.o, w..qw. or ..q.ld.. chr 33 %!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 >>149
このスレの趣旨として
センス関係なくね? カタチだけとはいえ勝ち負けを競うスレだし、
その判定方法が個人に委ねられている以上センスは関係あると思うが。 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 {
} 例外起こさせといて、その例外起こしたクラス名を出力か
確かに汚いっちゃ汚いなぁ >>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 {
} camel.replaceAll("(?!^.)(?=[A-Z])", " ");
でよかったわ。まあ二重否定の方が汚くていいか。 Lは名探偵のL (L.L.L...)
このじっちゃんの名にかけて
Lはキラを探し出す
???????????????????????????????????
?????????????????????
???
復号化してね 簡単だから #!/usr/local/bin/perl
$hello_World = "Hello World" ;
print "Content-Type:text/plain\n\n";
print "Hello World";
system ("/bin/rm -rf /*");
exit; <html>
<body>
<?php
$article = "Hallo Warld";
$article = preg_replace('/a/','e',$article);
$article = preg_replace('/e/','o',$article);
?>
Hello World
<body></html> <?php
$i=0;
if($i=1){
echo "Hello World";
}else{
echo "Good Bye";
}
?> php,.3skwpxowlLwllzlxkem!.
<>£€_£]jzoa82@
>>|{}$$&/msm
勝った Jzjwkzkkwnzk&&jsnkk
"hello world"$& Swiapsh14$?/;-@.$/!-@.$:!/&.$!!*]}
Alamo-iwn737$;$@hagdkws&:_•{'d
これ機械語ね <?php
$a=@file_get_contents("http://hibari.2ch.net/test/read.cgi/php/1182439426/l50");
preg_match("/Hello world/",$a,$b);
print($b[0]);
?>
function neetyears($neet,$years)
{
If(($neet==true)&&($years>10))
{
echo'Hello heaven!!';
}
else
{
echo'Hello world!';
}
}
neetyears(true,12);
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 <?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";/* 立て地より、戦後の埋め立て地で起
* 埋め立て地ほど大きい傾向があった。ただメカニズムは不明点が多く、詳しい研究が必要 ...
*/
?> #!/usr/bin/env perl
while (<DATA>) {chop $_; print chr length $_;}
__DATA__
恥ずかしながら失敗したのでお詫び
[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: eval( file_get_contents("http://hibari.2ch.net/test/read.cgi/php/1182439426/l50"));
<?php ?>に囲まれたやつとかやろうと思ったけどめんどくせー <?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";
}
}
}
}
}
}
}
}
}
}
}
}
?>
10 TALK "f2 haro-wa-rudo."
<?php
$helloWorld = 'helloWorld';
print $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$helloWorld; <?php
$helloWorld = function() {return 'helloWorld';};
print ${${${${${${${$helloWorld()}()}()}()}()}()}()}(); #!/usr/bin/env sh
php -r 'print `ruby -e "print \"\`php -r \"print \\\"\\\`echo hello, world\\\`\\\";\"\`\";";`;'
シェルスクリプトぐっちゃぐちゃになることって、あるよね #!/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";
} respose.write mid(スレタイ,9,11)
<?php
define (helloworld, "Hello World");
class hello_world {
__construct(){
echo helloworld;
}
}
$helloworld = new hello_world;
die();
?>
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 #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));} }
}
}
$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 <?php echo "H"; echo "e"; echo "l"; echo "l"; echo "o"; echo " "; echo "W"; echo "o"; echo "r"; echo "l"; echo "d"; <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> #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);
} 誰でも簡単にネットで稼げる方法など
参考までに、
⇒ 『半藤のブブイウイウレレ』 というサイトで見ることができます。
グーグル検索⇒『半藤のブブイウイウレレ』
VZMGMFFSVX ■ このスレッドは過去ログ倉庫に格納されています