結果
| 問題 |
No.586 ダブルブッキング
|
| コンテスト | |
| ユーザー |
joe_tb_joe
|
| 提出日時 | 2017-11-23 20:06:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 566 bytes |
| コンパイル時間 | 775 ms |
| コンパイル使用メモリ | 60,420 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-27 05:57:08 |
| 合計ジャッジ時間 | 882 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 5 |
ソースコード
#include <iostream>
#include <vector>
using namespace std;
int main(){
int a, b, n;
vector<int> record;
int count = 0;
int judge = 0;
cin >> a;
cin >> b;
cin >> n;
int c[n];
for(int i = 0; i < n; i++){
cin >> c[i];
}
record.push_back(c[0]);
for(int i = 0; i < n; i++){
for(int j = 0; j < record.size(); j++){
if(c[i] == record[j]){
count++;
break;
}else{
judge++;
}
}
if(judge != record.size()){
record.push_back(c[i]);
}
judge = 0;
}
cout << count << endl;
return 0;
}
joe_tb_joe