#16842: __AC


089487 (089487)


#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int a,b,m;
while(cin>>a>>b)
{
m=pow(2,8*(a-1)+b-1);
if(a==1&&b==1) cout<<1<<endl;
else cout<<m<<endl;
}
}

#17196: Re:AC


ufve0704 (爬 我爬 我爬爬爬 有排行榜這種東西就是要爬 爬過我上面的那...)


#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int a,b,m;
while(cin>>a>>b)
{
m=pow(2,8*(a-1)+b-1);
if(a==1&&b==1) cout<<1<<endl;
else cout<<m<<endl;
}
}

比你短

#include <bits/stdc++.h>

using namespace std;

int main(int argc, char** argv){

long long int a,b;

while(cin>>a>>b){

b=pow(256,(a-1))*pow(2,(b-1));

cout<<b<<endl;

}

}