結果

問題 No.3043 yukicoderへようこそ!
ユーザー %20%20
提出日時 2019-04-01 21:39:40
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 5,300 KB
実行使用メモリ 5,360 KB
最終ジャッジ日時 2023-08-17 21:22:39
合計ジャッジ時間 797 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,048 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 6 ms
5,096 KB
testcase_05 AC 6 ms
5,184 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Warning: Use of "exit-1" without parentheses is ambiguous at Main.pl line 16.
Main.pl syntax OK

ソースコード

diff #

$N=<>;
@_=<>;
if($N=~$"){
	print$`+$',$",@_
}elsif(@_>=2){
	$x+=$_ for@_;
	print$x,$/
}elsif(@_){
	map$x+=$_,glob"@_";
	print$x,$/
}elsif($N=~/^\d+$/){
#	print+(Fizz)[$_%3].(Buzz)[$_%5]||$_,$/for 1..$N
#}else{
	print"Hello World!\n"
}else{
	exit-1
}
0