結果
問題 | No.1692 Expectations |
ユーザー | ゆにぽけ |
提出日時 | 2023-10-28 18:58:33 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 689 bytes |
コンパイル時間 | 1,433 ms |
コンパイル使用メモリ | 132,744 KB |
実行使用メモリ | 4,348 KB |
最終ジャッジ日時 | 2023-10-28 18:58:37 |
合計ジャッジ時間 | 3,529 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
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 | 2 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 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 2 ms
4,348 KB |
testcase_10 | WA | - |
testcase_11 | AC | 21 ms
4,348 KB |
testcase_12 | AC | 2 ms
4,348 KB |
testcase_13 | AC | 2 ms
4,348 KB |
testcase_14 | AC | 4 ms
4,348 KB |
testcase_15 | AC | 32 ms
4,348 KB |
testcase_16 | AC | 4 ms
4,348 KB |
testcase_17 | AC | 17 ms
4,348 KB |
testcase_18 | AC | 7 ms
4,348 KB |
testcase_19 | AC | 39 ms
4,348 KB |
testcase_20 | AC | 21 ms
4,348 KB |
testcase_21 | AC | 24 ms
4,348 KB |
ソースコード
#include<iostream> #include<vector> #include<algorithm> #include<cstring> #include<cassert> #include<cmath> #include<ctime> #include<iomanip> #include<numeric> #include<stack> #include<queue> #include<map> #include<unordered_map> #include<set> #include<unordered_set> #include<bitset> #include<random> #include<functional> #include<utility> using namespace std; int N,M; void solve() { cin >> N >> M; vector<int> A(N); for(int i = 0;i < N;i++) cin >> A[i]; sort(A.begin(),A.end()); A.erase(unique(A.begin(),A.end()),A.end()); cout << A.size() << " " << 0 << endl; } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int tt = 1; /* cin >> tt; */ while(tt--) solve(); }