結果

問題 No.207 世界のなんとか
ユーザー neko_the_shadowneko_the_shadow
提出日時 2016-08-19 22:09:47
言語 Raku
(rakudo v2024.02)
結果
AC  
実行時間 444 ms / 5,000 ms
コード長 286 bytes
コンパイル時間 456 ms
コンパイル使用メモリ 136,892 KB
実行使用メモリ 136,868 KB
最終ジャッジ日時 2024-05-03 13:18:11
合計ジャッジ時間 9,798 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 429 ms
136,612 KB
testcase_01 AC 426 ms
136,352 KB
testcase_02 AC 435 ms
136,356 KB
testcase_03 AC 431 ms
136,352 KB
testcase_04 AC 426 ms
136,736 KB
testcase_05 AC 428 ms
136,612 KB
testcase_06 AC 426 ms
136,484 KB
testcase_07 AC 421 ms
136,356 KB
testcase_08 AC 419 ms
136,228 KB
testcase_09 AC 438 ms
136,356 KB
testcase_10 AC 439 ms
136,352 KB
testcase_11 AC 444 ms
136,740 KB
testcase_12 AC 435 ms
136,612 KB
testcase_13 AC 429 ms
136,868 KB
testcase_14 AC 425 ms
136,228 KB
testcase_15 AC 426 ms
136,484 KB
testcase_16 AC 425 ms
136,612 KB
testcase_17 AC 423 ms
136,352 KB
testcase_18 AC 422 ms
136,352 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

sub has3($x){
    my $t = $x;
    while $t > 0 {
        return True if $t % 10 == 3;
        $t = $t div 10;
    }
    False;
}

sub is_multiple_of_3($x){
    $x % 3 == 0;
}


my ($a, $b) = get().split(" ").map({Int($_)});
for $a..$b {
    say $_ if is_multiple_of_3($_) || has3($_);
}
0