結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
neko_the_shadow
|
| 提出日時 | 2016-08-19 22:09:47 |
| 言語 | Raku (rakudo v2024.12) |
| 結果 |
AC
|
| 実行時間 | 382 ms / 5,000 ms |
| コード長 | 286 bytes |
| コンパイル時間 | 348 ms |
| コンパイル使用メモリ | 146,080 KB |
| 実行使用メモリ | 147,788 KB |
| 最終ジャッジ日時 | 2024-11-24 13:27:11 |
| 合計ジャッジ時間 | 8,578 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
コンパイルメッセージ
Syntax OK
ソースコード
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($_);
}
neko_the_shadow