結果

問題 No.3107 Listening
ユーザー hiryuNhiryuN
提出日時 2024-04-01 21:49:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 721 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 98,164 KB
最終ジャッジ日時 2024-04-01 21:50:17
合計ジャッジ時間 27,151 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,460 KB
testcase_01 AC 34 ms
53,460 KB
testcase_02 AC 34 ms
53,460 KB
testcase_03 AC 461 ms
82,456 KB
testcase_04 AC 130 ms
76,916 KB
testcase_05 AC 154 ms
81,652 KB
testcase_06 AC 148 ms
77,428 KB
testcase_07 AC 286 ms
85,300 KB
testcase_08 AC 211 ms
83,380 KB
testcase_09 AC 269 ms
80,748 KB
testcase_10 AC 418 ms
77,940 KB
testcase_11 AC 582 ms
78,568 KB
testcase_12 AC 193 ms
82,856 KB
testcase_13 AC 420 ms
82,584 KB
testcase_14 AC 231 ms
83,168 KB
testcase_15 AC 209 ms
76,928 KB
testcase_16 AC 133 ms
78,856 KB
testcase_17 AC 146 ms
82,932 KB
testcase_18 AC 110 ms
76,916 KB
testcase_19 AC 337 ms
81,404 KB
testcase_20 AC 365 ms
77,940 KB
testcase_21 AC 661 ms
84,692 KB
testcase_22 AC 461 ms
79,524 KB
testcase_23 AC 603 ms
86,804 KB
testcase_24 AC 529 ms
77,428 KB
testcase_25 AC 347 ms
84,884 KB
testcase_26 AC 144 ms
82,668 KB
testcase_27 AC 287 ms
77,812 KB
testcase_28 AC 532 ms
81,068 KB
testcase_29 AC 530 ms
85,804 KB
testcase_30 AC 238 ms
84,148 KB
testcase_31 AC 294 ms
83,988 KB
testcase_32 AC 469 ms
83,644 KB
testcase_33 AC 721 ms
98,160 KB
testcase_34 AC 714 ms
98,160 KB
testcase_35 AC 697 ms
98,160 KB
testcase_36 AC 703 ms
98,160 KB
testcase_37 AC 719 ms
98,164 KB
testcase_38 AC 716 ms
98,160 KB
testcase_39 AC 692 ms
98,160 KB
testcase_40 AC 690 ms
98,156 KB
testcase_41 AC 715 ms
98,160 KB
testcase_42 AC 719 ms
98,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m=map(int,input().split())
A=set()
Ans=[]
for i in range(1,m+1):
	a,b=map(int,input().split())
	if not a in A and not b in A:
		Ans.append(i)
		A.add(a)
		A.add(b)
print(len(Ans))
for i in Ans:
	print(i)
	
0