結果
| 問題 |
No.2729 Addition and Multiplication in yukicoder (Easy)
|
| コンテスト | |
| ユーザー |
YhuanDebeste
|
| 提出日時 | 2024-04-19 22:14:14 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 159 ms / 2,000 ms |
| コード長 | 164 bytes |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 113,180 KB |
| 最終ジャッジ日時 | 2024-10-11 15:36:14 |
| 合計ジャッジ時間 | 4,330 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
from functools import reduce n = int(input()) arr = list(map(int, input().split())) arr.sort() print(reduce(lambda a, b:((10*a) + b) % 998244353, arr) % 998244353)
YhuanDebeste