結果
問題 | No.548 国士無双 |
ユーザー |
|
提出日時 | 2017-11-15 13:38:54 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 270 bytes |
コンパイル時間 | 43 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-07-05 20:31:34 |
合計ジャッジ時間 | 3,160 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 2 |
コンパイルメッセージ
Syntax OK
ソースコード
strs = gets.chomp.split("").map(&:to_s) list = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m"] strs.each{ |val| list.delete(val) if strs.count(val) >= 1 } if list.length > 1 puts "Inpossible" elsif list.length == 0 puts strs.sort else puts list end