Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
56109 | 王籽易 | 国王的米粒 | C++ | Accepted | 100 | 0 MS | 248 KB | 146 | 2022-08-01 14:59:46 |
#include <bits/stdc++.h> using namespace std; int m,n; int main(){ cin>>m>>n; cout<<(1<<(max(m-1,n-1)+1))-(1<<min(m-1,n-1)); return 0; }