結果
問題 |
No.977 アリス仕掛けの摩天楼
|
ユーザー |
|
提出日時 | 2020-02-11 21:22:53 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 350 bytes |
コンパイル時間 | 45 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 19,748 KB |
最終ジャッジ日時 | 2024-10-01 08:12:58 |
合計ジャッジ時間 | 15,910 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 WA * 1 TLE * 4 -- * 7 |
コンパイルメッセージ
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")