結果

問題 No.29 パワーアップ
ユーザー osrgy01
提出日時 2020-12-26 09:50:53
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 31 ms / 5,000 ms
コード長 239 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-09-24 10:26:09
合計ジャッジ時間 1,740 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

cnt=[];chk1=chk2=0
x=sum([[*map(int,input().split())] for _ in range(int(input()))],[])
for i in set(x):
    cnt.append(x.count(i))
for i in cnt:
    while i>=2:
        chk1+=1
        i-=2
    if i==1:
        chk2+=1
print(chk1+chk2//4)
0