結果
問題 |
No.16 累乗の加算
|
ユーザー |
![]() |
提出日時 | 2015-09-20 13:51:25 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 195 bytes |
コンパイル時間 | 45 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 26,920 KB |
最終ジャッジ日時 | 2024-07-19 08:20:23 |
合計ジャッジ時間 | 6,470 ms |
ジャッジサーバー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