結果

問題 No.29 パワーアップ
ユーザー branlymbranlym
提出日時 2019-01-04 06:38:11
言語 Python3
(3.11.2 + numpy 1.24.2 + scipy 1.10.1)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 248 bytes
コンパイル時間 67 ms
実行使用メモリ 7,732 KB
最終ジャッジ日時 2022-12-28 20:46:33
合計ジャッジ時間 1,765 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,588 KB
testcase_01 AC 15 ms
7,708 KB
testcase_02 AC 15 ms
7,628 KB
testcase_03 AC 15 ms
7,572 KB
testcase_04 AC 15 ms
7,656 KB
testcase_05 AC 15 ms
7,664 KB
testcase_06 AC 15 ms
7,540 KB
testcase_07 AC 15 ms
7,624 KB
testcase_08 AC 15 ms
7,540 KB
testcase_09 AC 16 ms
7,696 KB
testcase_10 AC 16 ms
7,556 KB
testcase_11 AC 16 ms
7,708 KB
testcase_12 AC 15 ms
7,576 KB
testcase_13 AC 15 ms
7,652 KB
testcase_14 AC 16 ms
7,660 KB
testcase_15 AC 16 ms
7,692 KB
testcase_16 AC 16 ms
7,732 KB
testcase_17 AC 16 ms
7,536 KB
testcase_18 AC 15 ms
7,712 KB
testcase_19 AC 16 ms
7,576 KB
testcase_20 AC 17 ms
7,660 KB
testcase_21 AC 15 ms
7,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def aux(x,l):
    if(x in l):
        l.remove(x)
        return 1
    else:
        l.append(x)
        return 0

n=int(input())
l=[]
r=0
for _ in range(n):
    a,b,c=map(int,input().split())
    r=r+aux(a,l)+aux(b,l)+aux(c,l)
print(r+(len(l)//4))
0