結果

問題 No.1343 Dividing Digit
ユーザー convexineqconvexineq
提出日時 2021-01-16 13:33:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 105 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 92,824 KB
最終ジャッジ日時 2023-08-18 10:03:11
合計ジャッジ時間 3,682 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
71,256 KB
testcase_01 AC 75 ms
71,488 KB
testcase_02 AC 75 ms
71,280 KB
testcase_03 AC 100 ms
92,812 KB
testcase_04 AC 81 ms
76,556 KB
testcase_05 AC 89 ms
78,860 KB
testcase_06 AC 84 ms
76,536 KB
testcase_07 AC 88 ms
81,188 KB
testcase_08 AC 95 ms
89,000 KB
testcase_09 AC 97 ms
90,880 KB
testcase_10 AC 80 ms
76,428 KB
testcase_11 AC 87 ms
80,388 KB
testcase_12 AC 95 ms
87,368 KB
testcase_13 AC 93 ms
85,984 KB
testcase_14 AC 81 ms
76,424 KB
testcase_15 AC 84 ms
79,776 KB
testcase_16 AC 80 ms
76,364 KB
testcase_17 AC 98 ms
90,528 KB
testcase_18 AC 101 ms
92,824 KB
testcase_19 AC 92 ms
85,712 KB
testcase_20 AC 87 ms
83,204 KB
testcase_21 AC 95 ms
89,124 KB
testcase_22 AC 96 ms
90,560 KB
testcase_23 AC 99 ms
92,788 KB
testcase_24 AC 97 ms
91,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k,*a = map(int,open(0).read().split())
s = sum(a)
x = 0
for ai in a:
    x = x*k+ai
    x %= s
print(x)
0