結果
問題 |
No.548 国士無双
|
ユーザー |
|
提出日時 | 2017-11-15 14:09:01 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 235 bytes |
コンパイル時間 | 41 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-07-05 20:31:42 |
合計ジャッジ時間 | 2,506 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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"] diff = list - strs.uniq if diff.length > 1 puts "Inpossible" elsif diff.length == 0 puts strs.sort else puts diff end