結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー 👑 kakel-sankakel-san
提出日時 2024-04-27 00:07:14
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 190 ms / 2,000 ms
コード長 530 bytes
コンパイル時間 8,196 ms
コンパイル使用メモリ 167,856 KB
実行使用メモリ 217,612 KB
最終ジャッジ日時 2024-04-27 00:07:28
合計ジャッジ時間 12,961 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
30,464 KB
testcase_01 AC 55 ms
30,168 KB
testcase_02 AC 161 ms
73,804 KB
testcase_03 AC 164 ms
53,760 KB
testcase_04 AC 168 ms
54,912 KB
testcase_05 AC 175 ms
55,640 KB
testcase_06 AC 183 ms
72,700 KB
testcase_07 AC 174 ms
64,128 KB
testcase_08 AC 163 ms
73,088 KB
testcase_09 AC 54 ms
30,208 KB
testcase_10 AC 57 ms
30,076 KB
testcase_11 AC 54 ms
30,204 KB
testcase_12 AC 186 ms
72,768 KB
testcase_13 AC 183 ms
73,160 KB
testcase_14 AC 186 ms
72,960 KB
testcase_15 AC 190 ms
72,868 KB
testcase_16 AC 154 ms
62,976 KB
testcase_17 AC 156 ms
63,232 KB
testcase_18 AC 174 ms
67,968 KB
testcase_19 AC 152 ms
217,612 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (89 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;

class Program
{
    static int NN => int.Parse(ReadLine());
    static long[] NList => ReadLine().Split().Select(long.Parse).ToArray();
    public static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var n = NN;
        var a = NList;
        Array.Sort(a);
        var ans = 0L;
        foreach (var ai in a) ans = (ans * 10 + ai) % 998244353;
        WriteLine(ans);
    }
}
0