結果

問題 No.1692 Expectations
ユーザー icchiposticchipost
提出日時 2021-10-22 18:26:22
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 399 bytes
コンパイル時間 1,814 ms
コンパイル使用メモリ 173,236 KB
実行使用メモリ 13,624 KB
最終ジャッジ日時 2023-10-24 05:10:34
合計ジャッジ時間 3,815 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 3 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 WA -
testcase_09 AC 2 ms
4,348 KB
testcase_10 WA -
testcase_11 AC 54 ms
4,348 KB
testcase_12 AC 2 ms
4,348 KB
testcase_13 AC 2 ms
4,348 KB
testcase_14 AC 11 ms
4,516 KB
testcase_15 AC 94 ms
9,136 KB
testcase_16 AC 11 ms
4,524 KB
testcase_17 AC 48 ms
6,860 KB
testcase_18 AC 19 ms
5,128 KB
testcase_19 AC 114 ms
9,928 KB
testcase_20 AC 96 ms
12,040 KB
testcase_21 AC 114 ms
13,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using pii = pair<int, int>;

int main() {
  int n, m;
  cin >> n >> m;
  vector<int> a(n);
  rep(i, n) cin >> a[i];
  if (m == 1) {
    cout << 1 << " " << 1 << endl;
    return 0;
  }
  set<int> st;
  rep(i, n) st.insert(a[i]);
  cout << st.size() << " " << 0 << endl;
  return 0;
}
0