結果

問題 No.2734 Addition and Multiplication in yukicoder (Hard)
ユーザー AwashAmityOakAwashAmityOak
提出日時 2024-04-19 23:13:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 229 ms
コンパイル使用メモリ 82,164 KB
実行使用メモリ 129,936 KB
最終ジャッジ日時 2024-04-19 23:14:46
合計ジャッジ時間 10,480 ms
ジャッジサーバーID
(参考情報)
judge1 / judge6
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
53,972 KB
testcase_01 AC 32 ms
52,536 KB
testcase_02 AC 32 ms
52,604 KB
testcase_03 AC 32 ms
52,800 KB
testcase_04 AC 32 ms
52,324 KB
testcase_05 AC 32 ms
52,120 KB
testcase_06 AC 33 ms
53,524 KB
testcase_07 AC 33 ms
52,744 KB
testcase_08 AC 33 ms
52,272 KB
testcase_09 AC 32 ms
53,560 KB
testcase_10 AC 32 ms
51,756 KB
testcase_11 AC 32 ms
52,560 KB
testcase_12 AC 32 ms
52,792 KB
testcase_13 AC 34 ms
52,508 KB
testcase_14 AC 34 ms
53,008 KB
testcase_15 AC 33 ms
52,736 KB
testcase_16 AC 32 ms
52,352 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(n):
	s = str(n)
	while len(s) < 6:
		s += s[0]
	return s

MOD = 998244353

N = int(input())
*A, = map(int, input().split())
A.sort(f)

x = 0
for a in A:
	for _ in range(len(str(a))):
		x *= 10
		x %= MOD
	x += a
	x %= MOD

print(x)
0