結果
問題 | No.16 累乗の加算 |
ユーザー |
![]() |
提出日時 | 2017-08-13 06:20:50 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 245 bytes |
コンパイル時間 | 87 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 28,296 KB |
最終ジャッジ日時 | 2024-10-13 07:43:26 |
合計ジャッジ時間 | 10,009 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 2 RE * 1 TLE * 1 -- * 10 |
ソースコード
# your code goes herex,N=(int(i) for i in input (). split ())a=[int(i) for i in input (). split ()]a.sort()k=x**a[0]l=0l+=kfor i in range (1,N):# print (a[i]-=a[i-1]k*=x**a[i]l+=kl%=10000003print (k)print (l)