結果

問題 No.207 世界のなんとか
ユーザー togaerrortogaerror
提出日時 2015-05-19 00:37:58
言語 Perl
(5.38.0)
結果
AC  
実行時間 61 ms / 5,000 ms
コード長 316 bytes
コンパイル時間 537 ms
コンパイル使用メモリ 11,400 KB
実行使用メモリ 11,424 KB
最終ジャッジ日時 2023-07-30 15:03:25
合計ジャッジ時間 2,329 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
11,340 KB
testcase_01 AC 44 ms
11,104 KB
testcase_02 AC 49 ms
11,276 KB
testcase_03 AC 51 ms
11,340 KB
testcase_04 AC 46 ms
11,368 KB
testcase_05 AC 46 ms
11,396 KB
testcase_06 AC 41 ms
11,124 KB
testcase_07 AC 42 ms
11,352 KB
testcase_08 AC 41 ms
11,424 KB
testcase_09 AC 47 ms
11,156 KB
testcase_10 AC 47 ms
11,260 KB
testcase_11 AC 50 ms
11,208 KB
testcase_12 AC 49 ms
11,156 KB
testcase_13 AC 48 ms
11,324 KB
testcase_14 AC 53 ms
11,164 KB
testcase_15 AC 61 ms
11,208 KB
testcase_16 AC 42 ms
11,152 KB
testcase_17 AC 40 ms
11,148 KB
testcase_18 AC 40 ms
11,088 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