結果
問題 |
No.1343 Dividing Digit
|
ユーザー |
|
提出日時 | 2021-02-12 12:42:51 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 326 bytes |
コンパイル時間 | 219 ms |
コンパイル使用メモリ | 82,404 KB |
実行使用メモリ | 95,104 KB |
最終ジャッジ日時 | 2024-07-19 06:48:43 |
合計ジャッジ時間 | 4,446 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 21 |
ソースコード
########関数部分############## def Base_n_to_10(X,n): out = 0 for i in range(len(X)): x = X[i] out += x*(n**i) 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) print(numA%sumA)