結果
| 問題 | No.16 累乗の加算 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-03 10:57:14 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 186 bytes |
| 記録 | |
| コンパイル時間 | 144 ms |
| コンパイル使用メモリ | 76,968 KB |
| 最終ジャッジ日時 | 2025-12-03 21:22:53 |
|
ジャッジサーバーID (参考情報) |
judge1 / 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)