結果
| 問題 | No.16 累乗の加算 |
| コンテスト | |
| ユーザー |
koyopro
|
| 提出日時 | 2015-09-20 13:51:25 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 300,988 KB |
| 最終ジャッジ日時 | 2026-07-17 21:44:47 |
| 合計ジャッジ時間 | 7,318 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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