結果
| 問題 |
No.548 国士無双
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-15 13:40:12 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 291 bytes |
| コンパイル時間 | 45 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-07-05 20:31:39 |
| 合計ジャッジ時間 | 3,165 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 || strs.length != 13
puts "Inpossible"
elsif list.length == 0
puts strs.sort
else
puts list
end