結果
問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
ユーザー |
|
提出日時 | 2024-04-19 21:28:21 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 149 ms / 2,000 ms |
コード長 | 169 bytes |
コンパイル時間 | 344 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 112,052 KB |
最終ジャッジ日時 | 2024-10-11 14:02:09 |
合計ジャッジ時間 | 4,094 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
import sysinput = sys.stdin.readlineMOD = 998244353N = int(input())A = list(map(int, input().split()))A.sort()x = 0for a in A:x = (10*x%MOD + a)%MODprint(x)