結果

問題 No.1692 Expectations
ユーザー Hydru
提出日時 2021-10-02 01:17:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 169 ms / 2,000 ms
コード長 279 bytes
コンパイル時間 670 ms
コンパイル使用メモリ 71,168 KB
実行使用メモリ 12,800 KB
最終ジャッジ日時 2024-07-19 19:05:04
合計ジャッジ時間 2,295 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<set>

int main()
{
	int n,m;
	std::cin >> n >> m;
	std::set<int> st;
	for(int i=0;i<n;i++) {
		int a;
		std::cin >> a;
		st.insert(a);
	}

	int max=st.size();
	int min=0;
	if(st.size()==1 && n==m)min=1;

	std::cout << max << " " << min << std::endl;
}
0