結果
問題 |
No.16 累乗の加算
|
ユーザー |
![]() |
提出日時 | 2017-09-13 16:08:17 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 116 bytes |
コンパイル時間 | 52 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 24,596 KB |
最終ジャッジ日時 | 2024-11-07 19:50:47 |
合計ジャッジ時間 | 6,732 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 TLE * 1 -- * 11 |
ソースコード
x, N=map(int, raw_input().split()) a=map(int, raw_input().split()) s=0 for i in a: s+=x**i print s%1000003