結果
問題 | No.29 パワーアップ |
ユーザー |
|
提出日時 | 2018-12-10 15:24:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 275 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-16 15:51:05 |
合計ジャッジ時間 | 1,822 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
n = int(input()) l = [0] * 11 for i in range(n): m = list(map(int, input().split())) for j in m: l[j] += 1 l2 = [] x = 0 for i in l: if i >= 2: x += i//2 l2.append(i - (i//2) * 2) else: l2.append(i) print(x + l2.count(1)//4)