結果
問題 |
No.1674 Introduction to XOR
|
ユーザー |
![]() |
提出日時 | 2021-12-05 08:47:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 342 bytes |
コンパイル時間 | 677 ms |
コンパイル使用メモリ | 76,568 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-07 07:03:29 |
合計ジャッジ時間 | 1,509 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 21 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main(){ int n,k;cin>>n>>k; vector<int> A(n); for(int i = 0; n > i; i++){ cin>>A[i]; } sort(A.begin(),A.end()); A.erase(unique(A.begin(),A.end()),A.end()); cout << A.size() << " " << (A.size()==1 && n==k ? 1 : 0) << endl; }