結果

問題 No.1692 Expectations
ユーザー t98slider
提出日時 2021-10-02 03:38:15
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 262 bytes
コンパイル時間 1,512 ms
コンパイル使用メモリ 170,772 KB
実行使用メモリ 22,144 KB
最終ジャッジ日時 2024-07-19 21:07:16
合計ジャッジ時間 3,382 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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,T;
    while(n--){
        cin>>v;
        S.insert(v);
        if(v<=m)T.insert(v);
    }
    cout<<T.size()<<" "<<(n==m&&S.size()==1&&*S.begin()<=m)<<endl;
}
0