結果

問題 No.10 +か×か
ユーザー matsu7874matsu7874
提出日時 2015-08-28 22:58:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 263 bytes
コンパイル時間 1,237 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 7,928 KB
最終ジャッジ日時 2023-09-25 19:26:23
合計ジャッジ時間 1,206 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
item = [0 for i in range(10)]
for i in range(N):
    a,b,c = [int(x)-1 for x in input().split()]
    item[a] += 1
    item[b] += 1
    item[c] += 1
cnt = 0
for i in range(10):
    cnt += item[i]//2
    item[i] %= 2
cnt += sum(item)//4
print(cnt)
0