結果

問題 No.29 パワーアップ
コンテスト
ユーザー 👑 testestest
提出日時 2015-08-05 03:44:14
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 184 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 38,240 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-10-24 20:53:49
合計ジャッジ時間 1,157 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(){
int n,a[10]={},t,i=10,s=0;
scanf("%d",&n);n*=3;
while(n--){scanf("%d",&t);a[t-1]++;}t=0;
while(i--){s+=a[i]/2;t+=a[i]&1;}
printf("%d",s+t/4);
return 0;
}
0