Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
55606 邢逸轩 国王的米粒 C++ Accepted 100 0 MS 252 KB 175 2022-07-30 16:06:38

Tests(5/5):


#include<bits/stdc++.h> using namespace std; int a,b,ans; int main(){ cin>>a>>b; if(a>b) swap(a,b); for(int i=a;i<=b;i++) ans+=(1<<i); cout<<ans/2; return 0; }


Judgement Protocol: