結果

問題 No.233 めぐるはめぐる (3)
ユーザー tailstails
提出日時 2015-06-26 23:48:48
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 415 bytes
コンパイル時間 338 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 26,936 KB
最終ジャッジ日時 2023-09-22 01:51:41
合計ジャッジ時間 7,973 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 112 ms
13,276 KB
testcase_03 WA -
testcase_04 AC 331 ms
26,696 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 9 ms
4,720 KB
testcase_10 AC 8 ms
4,900 KB
testcase_11 AC 7 ms
4,780 KB
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

<>;for(<>){
	/(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)/;
	++${"$1$3$5$7$9$11"};
	++${"$2$4$6$8$10"};
}
$c=999;
for(0..179){
	$x=join'',sort{.5<=>rand}qw(i a a e u u);
	redo if $2{$x}++;
	if($c>$$x){
		$c=$$x;
		$a=$x;
	}
}
$c=999;
for(0..119){
	$x=join'',sort{.5<=>rand}qw(n b m g r);
	redo if $2{$x}++;
	if($c>$$x){
		$c=$$x;
		$b=$x;
	}
}
"$a$b"=~/(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)/;
print "$1$7$2$8$3$9$4$10$5$11$6\n";
0