結果

問題 No.1343 Dividing Digit
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-09-27 14:16:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 89,920 KB
最終ジャッジ日時 2023-09-20 14:42:32
合計ジャッジ時間 3,654 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,132 KB
testcase_01 AC 71 ms
70,980 KB
testcase_02 AC 74 ms
71,284 KB
testcase_03 AC 92 ms
89,500 KB
testcase_04 AC 77 ms
76,296 KB
testcase_05 AC 79 ms
77,976 KB
testcase_06 AC 77 ms
76,768 KB
testcase_07 AC 81 ms
80,332 KB
testcase_08 AC 88 ms
86,356 KB
testcase_09 AC 89 ms
87,784 KB
testcase_10 AC 75 ms
76,232 KB
testcase_11 AC 81 ms
79,476 KB
testcase_12 AC 88 ms
84,892 KB
testcase_13 AC 86 ms
83,636 KB
testcase_14 AC 77 ms
76,220 KB
testcase_15 AC 80 ms
78,848 KB
testcase_16 AC 77 ms
76,380 KB
testcase_17 AC 91 ms
87,948 KB
testcase_18 AC 93 ms
89,648 KB
testcase_19 AC 87 ms
83,800 KB
testcase_20 AC 83 ms
81,360 KB
testcase_21 AC 90 ms
86,468 KB
testcase_22 AC 92 ms
87,736 KB
testcase_23 AC 93 ms
89,920 KB
testcase_24 AC 91 ms
89,252 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
A = list(map(int,input().split()))
B = sum(A)
P=0
for i in range(n):
  P=(P*k+A[i]) % B
print(P)
0