結果

問題 No.1343 Dividing Digit
ユーザー pluto77pluto77
提出日時 2021-01-31 13:19:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 121 bytes
コンパイル時間 431 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 19,584 KB
最終ジャッジ日時 2023-09-11 07:45:57
合計ジャッジ時間 2,491 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,896 KB
testcase_01 AC 16 ms
7,900 KB
testcase_02 AC 15 ms
7,792 KB
testcase_03 AC 68 ms
18,696 KB
testcase_04 AC 21 ms
9,156 KB
testcase_05 AC 30 ms
10,940 KB
testcase_06 AC 25 ms
9,932 KB
testcase_07 AC 37 ms
12,304 KB
testcase_08 AC 61 ms
16,484 KB
testcase_09 AC 67 ms
17,476 KB
testcase_10 AC 23 ms
9,428 KB
testcase_11 AC 35 ms
11,516 KB
testcase_12 AC 57 ms
15,516 KB
testcase_13 AC 52 ms
15,372 KB
testcase_14 AC 21 ms
9,336 KB
testcase_15 AC 33 ms
11,236 KB
testcase_16 AC 22 ms
9,372 KB
testcase_17 AC 62 ms
17,432 KB
testcase_18 AC 71 ms
18,748 KB
testcase_19 AC 55 ms
15,020 KB
testcase_20 AC 44 ms
12,712 KB
testcase_21 AC 63 ms
16,928 KB
testcase_22 AC 64 ms
16,888 KB
testcase_23 AC 74 ms
19,584 KB
testcase_24 AC 61 ms
9,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1343
n,k=map(int,input().split())
a=list(map(int,input().split()))
d=sum(a)
A=0
for i in a:
 A=A*k+i
 A%=d
print(A)
0