結果

問題 No.1692 Expectations
ユーザー mmn15277198
提出日時 2021-10-03 01:22:29
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 426 bytes
コンパイル時間 930 ms
コンパイル使用メモリ 100,752 KB
実行使用メモリ 13,568 KB
最終ジャッジ日時 2024-07-20 20:28:57
合計ジャッジ時間 3,086 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 17 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <queue>
#include <map>
#include <cmath>
#include <iomanip>
using namespace std;
int main() {
  int n , m;
  cin >> n >> m;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int ans = 0;
  map<int,int> mp;
  for (int i = 0; i < n; i++) {
    mp[a[i]]++;
  }
  cout << mp.size() << " " << 0 << endl;
  return 0;
}
0