結果

問題 No.207 世界のなんとか
ユーザー togaerrortogaerror
提出日時 2015-05-19 00:37:58
言語 Perl
(5.38.2)
結果
AC  
実行時間 69 ms / 5,000 ms
コード長 316 bytes
コンパイル時間 490 ms
コンパイル使用メモリ 12,928 KB
実行使用メモリ 12,800 KB
最終ジャッジ日時 2024-04-17 16:10:14
合計ジャッジ時間 2,053 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
12,800 KB
testcase_01 AC 47 ms
12,800 KB
testcase_02 AC 53 ms
12,800 KB
testcase_03 AC 56 ms
12,800 KB
testcase_04 AC 54 ms
12,800 KB
testcase_05 AC 49 ms
12,800 KB
testcase_06 AC 44 ms
12,800 KB
testcase_07 AC 43 ms
12,672 KB
testcase_08 AC 45 ms
12,672 KB
testcase_09 AC 52 ms
12,544 KB
testcase_10 AC 51 ms
12,800 KB
testcase_11 AC 53 ms
12,544 KB
testcase_12 AC 51 ms
12,672 KB
testcase_13 AC 52 ms
12,672 KB
testcase_14 AC 60 ms
12,800 KB
testcase_15 AC 69 ms
12,800 KB
testcase_16 AC 45 ms
12,800 KB
testcase_17 AC 44 ms
12,672 KB
testcase_18 AC 43 ms
12,800 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

#!/usr/bin/env perl

use strict;
use warnings;
use bigint;

my ($m, $n) = split / /, <>;

for(my $i = $m; $i <= $n; $i++ ) {
	if($i % 3 == 0) {
		print "$i\n";
	} else {
		my @array = split //, $i;
		for(my $j = 0; $j < $#array + 1; $j++) {
			if($array[$j] eq '3') {
				print "$i\n";
				last;
			}
		}
	}
}

exit;
0