結果

問題 No.1475 時計の歯車Easy
ユーザー GinFizz1185GinFizz1185
提出日時 2021-04-11 16:42:34
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 1,184 bytes
コンパイル時間 2,929 ms
コンパイル使用メモリ 102,548 KB
実行使用メモリ 24,756 KB
最終ジャッジ日時 2023-09-09 18:45:33
合計ジャッジ時間 7,767 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
22,660 KB
testcase_01 AC 61 ms
20,760 KB
testcase_02 AC 57 ms
20,656 KB
testcase_03 AC 59 ms
20,700 KB
testcase_04 AC 58 ms
20,668 KB
testcase_05 AC 60 ms
22,724 KB
testcase_06 AC 59 ms
20,688 KB
testcase_07 AC 59 ms
20,788 KB
testcase_08 AC 59 ms
20,708 KB
testcase_09 AC 60 ms
20,680 KB
testcase_10 AC 59 ms
20,696 KB
testcase_11 AC 58 ms
18,712 KB
testcase_12 AC 59 ms
22,728 KB
testcase_13 AC 58 ms
20,676 KB
testcase_14 AC 59 ms
22,644 KB
testcase_15 AC 60 ms
22,856 KB
testcase_16 AC 60 ms
20,704 KB
testcase_17 AC 60 ms
22,740 KB
testcase_18 AC 58 ms
20,780 KB
testcase_19 AC 59 ms
20,784 KB
testcase_20 AC 58 ms
20,736 KB
testcase_21 AC 58 ms
20,740 KB
testcase_22 AC 58 ms
24,756 KB
testcase_23 AC 58 ms
20,664 KB
testcase_24 AC 56 ms
20,588 KB
testcase_25 AC 59 ms
20,660 KB
testcase_26 AC 60 ms
22,752 KB
testcase_27 AC 60 ms
22,760 KB
testcase_28 AC 59 ms
20,744 KB
testcase_29 AC 59 ms
22,732 KB
testcase_30 AC 59 ms
20,688 KB
testcase_31 AC 59 ms
20,764 KB
testcase_32 AC 59 ms
20,700 KB
testcase_33 AC 59 ms
20,620 KB
testcase_34 AC 59 ms
20,616 KB
testcase_35 AC 60 ms
20,816 KB
testcase_36 AC 59 ms
22,700 KB
testcase_37 AC 64 ms
22,716 KB
testcase_38 AC 58 ms
20,668 KB
testcase_39 AC 59 ms
22,736 KB
testcase_40 AC 60 ms
20,796 KB
testcase_41 AC 60 ms
20,616 KB
testcase_42 AC 59 ms
22,780 KB
testcase_43 AC 64 ms
20,712 KB
testcase_44 AC 59 ms
22,756 KB
testcase_45 AC 58 ms
20,700 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.ComponentModel;

namespace yukicode
{
    class No1475
    {
        static void Main(string[] args)
        {
            int watchNum = int.Parse(Console.ReadLine());
            Dictionary<int, int[]> watchParts = new Dictionary<int, int[]>();

            for(int i = 0; i < watchNum; i++)
            {
                string[] watchInfo = Console.ReadLine().Split(' ');
                int partsNum = int.Parse(watchInfo[0]);
                int[] parts = new int[partsNum];

                for(int j = 0; j < partsNum; j++)
                {
                    parts[j] = int.Parse(watchInfo[j + 1]);
                }

                Array.Sort(parts);
                Array.Reverse(parts);
                watchParts.Add(i, parts);
            }

            for(int i = 0; i < watchNum; i++)
            {
                string str = "";
                for(int j = 0; j < watchParts[i].Length; j++)
                {
                    str += watchParts[i][j] + " ";
                }
                Console.WriteLine(str.Substring(0, str.Length - 1));
            }

            return;
        }
    }
}
0