結果
問題 | No.29 パワーアップ |
ユーザー |
![]() |
提出日時 | 2017-09-26 11:48:42 |
言語 | Python3 (3.10.1 + numpy 1.22.3 + scipy 1.8.0) |
結果 |
AC
|
実行時間 | 18 ms / 5,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 68 ms |
使用メモリ | 7,852 KB |
最終ジャッジ日時 | 2022-12-16 11:32:08 |
合計ジャッジ時間 | 1,754 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | AC | 18 ms
7,808 KB |
testcase_01 | AC | 16 ms
7,708 KB |
testcase_02 | AC | 16 ms
7,632 KB |
testcase_03 | AC | 16 ms
7,808 KB |
testcase_04 | AC | 16 ms
7,812 KB |
testcase_05 | AC | 16 ms
7,816 KB |
testcase_06 | AC | 16 ms
7,752 KB |
testcase_07 | AC | 16 ms
7,816 KB |
testcase_08 | AC | 16 ms
7,788 KB |
testcase_09 | AC | 16 ms
7,812 KB |
testcase_10 | AC | 17 ms
7,704 KB |
testcase_11 | AC | 17 ms
7,620 KB |
testcase_12 | AC | 16 ms
7,732 KB |
testcase_13 | AC | 16 ms
7,700 KB |
testcase_14 | AC | 17 ms
7,852 KB |
testcase_15 | AC | 16 ms
7,808 KB |
testcase_16 | AC | 17 ms
7,748 KB |
testcase_17 | AC | 16 ms
7,652 KB |
testcase_18 | AC | 16 ms
7,816 KB |
testcase_19 | AC | 17 ms
7,804 KB |
testcase_20 | AC | 16 ms
7,648 KB |
testcase_21 | AC | 16 ms
7,628 KB |
ソースコード
import math N = int(input()) li = [] match = 0 other = 0 for i in range(N): l = list(map(int, input().split())) li.extend(l) for i in range(1,11): count = li.count(i) if count >= 2: match += math.floor(count / 2) other += count % 2 else: other += count print(int(match + (other / 4)))