結果
| 問題 |
No.2734 Addition and Multiplication in yukicoder (Hard)
|
| コンテスト | |
| ユーザー |
AwashAmityOak
|
| 提出日時 | 2024-04-19 23:13:53 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 238 bytes |
| コンパイル時間 | 585 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 129,880 KB |
| 最終ジャッジ日時 | 2024-10-11 17:37:29 |
| 合計ジャッジ時間 | 12,447 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 WA * 22 |
ソースコード
def f(n): s = str(n) while len(s) < 6: s += s[0] return s MOD = 998244353 N = int(input()) *A, = map(int, input().split()) A.sort(f) x = 0 for a in A: for _ in range(len(str(a))): x *= 10 x %= MOD x += a x %= MOD print(x)
AwashAmityOak