結果

問題 No.29 パワーアップ
ユーザー rocoderrocoder
提出日時 2017-06-17 17:47:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 258 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 9,984 KB
最終ジャッジ日時 2024-04-08 20:30:37
合計ジャッジ時間 1,626 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,856 KB
testcase_01 AC 31 ms
9,856 KB
testcase_02 AC 30 ms
9,856 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 28 ms
9,856 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 29 ms
9,856 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
a=[[int(i) for i in input().split()] for i in range(N)]
ite=[0]*11
for i in range(N):
    for j in range(3):
 #       print(ite[a[i][j]])
        ite[a[i][j]]+=1
p=0
r=0
for i in range(10):
    p+=ite[i]//2
    r+=ite[i]%2
r//=4
p+=r
print(p)
0