結果
| 問題 |
No.1692 Expectations
|
| コンテスト | |
| ユーザー |
monnu
|
| 提出日時 | 2021-10-01 21:26:03 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 106 ms / 2,000 ms |
| コード長 | 526 bytes |
| コンパイル時間 | 3,271 ms |
| コンパイル使用メモリ | 232,496 KB |
| 実行使用メモリ | 13,312 KB |
| 最終ジャッジ日時 | 2024-07-19 10:29:29 |
| 合計ジャッジ時間 | 4,611 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using ll=long long;
using Graph=vector<vector<pair<int,ll>>>;
#define INF 1000000000000000000
#define MOD 998244353
#define MAX 100000
int main(){
int N,M;
cin>>N>>M;
vector<int> A(N);
set<int> s;
for(int i=0;i<N;i++){
cin>>A[i];
s.insert(A[i]);
}
if(N<M){
cout<<s.size()<<' '<<0<<'\n';
}else{
if(s.size()==1){
cout<<1<<' '<<1<<'\n';
}else{
cout<<s.size()<<' '<<0<<'\n';
}
}
}
monnu