結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
12,288 KB
testcase_01 AC 83 ms
12,160 KB
testcase_02 AC 80 ms
12,160 KB
testcase_03 AC 1,037 ms
15,488 KB
testcase_04 AC 257 ms
13,056 KB
testcase_05 AC 300 ms
15,360 KB
testcase_06 AC 295 ms
13,184 KB
testcase_07 AC 632 ms
18,688 KB
testcase_08 AC 395 ms
18,176 KB
testcase_09 AC 597 ms
14,976 KB
testcase_10 AC 1,065 ms
13,440 KB
testcase_11 AC 1,342 ms
14,848 KB
testcase_12 AC 407 ms
18,304 KB
testcase_13 AC 1,007 ms
15,488 KB
testcase_14 AC 518 ms
18,560 KB
testcase_15 AC 468 ms
12,800 KB
testcase_16 AC 247 ms
14,848 KB
testcase_17 AC 271 ms
18,304 KB
testcase_18 AC 187 ms
12,800 KB
testcase_19 AC 790 ms
15,232 KB
testcase_20 AC 925 ms
13,568 KB
testcase_21 AC 1,557 ms
18,432 KB
testcase_22 AC 1,138 ms
14,848 KB
testcase_23 AC 1,411 ms
18,560 KB
testcase_24 AC 1,421 ms
13,312 KB
testcase_25 AC 822 ms
18,432 KB
testcase_26 AC 274 ms
15,360 KB
testcase_27 AC 692 ms
13,312 KB
testcase_28 AC 1,352 ms
14,976 KB
testcase_29 AC 1,320 ms
18,560 KB
testcase_30 AC 517 ms
18,304 KB
testcase_31 AC 679 ms
18,304 KB
testcase_32 AC 1,109 ms
15,360 KB
testcase_33 AC 1,818 ms
22,784 KB
testcase_34 AC 1,733 ms
22,784 KB
testcase_35 AC 1,739 ms
22,400 KB
testcase_36 AC 1,833 ms
22,528 KB
testcase_37 AC 1,717 ms
22,528 KB
testcase_38 AC 1,730 ms
22,528 KB
testcase_39 AC 1,857 ms
22,400 KB
testcase_40 AC 1,742 ms
22,656 KB
testcase_41 AC 1,731 ms
22,400 KB
testcase_42 AC 1,746 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