結果
| 問題 |
No.16 累乗の加算
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-03 10:57:14 |
| 言語 | Python2 (2.7.18) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 186 bytes |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-15 18:31:06 |
| 合計ジャッジ時間 | 779 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 RE * 12 |
ソースコード
x, N = map(int, raw_input().split())
a = map(int, raw_input().split())
p = [1 for i in xrange(101)]
for i in xrange(1, 101):
p[i] = (p[i-1] * x) % 1000003
print sum(p[i] for i in a)