結果

問題 No.1343 Dividing Digit
ユーザー matriematrie
提出日時 2021-01-21 09:44:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 91 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 19,428 KB
最終ジャッジ日時 2023-08-25 20:52:48
合計ジャッジ時間 2,387 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,772 KB
testcase_01 AC 15 ms
7,840 KB
testcase_02 AC 15 ms
7,820 KB
testcase_03 AC 66 ms
18,568 KB
testcase_04 AC 20 ms
9,224 KB
testcase_05 AC 29 ms
10,940 KB
testcase_06 AC 23 ms
9,860 KB
testcase_07 AC 34 ms
11,976 KB
testcase_08 AC 56 ms
16,756 KB
testcase_09 AC 61 ms
17,572 KB
testcase_10 AC 22 ms
9,664 KB
testcase_11 AC 33 ms
11,724 KB
testcase_12 AC 51 ms
15,544 KB
testcase_13 AC 48 ms
15,320 KB
testcase_14 AC 21 ms
9,460 KB
testcase_15 AC 31 ms
11,360 KB
testcase_16 AC 22 ms
9,560 KB
testcase_17 AC 59 ms
17,656 KB
testcase_18 AC 64 ms
18,460 KB
testcase_19 AC 49 ms
15,032 KB
testcase_20 AC 39 ms
12,716 KB
testcase_21 AC 59 ms
16,936 KB
testcase_22 AC 59 ms
16,900 KB
testcase_23 AC 67 ms
19,428 KB
testcase_24 AC 54 ms
9,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k,*L=map(int,(input()+' '+input()).split())
a=sum(L)
b=0
for i in L:b=(b*k+i)%a
print(b)
0