結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー 👑 tipstar0125tipstar0125
提出日時 2024-04-19 21:27:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 149 ms / 2,000 ms
コード長 149 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 112,372 KB
最終ジャッジ日時 2024-04-19 21:27:35
合計ジャッジ時間 3,165 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
51,712 KB
testcase_01 AC 34 ms
51,584 KB
testcase_02 AC 134 ms
112,372 KB
testcase_03 AC 109 ms
104,448 KB
testcase_04 AC 112 ms
105,344 KB
testcase_05 AC 112 ms
107,264 KB
testcase_06 AC 130 ms
107,368 KB
testcase_07 AC 149 ms
100,352 KB
testcase_08 AC 117 ms
106,468 KB
testcase_09 AC 33 ms
51,840 KB
testcase_10 AC 32 ms
51,840 KB
testcase_11 AC 32 ms
51,584 KB
testcase_12 AC 127 ms
107,348 KB
testcase_13 AC 132 ms
107,432 KB
testcase_14 AC 128 ms
106,984 KB
testcase_15 AC 133 ms
106,788 KB
testcase_16 AC 107 ms
97,792 KB
testcase_17 AC 106 ms
97,920 KB
testcase_18 AC 118 ms
102,180 KB
testcase_19 AC 106 ms
97,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
MOD=998244353

A.sort()
ans=0
for a in A:
    ans*=10
    ans%=MOD
    ans+=a
    ans%=MOD
print(ans)
0