結果
| 問題 | No.16 累乗の加算 |
| コンテスト | |
| ユーザー |
koyopro
|
| 提出日時 | 2015-09-20 13:51:25 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 77,604 KB |
| 最終ジャッジ日時 | 2025-12-03 17:08:49 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 TLE * 1 -- * 11 |
ソースコード
# -*- coding: utf-8 -*-
# x N
# a1 a2 … aN
x, N = map(int, raw_input().split())
a = map(int, raw_input().split())
total = 0
for i in xrange(N):
total += x ** a[i]
print total % 1000003
koyopro