結果
| 問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
| コンテスト | |
| ユーザー |
YhuanDebeste
|
| 提出日時 | 2024-04-19 22:14:14 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 111 ms / 2,000 ms |
| コード長 | 164 bytes |
| 記録 | |
| コンパイル時間 | 343 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 114,816 KB |
| 最終ジャッジ日時 | 2026-04-28 00:00:01 |
| 合計ジャッジ時間 | 3,426 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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