結果
問題 | No.8107 Listening |
ユーザー |
![]() |
提出日時 | 2024-04-03 01:13:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 322 bytes |
コンパイル時間 | 694 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 217,216 KB |
最終ジャッジ日時 | 2024-09-30 23:31:31 |
合計ジャッジ時間 | 70,825 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 TLE * 16 |
ソースコード
import sys input = sys.stdin.readline N,M=map(int,input().split()) EDGE=[list(map(int,input().split())) for i in range(M)] USE=[0]*(N+1) ANS=[] for i in range(M): x,y = EDGE[i] if USE[x]==0 and USE[y]==0: USE[x]=1 USE[y]=1 ANS.append(i+1) print(len(ANS)) for ans in ANS: print(ans)