結果

問題 No.587 七対子
ユーザー tailstails
提出日時 2017-11-03 22:27:33
言語 Perl
(5.40.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 28 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 19:39:33
合計ジャッジ時間 1,120 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 35
権限があれば一括ダウンロードができます
コンパイルメッセージ
Unquoted string "a" may clash with future reserved word at Main.pl line 7.
Unquoted string "z" may clash with future reserved word at Main.pl line 7.
Main.pl syntax OK

ソースコード

diff #

for(<>=~/./g){
	if(++$a{$_}>2){
		print "Impossible";
		exit;
	}
}
@b=grep$a{$_}==1,a..z;
if(@b>1){
	print "Impossible";
	exit;
}
print@b;
0