結果

問題 No.1692 Expectations
ユーザー lanegue
提出日時 2021-10-01 21:38:24
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 2,563 ms
コンパイル使用メモリ 259,880 KB
実行使用メモリ 13,512 KB
最終ジャッジ日時 2024-06-22 12:40:27
合計ジャッジ時間 3,645 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

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