結果
問題 |
No.2734 Addition and Multiplication in yukicoder (Hard)
|
ユーザー |
|
提出日時 | 2024-04-20 01:05:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 229 bytes |
コンパイル時間 | 504 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 102,528 KB |
最終ジャッジ日時 | 2024-10-11 19:53:26 |
合計ジャッジ時間 | 6,137 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 36 |
ソースコード
MOD = 998244353 n = int(input()) A = list(input().split()) A.sort() pow10 = [1] * 20 for i in range(1, 20): pow10[i] = (10 * pow10[i - 1]) % MOD ans = 0 for a in A: ans = (ans * pow10[len(a)] * int(a)) % MOD print(ans)