| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 147551 | Laixuanze111 | 计算函数值 | C++ | Compile Error | 0 | 0 MS | 0 KB | 238 | 2024-05-18 15:49:50 |
#include<bits/stdc++.h> using namespace std; double px(int x,int n) { if(n==1)return pow(x,n); else return px(x,n-1)+)(-1,n-1)*pow(x,n); } int main(){ int x,n; cin>>x>>n; printf("%.21f",px(x,n)); }