結果

問題 No.29 パワーアップ
ユーザー branlymbranlym
提出日時 2019-01-04 06:38:11
言語 Python3
(3.11.2 + numpy 1.24.2 + scipy 1.10.1)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 248 bytes
コンパイル時間 517 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2023-08-15 15:19:50
合計ジャッジ時間 1,736 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,776 KB
testcase_01 AC 14 ms
7,904 KB
testcase_02 AC 13 ms
7,976 KB
testcase_03 AC 13 ms
7,776 KB
testcase_04 AC 13 ms
7,952 KB
testcase_05 AC 14 ms
7,776 KB
testcase_06 AC 13 ms
7,780 KB
testcase_07 AC 13 ms
7,924 KB
testcase_08 AC 13 ms
7,768 KB
testcase_09 AC 13 ms
7,828 KB
testcase_10 AC 13 ms
7,780 KB
testcase_11 AC 13 ms
7,900 KB
testcase_12 AC 14 ms
7,828 KB
testcase_13 AC 13 ms
7,964 KB
testcase_14 AC 15 ms
7,888 KB
testcase_15 AC 13 ms
7,824 KB
testcase_16 AC 14 ms
7,824 KB
testcase_17 AC 14 ms
7,836 KB
testcase_18 AC 13 ms
7,972 KB
testcase_19 AC 14 ms
7,884 KB
testcase_20 AC 14 ms
7,828 KB
testcase_21 AC 14 ms
7,844 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