結果
| 問題 |
No.2729 Addition and Multiplication in yukicoder (Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-20 07:34:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 157 ms / 2,000 ms |
| コード長 | 444 bytes |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 82,488 KB |
| 実行使用メモリ | 122,964 KB |
| 最終ジャッジ日時 | 2024-10-12 02:45:06 |
| 合計ジャッジ時間 | 3,924 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
import typing
import sys
from collections import defaultdict
input = lambda: sys.stdin.readline().strip()
inf = 10**18
mod = 998244353
# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
# sys.setrecursionlimit(10**6)
def solve():
N = int(input())
A = list(map(int, input().split()))
A.sort()
ans = 0
for x in A:
ans = ans*10 + x
ans %= mod
print(ans)
def main():
t = 1
for _ in range(t):
solve()
main()