結果
問題 | No.1628 Sorting Integers (MAX of M) |
ユーザー | monpe |
提出日時 | 2021-10-25 13:45:08 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 754 bytes |
コンパイル時間 | 958 ms |
コンパイル使用メモリ | 112,736 KB |
実行使用メモリ | 29,152 KB |
最終ジャッジ日時 | 2024-04-14 08:00:11 |
合計ジャッジ時間 | 2,029 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | AC | 26 ms
25,320 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
コンパイルメッセージ
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; using System.Text; class Program { static void Main() { int N = int.Parse(Console.ReadLine()); var num = Console.ReadLine().Trim().Split(' '); var number = Array.ConvertAll(num, int.Parse); Multi(N, number); } static void Multi(int N, int[] number) { string num = "987654321"; var ans = ""; number.Reverse(); for(int i = 0; i < 9; i++) { if (number[i] == 0) continue; { ans += new string(num[i], number[i]); } } Console.WriteLine(ans); } }