結果

問題 No.1692 Expectations
ユーザー neko_the_shadowneko_the_shadow
提出日時 2021-10-13 09:51:29
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 54 ms
コンパイル使用メモリ 5,860 KB
実行使用メモリ 73,276 KB
最終ジャッジ日時 2023-10-17 19:02:59
合計ジャッジ時間 2,369 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,864 KB
testcase_01 AC 6 ms
5,864 KB
testcase_02 AC 6 ms
5,892 KB
testcase_03 AC 7 ms
5,996 KB
testcase_04 AC 6 ms
5,888 KB
testcase_05 AC 6 ms
6,024 KB
testcase_06 AC 7 ms
5,996 KB
testcase_07 AC 6 ms
5,864 KB
testcase_08 AC 7 ms
5,984 KB
testcase_09 AC 7 ms
5,860 KB
testcase_10 AC 104 ms
45,040 KB
testcase_11 AC 114 ms
47,268 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 20 ms
11,348 KB
testcase_15 AC 190 ms
55,356 KB
testcase_16 AC 21 ms
11,460 KB
testcase_17 AC 93 ms
31,680 KB
testcase_18 AC 36 ms
16,552 KB
testcase_19 AC 217 ms
66,044 KB
testcase_20 AC 212 ms
60,436 KB
testcase_21 AC 272 ms
73,276 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

use strict;
use warnings;

sub gets {
    chomp(my $line = <>);
    $line;
}

my ($n, $m) = split / /, gets;
my @a = split / /, gets;

my %h = map {$_, 1} @a;
my $max = keys(%h);
print $max==1 ? "$max $max\n" : "$max 0\n";

0