結果
問題 |
No.1343 Dividing Digit
|
ユーザー |
|
提出日時 | 2021-02-12 12:53:30 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 93,440 KB |
最終ジャッジ日時 | 2024-07-19 06:56:57 |
合計ジャッジ時間 | 3,815 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 21 |
ソースコード
########関数部分############## def Base_n_to_10(X,n,a): out = 0 for i in range(len(X)): x = X[i] out += x*((n%a)**i) out %= a return out#int out ############################ N,K = map(int,input().split()) A = list(map(int,input().split())) sumA = sum(A) A.reverse() numA = Base_n_to_10(A,K,sumA) print(numA%sumA)