| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 54316 | 董承诺 | 国王的米粒 | C++ | Wrong Answer | 60 | 0 MS | 248 KB | 226 | 2022-07-29 14:37:09 |
#include<bits/stdc++.h> using namespace std; long long a,b,c[40],d=1,e; int main(){ cin>>a>>b; c[1]=1; for(int i=2;i<=30;i++){ d*=2; c[i]=d; } for(int i=a;i<=b;i++){ e+=c[i]; } cout<<e; return 0; }