結果
| 問題 |
No.29 パワーアップ
|
| コンテスト | |
| ユーザー |
LV3zJigVW57oPGy
|
| 提出日時 | 2022-11-08 18:50:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 513 bytes |
| コンパイル時間 | 1,155 ms |
| コンパイル使用メモリ | 158,972 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-10-24 21:18:48 |
| 合計ジャッジ時間 | 1,882 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <ios>
#include <iomanip>
#include <iostream>
#include <string>
#include <algorithm>
int main(){
int a;
int count3=0;
int count2=0;
cin >>a;
a *=3;
vector<int> vec(a);
for(int i=0;i<a;i++){
cin >> vec.at(i);
}
for(int k=0;k<10;k++){
int count1=0;
for(int i=0;i<a;i++){
if(k==vec.at(i)){
count1 ++;
}
}
count2=count2+count1 /2;
count3=count3+count1%2;
}
cout << count2+count3/4;
}
LV3zJigVW57oPGy