結果

問題 No.1692 Expectations
ユーザー Kome_soudouKome_soudou
提出日時 2022-05-01 22:28:33
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 323 bytes
コンパイル時間 1,559 ms
コンパイル使用メモリ 170,576 KB
実行使用メモリ 13,152 KB
最終ジャッジ日時 2023-09-13 15:10:37
合計ジャッジ時間 4,064 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 WA -
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 WA -
testcase_09 AC 2 ms
4,376 KB
testcase_10 WA -
testcase_11 AC 51 ms
4,380 KB
testcase_12 AC 2 ms
4,380 KB
testcase_13 AC 2 ms
4,376 KB
testcase_14 AC 10 ms
4,376 KB
testcase_15 AC 90 ms
8,792 KB
testcase_16 AC 10 ms
4,380 KB
testcase_17 AC 46 ms
6,516 KB
testcase_18 AC 18 ms
4,844 KB
testcase_19 AC 109 ms
9,620 KB
testcase_20 AC 93 ms
12,000 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
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];
	
	set<int> st;
	for(int i = 0; i < N; i++) st.insert(A[i]);
	cout << st.size() << ' ';
	
	if(N == M && st.size() == M) cout << 1 << endl;
	else cout << 0 << endl;
	return 0;
}
0