結果

問題 No.1692 Expectations
ユーザー laneguelanegue
提出日時 2021-10-01 21:38:24
言語 D
(dmd 2.107.1)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 2,357 ms
コンパイル使用メモリ 252,940 KB
実行使用メモリ 14,392 KB
最終ジャッジ日時 2023-09-04 14:19:11
合計ジャッジ時間 3,910 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 27 ms
10,132 KB
testcase_11 AC 27 ms
9,200 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 AC 2 ms
4,380 KB
testcase_14 AC 7 ms
5,908 KB
testcase_15 AC 59 ms
10,752 KB
testcase_16 AC 8 ms
4,380 KB
testcase_17 AC 30 ms
7,208 KB
testcase_18 AC 13 ms
4,880 KB
testcase_19 AC 70 ms
14,224 KB
testcase_20 AC 27 ms
10,192 KB
testcase_21 AC 34 ms
14,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import std;
void main(){
	auto input=readln.chomp.split(" ").to!(int[]);
	auto N=input[0];
	auto M=input[1];
	auto A=readln.chomp.split(" ").to!(int[]);
	A=A.sort.array;
	auto max=A.uniq.array.length;
	auto min=0;
	if(N==M&&max==1)min=1;
	writefln("%d %d", max, min);
}
0