結果

問題 No.1692 Expectations
ユーザー 夜
提出日時 2021-10-01 21:23:39
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 539 bytes
コンパイル時間 832 ms
コンパイル使用メモリ 97,848 KB
実行使用メモリ 12,736 KB
最終ジャッジ日時 2023-09-26 16:18:06
合計ジャッジ時間 2,809 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 1 ms
4,380 KB
testcase_08 AC 2 ms
4,376 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 51 ms
4,376 KB
testcase_11 AC 51 ms
4,380 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 10 ms
4,376 KB
testcase_15 AC 118 ms
8,580 KB
testcase_16 AC 10 ms
4,380 KB
testcase_17 AC 53 ms
6,516 KB
testcase_18 AC 19 ms
4,856 KB
testcase_19 AC 158 ms
9,280 KB
testcase_20 AC 97 ms
11,544 KB
testcase_21 AC 116 ms
12,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <cmath>
#include <stdio.h>
#include <queue>
#include <deque>
#include <cstdio>
#include <set>
#include <map>
#include <bitset>
#include <stack>
#include <cctype>
#include <fstream>
using namespace std;
int main() {
	set<int> st;
	int n, m;
	cin >> n >> m;
	for (int i = 0; i < n; i++) {
		int a;
		cin >> a;
		st.insert(a);
	}
	cout << st.size() << " ";
	if (st.size() == 1) {
		cout << 1 << endl;
	}
	else {
		cout << 0 << endl;
	}
}
0