結果
問題 | No.256 桁の数字を入れ替え (2) |
ユーザー |
![]() |
提出日時 | 2015-08-08 21:12:20 |
言語 | D (dmd 2.109.1) |
結果 |
CE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 631 bytes |
コンパイル時間 | 1,236 ms |
コンパイル使用メモリ | 87,592 KB |
最終ジャッジ日時 | 2024-11-14 19:08:17 |
合計ジャッジ時間 | 1,622 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
Main.d(28): Deprecation: foreach: loop index implicitly converted from `size_t` to `int` Main.d(32): Error: no property `sort` for type `uint[]`, perhaps `import std.algorithm;` is needed?
ソースコード
/*****************************Name : YoshitakCreate Date : 2015/06/05Program Name : main.dProblem No. : 256*****************************//*---------------------import-----------------------*/import std.stdio;import std.string;import std.conv;import std.array;/*---------------------main-----------------------*/int main(string[] args){//inputuint[] num;string input;input = chomp(readln());//into the arrynum.length = input.length;foreach(int i, char c; input){num[i] = to!int(c);}num.sort;//outputforeach_reverse(int c; num){write(to!char(c));}return 0;}