結果
| 問題 | No.8043 yukicoderへようこそ! |
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2019-04-01 21:36:37 |
| 言語 | Perl (5.42.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 236 bytes |
| 記録 | |
| コンパイル時間 | 397 ms |
| コンパイル使用メモリ | 6,656 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-21 05:44:05 |
| 合計ジャッジ時間 | 882 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 RE * 3 |
コンパイルメッセージ
Warning: Use of "exit-1" without parentheses is ambiguous at Main.pl line 4. Main.pl syntax OK
ソースコード
$N=<>;
@_=<>;
if(@_==0){
exit-1;
print+(Fizz)[$_%3].(Buzz)[$_%5]||$_,$/for 1..$N
}elsif($N=~$"){
print$`+$',$",@_
}elsif(@_>=2){
$x+=$_ for@_;
print$x,$/
}elsif(@_){
map$x+=$_,glob"@_";
print$x,$/
}else{
print"Hello World!\n"
}
%20