結果

問題 No.207 世界のなんとか
ユーザー prog470
提出日時 2016-05-14 13:44:57
言語 Perl
(5.40.0)
結果
WA  
実行時間 -
コード長 186 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-06 02:28:22
合計ジャッジ時間 682 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::S" used only once: possible typo at Main.pl line 8.
Main.pl syntax OK

ソースコード

diff #

$N = <>;

chomp $N;

($A, $B) = split /\s/, $N;

chomp $S;

for($i=$A ; $i<=$B; $i++){
	$t = $i;
	if($t%3 == 0){
		print "$t\n";
	}elsif(index($t, "3") != -1){
		print $t, "$t\n";
	}
}
0