結果
問題 |
No.1692 Expectations
|
ユーザー |
|
提出日時 | 2022-03-02 20:10:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 335 bytes |
コンパイル時間 | 1,720 ms |
コンパイル使用メモリ | 174,352 KB |
実行使用メモリ | 13,568 KB |
最終ジャッジ日時 | 2024-07-16 11:00:51 |
合計ジャッジ時間 | 3,744 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 WA * 3 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int N,M; cin>>N>>M; int A[202020]; for(int i=1;i<=N;i++)cin>>A[i]; map<int, int> Map; for(int i=1;i<=N;i++){ Map[A[i]]++; } int count=0; for(int i=1;i<=N;i++){ if(Map[A[i]]>0){ count++; Map[A[i]]=0; } } cout<<count<<" "<<0; }