結果

問題 No.548 国士無双
ユーザー tails
提出日時 2017-07-28 22:28:40
言語 Perl
(5.40.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 158 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-05 20:21:57
合計ジャッジ時間 837 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "a" may clash with future reserved word at Main.pl line 12.
Unquoted string "a" may clash with future reserved word at Main.pl line 14.
Main.pl syntax OK

ソースコード

diff #

$_=<>;
for(/./g){
	if(!y/a-m//){
		print"Impossible";
		exit;
	}
	if($h{$_}++){
		$x=1;
	}
}
if($x){
	print grep!$h{$_},a..'m';
}else{
	print join$/,a..'m';
}
0