結果
| 問題 |
No.2729 Addition and Multiplication in yukicoder (Easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-19 22:34:24 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 144 ms / 2,000 ms |
| コード長 | 354 bytes |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 113,836 KB |
| 最終ジャッジ日時 | 2024-10-11 16:10:50 |
| 合計ジャッジ時間 | 3,728 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
import sys, time, random
from collections import deque, Counter, defaultdict
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 61 - 1
mod = 998244353
n = ii()
a = li()
a.sort()
ans = 0
for i in range(n):
ans = 10 * ans + a[i]
ans %= mod
print(ans)