結果
問題 | No.207 世界のなんとか |
ユーザー |
![]() |
提出日時 | 2016-05-14 13:48:06 |
言語 | Perl (5.40.0) |
結果 |
AC
|
実行時間 | 4 ms / 5,000 ms |
コード長 | 198 bytes |
コンパイル時間 | 299 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-09 10:54:13 |
合計ジャッジ時間 | 821 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
コンパイルメッセージ
Name "main::S" used only once: possible typo at Main.pl line 9. Main.pl syntax OK
ソースコード
#!/usr/bin/perl $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\n"; } }