結果

問題 No.3107 Listening
ユーザー miya145592miya145592
提出日時 2024-04-02 00:59:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 808 ms / 2,000 ms
コード長 331 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 101,196 KB
最終ジャッジ日時 2024-04-02 01:00:02
合計ジャッジ時間 28,638 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,460 KB
testcase_01 AC 39 ms
53,460 KB
testcase_02 AC 39 ms
53,460 KB
testcase_03 AC 362 ms
83,608 KB
testcase_04 AC 106 ms
77,488 KB
testcase_05 AC 136 ms
83,392 KB
testcase_06 AC 119 ms
78,028 KB
testcase_07 AC 275 ms
87,220 KB
testcase_08 AC 143 ms
85,588 KB
testcase_09 AC 174 ms
81,576 KB
testcase_10 AC 258 ms
78,700 KB
testcase_11 AC 344 ms
80,332 KB
testcase_12 AC 176 ms
84,776 KB
testcase_13 AC 304 ms
83,612 KB
testcase_14 AC 180 ms
85,984 KB
testcase_15 AC 130 ms
77,236 KB
testcase_16 AC 99 ms
80,380 KB
testcase_17 AC 116 ms
85,024 KB
testcase_18 AC 78 ms
77,232 KB
testcase_19 AC 206 ms
82,672 KB
testcase_20 AC 248 ms
78,704 KB
testcase_21 AC 376 ms
87,160 KB
testcase_22 AC 277 ms
81,160 KB
testcase_23 AC 437 ms
88,112 KB
testcase_24 AC 345 ms
78,156 KB
testcase_25 AC 305 ms
87,336 KB
testcase_26 AC 149 ms
84,484 KB
testcase_27 AC 202 ms
78,708 KB
testcase_28 AC 383 ms
82,108 KB
testcase_29 AC 482 ms
86,612 KB
testcase_30 AC 209 ms
85,840 KB
testcase_31 AC 241 ms
85,548 KB
testcase_32 AC 318 ms
84,292 KB
testcase_33 AC 737 ms
101,068 KB
testcase_34 AC 709 ms
101,068 KB
testcase_35 AC 723 ms
101,064 KB
testcase_36 AC 727 ms
101,068 KB
testcase_37 AC 763 ms
101,068 KB
testcase_38 AC 808 ms
101,068 KB
testcase_39 AC 634 ms
101,196 KB
testcase_40 AC 649 ms
101,068 KB
testcase_41 AC 545 ms
101,068 KB
testcase_42 AC 516 ms
101,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
N, M = map(int, input().split())
G = [[] for _ in range(N)]
ans = []
for i in range(M):
    u, v = map(int, input().split())
    u-=1
    v-=1
    if len(G[u])==0 and len(G[v])==0:
        G[u].append(v)
        G[v].append(u)
        ans.append(i+1)
print(len(ans))
for a in ans:
    print(a)
0