結果
問題 | No.1692 Expectations |
ユーザー |
|
提出日時 | 2024-03-21 11:10:22 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 166 ms / 2,000 ms |
コード長 | 356 bytes |
コンパイル時間 | 4,238 ms |
コンパイル使用メモリ | 254,252 KB |
最終ジャッジ日時 | 2025-02-20 10:33:48 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/all>using namespace std;using namespace atcoder;using ll = long long;using ld = long double;int N, M;set<int> st;int main() {cin >> N >> M;for (int i = 0; i < N; i++) {int a; cin >> a;st.insert(a);}cout << st.size() << ' ' << (N == M && st.size() == 1 ? 1: 0) << endl;return 0;}