結果

問題 No.3107 Listening
ユーザー titiatitia
提出日時 2024-04-03 01:13:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 322 bytes
コンパイル時間 1,999 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 211,200 KB
最終ジャッジ日時 2024-04-03 01:15:01
合計ジャッジ時間 66,752 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
9,728 KB
testcase_01 AC 32 ms
9,728 KB
testcase_02 AC 32 ms
9,728 KB
testcase_03 AC 1,417 ms
137,984 KB
testcase_04 AC 248 ms
33,280 KB
testcase_05 AC 269 ms
36,736 KB
testcase_06 AC 274 ms
39,424 KB
testcase_07 AC 736 ms
80,512 KB
testcase_08 AC 401 ms
48,384 KB
testcase_09 AC 717 ms
81,792 KB
testcase_10 AC 1,420 ms
149,760 KB
testcase_11 AC 1,916 ms
193,536 KB
testcase_12 AC 405 ms
51,456 KB
testcase_13 AC 1,314 ms
136,320 KB
testcase_14 AC 560 ms
64,768 KB
testcase_15 AC 554 ms
66,176 KB
testcase_16 AC 231 ms
31,744 KB
testcase_17 AC 274 ms
33,024 KB
testcase_18 AC 143 ms
24,320 KB
testcase_19 AC 943 ms
101,888 KB
testcase_20 AC 1,266 ms
126,592 KB
testcase_21 TLE -
testcase_22 AC 1,572 ms
155,648 KB
testcase_23 AC 1,863 ms
185,856 KB
testcase_24 TLE -
testcase_25 AC 1,009 ms
103,680 KB
testcase_26 AC 250 ms
33,408 KB
testcase_27 AC 853 ms
95,616 KB
testcase_28 AC 1,714 ms
169,472 KB
testcase_29 AC 1,757 ms
169,856 KB
testcase_30 AC 575 ms
66,688 KB
testcase_31 AC 798 ms
86,016 KB
testcase_32 AC 1,430 ms
149,120 KB
testcase_33 TLE -
testcase_34 TLE -
testcase_35 TLE -
testcase_36 TLE -
testcase_37 TLE -
testcase_38 TLE -
testcase_39 TLE -
testcase_40 TLE -
testcase_41 TLE -
testcase_42 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0