結果
| 問題 |
No.1343 Dividing Digit
|
| コンテスト | |
| ユーザー |
trineutron
|
| 提出日時 | 2021-02-08 02:06:41 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 2,000 ms |
| コード長 | 150 bytes |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 20,572 KB |
| 最終ジャッジ日時 | 2024-07-04 21:10:53 |
| 合計ジャッジ時間 | 2,820 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
n, k = map(int, input().split())
a = list(map(int, input().split()))
m = sum(a)
ans = 0
for x in a:
ans *= k
ans += x
ans %= m
print(ans)
trineutron