結果

問題 No.1692 Expectations
ユーザー tailstails
提出日時 2021-10-01 21:24:08
言語 Perl
(5.38.2)
結果
AC  
実行時間 572 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 666 ms
コンパイル使用メモリ 5,284 KB
実行使用メモリ 65,492 KB
最終ジャッジ日時 2023-09-26 16:19:45
合計ジャッジ時間 5,106 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,124 KB
testcase_01 AC 7 ms
5,228 KB
testcase_02 AC 7 ms
5,344 KB
testcase_03 AC 8 ms
5,280 KB
testcase_04 AC 7 ms
5,212 KB
testcase_05 AC 8 ms
5,536 KB
testcase_06 AC 8 ms
5,372 KB
testcase_07 AC 7 ms
5,104 KB
testcase_08 AC 8 ms
5,488 KB
testcase_09 AC 6 ms
5,148 KB
testcase_10 AC 315 ms
45,824 KB
testcase_11 AC 339 ms
54,160 KB
testcase_12 AC 6 ms
5,296 KB
testcase_13 AC 6 ms
5,096 KB
testcase_14 AC 57 ms
10,460 KB
testcase_15 AC 513 ms
50,936 KB
testcase_16 AC 54 ms
10,820 KB
testcase_17 AC 246 ms
30,728 KB
testcase_18 AC 95 ms
14,896 KB
testcase_19 AC 572 ms
59,252 KB
testcase_20 AC 487 ms
56,968 KB
testcase_21 AC 550 ms
65,492 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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