結果
| 問題 |
No.10 +か×か
|
| コンテスト | |
| ユーザー |
matsu7874
|
| 提出日時 | 2015-08-28 22:58:43 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 263 bytes |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-18 15:22:10 |
| 合計ジャッジ時間 | 1,074 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 12 |
ソースコード
N = int(input())
item = [0 for i in range(10)]
for i in range(N):
a,b,c = [int(x)-1 for x in input().split()]
item[a] += 1
item[b] += 1
item[c] += 1
cnt = 0
for i in range(10):
cnt += item[i]//2
item[i] %= 2
cnt += sum(item)//4
print(cnt)
matsu7874