結果

問題 No.3107 Listening
ユーザー harurunharurun
提出日時 2024-01-05 14:50:13
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 661 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 82,176 KB
最終ジャッジ日時 2024-04-01 20:51:28
合計ジャッジ時間 24,986 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,460 KB
testcase_01 AC 36 ms
53,460 KB
testcase_02 AC 36 ms
53,460 KB
testcase_03 AC 399 ms
77,540 KB
testcase_04 AC 132 ms
76,160 KB
testcase_05 AC 144 ms
77,304 KB
testcase_06 AC 146 ms
76,432 KB
testcase_07 AC 256 ms
78,332 KB
testcase_08 AC 171 ms
77,836 KB
testcase_09 AC 243 ms
77,044 KB
testcase_10 AC 394 ms
76,592 KB
testcase_11 AC 491 ms
76,948 KB
testcase_12 AC 181 ms
77,792 KB
testcase_13 AC 376 ms
77,672 KB
testcase_14 AC 224 ms
77,848 KB
testcase_15 AC 199 ms
76,288 KB
testcase_16 AC 129 ms
76,740 KB
testcase_17 AC 141 ms
77,548 KB
testcase_18 AC 112 ms
76,032 KB
testcase_19 AC 295 ms
77,500 KB
testcase_20 AC 338 ms
76,472 KB
testcase_21 AC 555 ms
78,384 KB
testcase_22 AC 410 ms
77,008 KB
testcase_23 AC 506 ms
78,952 KB
testcase_24 AC 506 ms
76,436 KB
testcase_25 AC 309 ms
78,304 KB
testcase_26 AC 135 ms
77,500 KB
testcase_27 AC 275 ms
76,476 KB
testcase_28 AC 444 ms
77,188 KB
testcase_29 AC 466 ms
78,476 KB
testcase_30 AC 215 ms
78,088 KB
testcase_31 AC 260 ms
78,052 KB
testcase_32 AC 403 ms
77,840 KB
testcase_33 AC 624 ms
82,176 KB
testcase_34 AC 622 ms
82,176 KB
testcase_35 AC 625 ms
82,176 KB
testcase_36 AC 630 ms
82,176 KB
testcase_37 AC 615 ms
82,176 KB
testcase_38 AC 639 ms
82,176 KB
testcase_39 AC 623 ms
82,176 KB
testcase_40 AC 624 ms
82,176 KB
testcase_41 AC 661 ms
82,176 KB
testcase_42 AC 630 ms
82,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  N,M=map(int,input().split())
  V=[0]*N
  ans=[]
  for i in range(M):
    u,v=map(int,input().split())
    u-=1
    v-=1
    if V[u]==0 and V[v]==0:
      V[u]=1
      V[v]=1
      ans.append(i+1)
  print(len(ans))
  for i in ans:
    print(i)
  return

main()
0