結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー kusirakusirakusirakusira
提出日時 2024-04-04 18:08:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 374 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 111,808 KB
最終ジャッジ日時 2024-04-04 18:08:10
合計ジャッジ時間 3,795 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 36 ms
53,460 KB
testcase_02 AC 132 ms
111,808 KB
testcase_03 AC 122 ms
104,688 KB
testcase_04 AC 118 ms
105,148 KB
testcase_05 AC 118 ms
107,068 KB
testcase_06 AC 133 ms
106,660 KB
testcase_07 AC 133 ms
100,368 KB
testcase_08 AC 122 ms
106,216 KB
testcase_09 AC 34 ms
53,460 KB
testcase_10 AC 34 ms
53,460 KB
testcase_11 AC 35 ms
53,460 KB
testcase_12 AC 133 ms
106,660 KB
testcase_13 AC 135 ms
107,000 KB
testcase_14 AC 133 ms
106,532 KB
testcase_15 AC 133 ms
106,528 KB
testcase_16 AC 108 ms
97,604 KB
testcase_17 AC 109 ms
97,468 KB
testcase_18 AC 126 ms
101,720 KB
testcase_19 AC 111 ms
97,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))

mod = 998244353
if((1<=n<=2*10**5)==False): print("No")
A.sort()
x = 0
for i in range(n):
    x = x * 10 + A[i]
    x %= mod
    if((1<=A[i]<=10**18) == False):
        print("No")

print(x)
0