結果
問題 | No.29 パワーアップ |
ユーザー |
![]() |
提出日時 | 2015-10-01 23:13:07 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 5,000 ms |
コード長 | 369 bytes |
コンパイル時間 | 71 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-07-19 19:00:38 |
合計ジャッジ時間 | 1,352 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
N = int(input()) I = [list(map(int, input().split())) for x in range(N)] D = {} S = 0 for n in range(N): for m in range(3): if I[n][m] not in D: D[I[n][m]] = 1 elif D[I[n][m]] == 1: D[I[n][m]] = 0 S += 1 else: D[I[n][m]] = 1 for x in D.values(): if x == 1: S += 1/4 print(int(S))