結果
問題 | No.1692 Expectations |
ユーザー |
|
提出日時 | 2024-05-28 11:55:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 143 ms / 2,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 1,865 ms |
コンパイル使用メモリ | 170,440 KB |
実行使用メモリ | 12,800 KB |
最終ジャッジ日時 | 2024-12-20 20:44:47 |
合計ジャッジ時間 | 4,092 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include<bits/stdc++.h>using namespace std;int n , m;set<int>se;signed main(){cin >> n >> m;for(int i = 1 ; i <= n ; i ++){int x; cin >> x;se.insert(x);}cout << se.size() << " " << (n == m && se.size() == 1 ? 1 : 0) << '\n';return 0;}