結果

問題 No.1692 Expectations
ユーザー t98slider
提出日時 2021-10-02 03:29:57
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 1,612 ms
コンパイル使用メモリ 171,660 KB
実行使用メモリ 12,800 KB
最終ジャッジ日時 2024-07-19 20:59:08
合計ジャッジ時間 2,892 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
    int n,m,v;
    cin>>n>>m;
    set<int> S;
    while(n--){
        cin>>v;
        S.insert(v);
    }
    cout<<S.size()<<" "<<(n==m&&S.size()==1?1:0)<<endl;
}
0