結果
| 問題 | No.3029 オイラー標数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-06 23:31:31 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 247 ms / 2,000 ms |
| + 311µs | |
| コード長 | 239 bytes |
| 記録 | |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 95,464 KB |
| 実行使用メモリ | 150,860 KB |
| 最終ジャッジ日時 | 2026-07-11 06:35:57 |
| 合計ジャッジ時間 | 8,290 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
Q = int(input())
V = set()
E = set()
F = set()
for _ in range(Q):
a,b,c = map(int,input().split())
V.add(a)
V.add(b)
V.add(c)
E.add((a,b))
E.add((a,c))
E.add((b,c))
F.add((a,b,c))
print(len(V)-len(E)+len(F))