結果
| 問題 | No.29 パワーアップ |
| コンテスト | |
| ユーザー |
dnish
|
| 提出日時 | 2017-01-02 20:20:54 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 274 bytes |
| 記録 | |
| コンパイル時間 | 851 ms |
| コンパイル使用メモリ | 177,208 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-15 21:47:12 |
| 合計ジャッジ時間 | 2,154 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 22 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int N,a,i,up=0,sum=0;
vector<int> power(10);
cin>>N;
for(i=0;i<3*N;i++){
cin>>a;
power[a]++;
}
for(i=1;i<=10;i++){
up+=(power[i]/2);
if(power[i]%2) sum+=1;
}
up+=sum/4;
cout<<up<<endl;
return 0;
}
dnish