結果

問題 No.977 アリス仕掛けの摩天楼
ユーザー TomoProgTomoProg
提出日時 2020-02-11 21:24:48
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 261 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 33,920 KB
最終ジャッジ日時 2024-04-08 15:49:00
合計ジャッジ時間 4,262 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
16,256 KB
testcase_01 AC 84 ms
16,256 KB
testcase_02 AC 84 ms
16,256 KB
testcase_03 AC 84 ms
16,256 KB
testcase_04 AC 85 ms
16,256 KB
testcase_05 AC 84 ms
16,256 KB
testcase_06 AC 82 ms
16,256 KB
testcase_07 AC 87 ms
16,256 KB
testcase_08 AC 83 ms
16,256 KB
testcase_09 AC 84 ms
16,256 KB
testcase_10 WA -
testcase_11 AC 83 ms
16,256 KB
testcase_12 AC 84 ms
16,256 KB
testcase_13 WA -
testcase_14 AC 97 ms
17,664 KB
testcase_15 AC 98 ms
17,664 KB
testcase_16 WA -
testcase_17 AC 99 ms
17,664 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 158 ms
24,320 KB
testcase_21 AC 218 ms
29,440 KB
testcase_22 AC 257 ms
32,768 KB
testcase_23 AC 256 ms
33,920 KB
testcase_24 AC 253 ms
33,920 KB
testcase_25 AC 256 ms
33,920 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

island_num = gets.to_i
bridge_num = island_num - 1
island_with_bridge = []
bridge_num.times do
  islands = gets.split
  island_with_bridge << islands[0]
  island_with_bridge << islands[1]
end

puts(island_with_bridge.uniq.length == island_num ? "Bob" : "Alice")
0