結果
問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
ユーザー | anonymously |
提出日時 | 2024-04-19 21:42:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 305 ms / 2,000 ms |
コード長 | 140 bytes |
コンパイル時間 | 203 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 35,452 KB |
最終ジャッジ日時 | 2024-10-11 14:30:57 |
合計ジャッジ時間 | 5,522 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
M = 998244353 n = int(input()) A = [int(_) for _ in input().split()] A.sort() S = 0 for i in range(n): S = (10 * S + A[i]) % M print(S)