結果
問題 | No.256 桁の数字を入れ替え (2) |
ユーザー | kmtrc130 |
提出日時 | 2019-03-18 16:51:32 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 68 ms / 2,000 ms |
コード長 | 398 bytes |
コンパイル時間 | 1,915 ms |
コンパイル使用メモリ | 102,524 KB |
実行使用メモリ | 22,920 KB |
最終ジャッジ日時 | 2023-09-25 14:27:34 |
合計ジャッジ時間 | 2,633 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 50 ms
20,608 KB |
testcase_01 | AC | 50 ms
20,488 KB |
testcase_02 | AC | 68 ms
22,920 KB |
testcase_03 | AC | 67 ms
18,824 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; class Program { public void Solve() { string N = Console.ReadLine(); char[] aryN = N.ToCharArray(); Array.Sort(aryN); Array.Reverse(aryN); Console.WriteLine(new string(aryN)); } static void Main() { var solver = new Program(); solver.Solve(); } }