結果
問題 | No.977 アリス仕掛けの摩天楼 |
ユーザー | TomoProg |
提出日時 | 2020-02-11 21:22:53 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 285 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 23,700 KB |
最終ジャッジ日時 | 2024-04-08 15:48:55 |
合計ジャッジ時間 | 16,779 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 85 ms
23,060 KB |
testcase_01 | AC | 85 ms
16,256 KB |
testcase_02 | AC | 85 ms
16,256 KB |
testcase_03 | AC | 83 ms
16,256 KB |
testcase_04 | AC | 84 ms
16,256 KB |
testcase_05 | AC | 84 ms
16,256 KB |
testcase_06 | AC | 86 ms
16,256 KB |
testcase_07 | AC | 86 ms
16,256 KB |
testcase_08 | AC | 84 ms
16,256 KB |
testcase_09 | AC | 85 ms
16,256 KB |
testcase_10 | WA | - |
testcase_11 | AC | 86 ms
16,256 KB |
testcase_12 | AC | 85 ms
16,256 KB |
testcase_13 | TLE | - |
testcase_14 | TLE | - |
testcase_15 | TLE | - |
testcase_16 | TLE | - |
testcase_17 | TLE | - |
testcase_18 | TLE | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
コンパイルメッセージ
Syntax OK
ソースコード
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] unless island_with_bridge.include?(islands[0]) island_with_bridge << islands[1] unless island_with_bridge.include?(islands[1]) end puts(island_with_bridge.length == island_num ? "Bob" : "Alice")