Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define ll long long
- int main()
- {
- ll int a, b;
- cin>>a>>b;
- ll int x=1, y=1;
- ll int tmp = b;
- while(tmp--) x *= a;
- tmp = a;
- while(tmp--) y *= b;
- cout<<x+y<<"\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment