結果
| 問題 |
No.8043 yukicoderへようこそ!
|
| コンテスト | |
| ユーザー |
%20
|
| 提出日時 | 2019-04-01 21:36:37 |
| 言語 | Perl (5.40.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 236 bytes |
| コンパイル時間 | 749 ms |
| コンパイル使用メモリ | 5,888 KB |
| 実行使用メモリ | 6,016 KB |
| 最終ジャッジ日時 | 2024-11-26 21:36:27 |
| 合計ジャッジ時間 | 1,474 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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