結果
| 問題 |
No.256 桁の数字を入れ替え (2)
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2016-05-25 19:43:18 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 180 bytes |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 20,224 KB |
| 最終ジャッジ日時 | 2024-10-07 14:21:57 |
| 合計ジャッジ時間 | 1,383 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 4 |
コンパイルメッセージ
Syntax OK
ソースコード
# your code goes here
n=STDIN.gets
n=n.split("")
cs=[0,0,0,0,0,0,0,0,0,0]
for n1 in n
cs[n1.to_i]+=1
end
for i in 0..9
j=9-i
cs[j].times do |k|
print j.to_s
end
end
puts ""
horiesiniti