結果

問題 No.1692 Expectations
ユーザー yansi819yansi819
提出日時 2024-03-21 11:10:22
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 144 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 6,098 ms
コンパイル使用メモリ 266,916 KB
実行使用メモリ 12,928 KB
最終ジャッジ日時 2024-03-21 11:10:32
合計ジャッジ時間 7,210 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 1 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 2 ms
6,676 KB
testcase_04 AC 2 ms
6,676 KB
testcase_05 AC 2 ms
6,676 KB
testcase_06 AC 2 ms
6,676 KB
testcase_07 AC 2 ms
6,676 KB
testcase_08 AC 2 ms
6,676 KB
testcase_09 AC 2 ms
6,676 KB
testcase_10 AC 56 ms
6,676 KB
testcase_11 AC 54 ms
6,676 KB
testcase_12 AC 2 ms
6,676 KB
testcase_13 AC 1 ms
6,676 KB
testcase_14 AC 11 ms
6,676 KB
testcase_15 AC 113 ms
8,832 KB
testcase_16 AC 11 ms
6,676 KB
testcase_17 AC 68 ms
6,784 KB
testcase_18 AC 20 ms
6,676 KB
testcase_19 AC 144 ms
9,472 KB
testcase_20 AC 100 ms
11,648 KB
testcase_21 AC 116 ms
12,928 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0