結果
問題 | No.29 パワーアップ |
ユーザー |
|
提出日時 | 2016-10-28 13:28:32 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 251 bytes |
コンパイル時間 | 72 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2024-11-24 05:10:19 |
合計ジャッジ時間 | 958 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#yuki_029 n=int(raw_input()) t=[] for i in xrange(n): s=map(int,raw_input().split()) t+=s u=[0 for i in xrange(11)] for i in xrange(1,11): u[i]= t.count(i) res1=0 res2=0 for i in xrange(1,11): res1+=u[i]/2 res2+=u[i]%2 res=res1+res2/4 print res