結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー 👑 kakel-sankakel-san
提出日時 2024-04-27 00:06:24
言語 C#
(.NET 8.0.203)
結果
RE  
実行時間 -
コード長 630 bytes
コンパイル時間 9,941 ms
コンパイル使用メモリ 166,096 KB
実行使用メモリ 221,704 KB
最終ジャッジ日時 2024-04-27 00:06:45
合計ジャッジ時間 18,868 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
30,464 KB
testcase_01 AC 53 ms
30,208 KB
testcase_02 RE -
testcase_03 AC 118 ms
52,244 KB
testcase_04 AC 119 ms
53,924 KB
testcase_05 AC 123 ms
54,568 KB
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 54 ms
29,696 KB
testcase_10 RE -
testcase_11 AC 54 ms
30,208 KB
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (95 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 int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
    static string[] SList(long n) => Enumerable.Repeat(0, (int)n).Select(_ => ReadLine()).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