結果

問題 No.586 ダブルブッキング
ユーザー CPpointCPpoint
提出日時 2017-11-03 22:33:48
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 431 ms
コンパイル使用メモリ 53,372 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-02 05:06:28
合計ジャッジ時間 988 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 2 ms
5,376 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 2 ms
5,376 KB
testcase_07 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
	int p1, p2, n, r[1000];
	int p;
	cin >> p1 >> p2 >> n;
	p = p1 + p2;
	int count = 0;
	for (int i = 0; i != n; i++) {
		cin >> r[i];
		for (int j = 0; j != i; j++) {
			if (r[i] == r[j]){
				count += 1;
				break;
			}
		}
	}
	cout << count << '\n';

	return 0;
}
0