結果
| 問題 |
No.2910 単体ホモロジー入門
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-09-09 17:41:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 227 bytes |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 82,308 KB |
| 実行使用メモリ | 53,688 KB |
| 最終ジャッジ日時 | 2024-06-27 10:20:50 |
| 合計ジャッジ時間 | 3,074 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 47 |
ソースコード
N,M=map(int,input().split()) c=[0]*N for m in range(M): v,w=map(int,input().split()) c[v]+=1 c[w]+=1 S=set(map(int,input().split())) T=set() for n in range(N): if(c[n]>1):T.add(n) print(["No","Yes"][M>4or len(T)>2and S!=T])