結果

問題 No.1343 Dividing Digit
ユーザー _matumo__matumo_
提出日時 2021-01-20 18:08:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 95 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 10,736 KB
実行使用メモリ 19,708 KB
最終ジャッジ日時 2023-08-24 21:54:46
合計ジャッジ時間 2,143 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,904 KB
testcase_01 AC 15 ms
7,768 KB
testcase_02 AC 15 ms
7,792 KB
testcase_03 AC 66 ms
18,804 KB
testcase_04 AC 20 ms
9,152 KB
testcase_05 AC 28 ms
10,928 KB
testcase_06 AC 24 ms
9,892 KB
testcase_07 AC 34 ms
12,284 KB
testcase_08 AC 56 ms
16,420 KB
testcase_09 AC 60 ms
17,432 KB
testcase_10 AC 22 ms
9,444 KB
testcase_11 AC 33 ms
11,568 KB
testcase_12 AC 50 ms
15,640 KB
testcase_13 AC 48 ms
15,280 KB
testcase_14 AC 21 ms
9,276 KB
testcase_15 AC 30 ms
11,296 KB
testcase_16 AC 21 ms
9,440 KB
testcase_17 AC 59 ms
17,424 KB
testcase_18 AC 65 ms
18,700 KB
testcase_19 AC 49 ms
15,092 KB
testcase_20 AC 39 ms
12,784 KB
testcase_21 AC 58 ms
16,948 KB
testcase_22 AC 59 ms
16,868 KB
testcase_23 AC 67 ms
19,708 KB
testcase_24 AC 54 ms
10,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

f=lambda:[*map(int,input().split())]
N,K=f()
A=f()
B=sum(A)
u=0
for a in A:u=(u*K+a)%B
print(u)
0