結果

問題 No.3107 Listening
ユーザー cielciel
提出日時 2024-04-18 12:28:34
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,610 ms / 2,000 ms
コード長 129 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 22,656 KB
最終ジャッジ日時 2024-04-18 12:29:28
合計ジャッジ時間 48,840 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
12,288 KB
testcase_01 AC 73 ms
12,160 KB
testcase_02 AC 79 ms
12,160 KB
testcase_03 AC 936 ms
15,232 KB
testcase_04 AC 244 ms
12,672 KB
testcase_05 AC 301 ms
15,360 KB
testcase_06 AC 276 ms
13,312 KB
testcase_07 AC 579 ms
18,816 KB
testcase_08 AC 356 ms
18,176 KB
testcase_09 AC 534 ms
14,848 KB
testcase_10 AC 982 ms
13,440 KB
testcase_11 AC 1,251 ms
14,848 KB
testcase_12 AC 372 ms
18,176 KB
testcase_13 AC 943 ms
15,488 KB
testcase_14 AC 457 ms
18,432 KB
testcase_15 AC 431 ms
12,800 KB
testcase_16 AC 230 ms
14,848 KB
testcase_17 AC 251 ms
18,048 KB
testcase_18 AC 174 ms
12,672 KB
testcase_19 AC 684 ms
15,232 KB
testcase_20 AC 851 ms
13,312 KB
testcase_21 AC 1,380 ms
18,432 KB
testcase_22 AC 1,030 ms
14,976 KB
testcase_23 AC 1,295 ms
18,688 KB
testcase_24 AC 1,291 ms
13,312 KB
testcase_25 AC 701 ms
18,432 KB
testcase_26 AC 248 ms
15,488 KB
testcase_27 AC 616 ms
13,440 KB
testcase_28 AC 1,085 ms
15,232 KB
testcase_29 AC 1,170 ms
18,432 KB
testcase_30 AC 486 ms
18,304 KB
testcase_31 AC 588 ms
18,432 KB
testcase_32 AC 994 ms
15,232 KB
testcase_33 AC 1,546 ms
22,656 KB
testcase_34 AC 1,565 ms
22,272 KB
testcase_35 AC 1,522 ms
22,528 KB
testcase_36 AC 1,522 ms
22,400 KB
testcase_37 AC 1,530 ms
22,656 KB
testcase_38 AC 1,517 ms
22,528 KB
testcase_39 AC 1,595 ms
22,528 KB
testcase_40 AC 1,610 ms
22,400 KB
testcase_41 AC 1,526 ms
22,528 KB
testcase_42 AC 1,603 ms
22,400 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n,m=gets.split.map &:to_i
r=[]
h={}
(1..m).each{|i|
x,y=gets.split.map &:to_i
(h[x]=h[y]=1;r<<i)if !h[x]&&!h[y]
}
p r.size
puts r
0