結果

問題 No.1692 Expectations
ユーザー eSeF
提出日時 2021-08-08 01:58:40
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 351 bytes
コンパイル時間 2,136 ms
コンパイル使用メモリ 164,620 KB
実行使用メモリ 12,672 KB
最終ジャッジ日時 2024-07-19 09:44:32
合計ジャッジ時間 3,222 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
    int N, M;
    cin >> N >> M;
    set<int>A;
    for(int i = 0; i < N; i++){
        int a;cin >> a;
        A.insert(a);
    }

    if(N == M && A.size() == 1){
        cout << 1 << " " << 1 << endl;
    }
    else{
        cout << (int)A.size() << " " << 0 << endl;
    }

    return 0;
}
0