結果

問題 No.1692 Expectations
ユーザー tails
提出日時 2021-10-01 21:24:08
言語 Perl
(5.40.0)
結果
AC  
実行時間 463 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 502 ms
コンパイル使用メモリ 5,888 KB
実行使用メモリ 70,308 KB
最終ジャッジ日時 2024-07-19 10:25:23
合計ジャッジ時間 4,247 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::u" used only once: possible typo at Main.pl line 5.
Main.pl syntax OK

ソースコード

diff #

($n,$m)=glob<>;
@a=glob<>;
$f=1;
for(@a){
    $max+=!$u{$_}++;
    $f&=$_==$a[0];
}
print $max,$",($n==$m)*$f;
0