結果

問題 No.256 桁の数字を入れ替え (2)
ユーザー nanophoto12nanophoto12
提出日時 2015-12-13 09:08:31
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 229 ms / 2,000 ms
コード長 390 bytes
コンパイル時間 1,924 ms
コンパイル使用メモリ 100,864 KB
実行使用メモリ 22,568 KB
最終ジャッジ日時 2023-10-13 14:49:03
合計ジャッジ時間 3,078 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
20,340 KB
testcase_01 AC 46 ms
18,348 KB
testcase_02 AC 229 ms
22,568 KB
testcase_03 AC 224 ms
22,536 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace No256
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			var n = Console.ReadLine ();
			var array = n.ToCharArray ();
			Array.Sort (array);
			Array.Reverse (array);

			foreach (var element in array) {
				Console.Write (element);
			}
			Console.WriteLine ();
		}
	}
}
0