結果
| 問題 |
No.587 七対子
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2018-03-12 08:05:03 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 207 bytes |
| コンパイル時間 | 60 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,288 KB |
| 最終ジャッジ日時 | 2024-11-06 22:41:06 |
| 合計ジャッジ時間 | 4,849 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 WA * 5 |
コンパイルメッセージ
Syntax OK
ソースコード
s=gets.chomp
s=s.split("").sort
c=0
t=s[0]
ans=""
s.each{|e|
if e==t
c+=1
else
if (c==1)
ans+=t
end
c=1
t=e
end
}
if (c==1)
ans+=t
end
if ans.length==1
puts ans
else
puts "Impossible"
end
horiesiniti