結果

問題 No.3107 Listening
ユーザー nikoro256nikoro256
提出日時 2024-04-01 21:40:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 667 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 85,768 KB
最終ジャッジ日時 2024-04-01 21:41:02
合計ジャッジ時間 25,416 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 37 ms
53,460 KB
testcase_02 AC 34 ms
53,460 KB
testcase_03 AC 374 ms
78,176 KB
testcase_04 AC 126 ms
76,024 KB
testcase_05 AC 143 ms
77,956 KB
testcase_06 AC 140 ms
76,300 KB
testcase_07 AC 265 ms
79,996 KB
testcase_08 AC 176 ms
79,132 KB
testcase_09 AC 255 ms
77,808 KB
testcase_10 AC 393 ms
76,716 KB
testcase_11 AC 494 ms
77,200 KB
testcase_12 AC 179 ms
78,576 KB
testcase_13 AC 381 ms
78,692 KB
testcase_14 AC 216 ms
78,632 KB
testcase_15 AC 196 ms
75,916 KB
testcase_16 AC 125 ms
77,248 KB
testcase_17 AC 146 ms
78,824 KB
testcase_18 AC 104 ms
75,896 KB
testcase_19 AC 292 ms
78,264 KB
testcase_20 AC 340 ms
76,340 KB
testcase_21 AC 547 ms
79,936 KB
testcase_22 AC 413 ms
77,772 KB
testcase_23 AC 506 ms
80,504 KB
testcase_24 AC 503 ms
76,304 KB
testcase_25 AC 323 ms
79,984 KB
testcase_26 AC 138 ms
78,668 KB
testcase_27 AC 267 ms
76,216 KB
testcase_28 AC 448 ms
78,080 KB
testcase_29 AC 489 ms
80,028 KB
testcase_30 AC 221 ms
79,256 KB
testcase_31 AC 273 ms
78,836 KB
testcase_32 AC 411 ms
79,116 KB
testcase_33 AC 658 ms
85,768 KB
testcase_34 AC 638 ms
85,768 KB
testcase_35 AC 631 ms
85,768 KB
testcase_36 AC 667 ms
85,768 KB
testcase_37 AC 642 ms
85,768 KB
testcase_38 AC 622 ms
85,768 KB
testcase_39 AC 664 ms
85,768 KB
testcase_40 AC 659 ms
85,768 KB
testcase_41 AC 620 ms
85,768 KB
testcase_42 AC 635 ms
85,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M=map(int,input().split())
use=[False]*(N+1)
ans=[]
for i in range(M):
    u,v=map(int,input().split())
    if (not use[u]) and (not use[v]):
        use[u]=True
        use[v]=True
        ans.append(i+1)
print(len(ans))
print(*ans,sep='\n')
0