結果
| 問題 | No.1692 Expectations |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-10-02 01:17:38 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 119 ms / 2,000 ms |
| コード長 | 279 bytes |
| 記録 | |
| コンパイル時間 | 606 ms |
| コンパイル使用メモリ | 82,356 KB |
| 実行使用メモリ | 95,256 KB |
| 最終ジャッジ日時 | 2026-04-02 17:56:30 |
| 合計ジャッジ時間 | 2,545 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
#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;
}