#40376: __哭哭


yp11251156@yphs.tp.edu.tw (908-36許安荀)


include<bits/stdc++.h>
using namespace std;
int main()
{
    long long a,d=0;
    cin>>a;
    while(a--)
    {
     long long b,c;
     string e;
     cin>>b>>e>>c;
     if(e=="x") cout<<b*c<<endl;
     else cout<<pow(b,c)<<endl;
    }
}

 

請問為甚麼wa

#40760: Re: 哭哭


cges30901 (cges30901)


不要用pow