結果

問題 No.3107 Listening
ユーザー cielciel
提出日時 2024-04-18 12:26:18
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,825 ms / 2,000 ms
コード長 129 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 22,784 KB
最終ジャッジ日時 2024-04-18 12:27:17
合計ジャッジ時間 55,924 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
12,160 KB
testcase_01 AC 88 ms
12,288 KB
testcase_02 AC 91 ms
12,160 KB
testcase_03 AC 1,094 ms
15,232 KB
testcase_04 AC 263 ms
12,800 KB
testcase_05 AC 304 ms
15,232 KB
testcase_06 AC 300 ms
13,312 KB
testcase_07 AC 680 ms
18,560 KB
testcase_08 AC 405 ms
18,176 KB
testcase_09 AC 647 ms
14,848 KB
testcase_10 AC 1,096 ms
13,440 KB
testcase_11 AC 1,439 ms
14,848 KB
testcase_12 AC 441 ms
18,176 KB
testcase_13 AC 1,065 ms
15,232 KB
testcase_14 AC 527 ms
18,304 KB
testcase_15 AC 493 ms
12,928 KB
testcase_16 AC 256 ms
14,720 KB
testcase_17 AC 280 ms
18,176 KB
testcase_18 AC 191 ms
12,800 KB
testcase_19 AC 811 ms
15,360 KB
testcase_20 AC 914 ms
13,440 KB
testcase_21 AC 1,595 ms
18,560 KB
testcase_22 AC 1,199 ms
14,848 KB
testcase_23 AC 1,507 ms
18,944 KB
testcase_24 AC 1,464 ms
13,312 KB
testcase_25 AC 822 ms
18,688 KB
testcase_26 AC 272 ms
15,360 KB
testcase_27 AC 676 ms
13,312 KB
testcase_28 AC 1,272 ms
14,976 KB
testcase_29 AC 1,311 ms
18,560 KB
testcase_30 AC 523 ms
18,176 KB
testcase_31 AC 696 ms
18,176 KB
testcase_32 AC 1,119 ms
15,488 KB
testcase_33 AC 1,825 ms
22,528 KB
testcase_34 AC 1,767 ms
22,784 KB
testcase_35 AC 1,781 ms
22,528 KB
testcase_36 AC 1,766 ms
22,400 KB
testcase_37 AC 1,760 ms
22,656 KB
testcase_38 AC 1,811 ms
22,528 KB
testcase_39 AC 1,760 ms
22,528 KB
testcase_40 AC 1,783 ms
22,400 KB
testcase_41 AC 1,742 ms
22,400 KB
testcase_42 AC 1,757 ms
22,528 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