結果
問題 | No.2729 Addition and Multiplication in yukicoder (Easy) |
ユーザー | hato336 |
提出日時 | 2024-04-19 21:23:16 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 242 ms / 2,000 ms |
コード長 | 440 bytes |
コンパイル時間 | 132 ms |
コンパイル使用メモリ | 82,364 KB |
実行使用メモリ | 124,288 KB |
最終ジャッジ日時 | 2024-04-19 21:23:35 |
合計ジャッジ時間 | 5,044 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 126 ms
85,984 KB |
testcase_01 | AC | 124 ms
85,632 KB |
testcase_02 | AC | 203 ms
122,880 KB |
testcase_03 | AC | 199 ms
121,856 KB |
testcase_04 | AC | 200 ms
121,856 KB |
testcase_05 | AC | 222 ms
122,496 KB |
testcase_06 | AC | 215 ms
122,876 KB |
testcase_07 | AC | 201 ms
124,288 KB |
testcase_08 | AC | 206 ms
122,880 KB |
testcase_09 | AC | 115 ms
85,888 KB |
testcase_10 | AC | 111 ms
85,800 KB |
testcase_11 | AC | 111 ms
85,768 KB |
testcase_12 | AC | 242 ms
122,988 KB |
testcase_13 | AC | 238 ms
123,004 KB |
testcase_14 | AC | 214 ms
122,872 KB |
testcase_15 | AC | 214 ms
122,624 KB |
testcase_16 | AC | 181 ms
115,840 KB |
testcase_17 | AC | 214 ms
116,352 KB |
testcase_18 | AC | 199 ms
123,640 KB |
testcase_19 | AC | 178 ms
116,096 KB |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random #sys.setrecursionlimit(10**9) #sys.set_int_max_str_digits(0) #input = sys.stdin.readline #n = int(input()) #alist = list(map(int,input().split())) #alist = [] #s = input() n = int(input()) alist = list(map(int,input().split())) alist.sort() mod = 998244353 ans = 0 for i in range(n): ans *= 10 ans += alist[i] ans %= mod print(ans)