結果
| 問題 |
No.2734 Addition and Multiplication in yukicoder (Hard)
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2024-04-22 02:57:13 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 326 bytes |
| コンパイル時間 | 577 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 182,036 KB |
| 最終ジャッジ日時 | 2024-10-14 01:43:26 |
| 合計ジャッジ時間 | 43,290 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 RE * 17 |
ソースコード
import sys
input = sys.stdin.readline
sys.set_int_max_str_digits(10**6)
mod=998244353
N=int(input())
A=list(map(int,input().split()))
A=list(map(str,A))
B=[]
for s in A:
X=list(s)
while len(X)<20:
X+=list(s)
B.append((X,list(s)))
B.sort()
X=[]
for _,s in B:
X+=s
x="".join(X)
print(int(x)%mod)
titia