結果

問題 No.2729 Addition and Multiplication in yukicoder (Easy)
ユーザー tkykwtnbtkykwtnb
提出日時 2024-04-19 21:26:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 570 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 205 ms
コンパイル使用メモリ 82,384 KB
実行使用メモリ 129,820 KB
最終ジャッジ日時 2024-04-19 21:26:58
合計ジャッジ時間 8,478 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
52,272 KB
testcase_01 AC 33 ms
52,696 KB
testcase_02 AC 161 ms
113,896 KB
testcase_03 AC 558 ms
111,604 KB
testcase_04 AC 558 ms
110,564 KB
testcase_05 AC 546 ms
107,800 KB
testcase_06 AC 554 ms
128,984 KB
testcase_07 AC 551 ms
117,452 KB
testcase_08 AC 274 ms
129,820 KB
testcase_09 AC 32 ms
52,328 KB
testcase_10 AC 33 ms
52,000 KB
testcase_11 AC 36 ms
53,684 KB
testcase_12 AC 570 ms
129,104 KB
testcase_13 AC 553 ms
129,244 KB
testcase_14 AC 558 ms
129,084 KB
testcase_15 AC 559 ms
128,988 KB
testcase_16 AC 372 ms
105,120 KB
testcase_17 AC 385 ms
105,108 KB
testcase_18 AC 477 ms
119,184 KB
testcase_19 AC 384 ms
105,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
B=[]
for i,a in enumerate(A):
    B.append((a,i))
B.sort()
C=[]
for a,i in B:
    C.append(i)
x=0
for c in C:
    x=(10*x+A[c])%998244353
print(x)
0