1 2 3 4 5 6 7 8 9 10 11 12 13 14 | var i,j,a,b,pom,n:integer; begin readln(n); for i:=1 to n do begin pom:=1; readln(a,b); if b=0 then writeln(1); for j:=1 to b do pom:=pom*a; writeln(pom); end; end. |
dmFyCmksaixhLGIscG9tLG46aW50ZWdlcjsKYmVnaW4KcmVhZGxuKG4pOwpmb3IgaTo9MSB0byBuIGRvCgliZWdpbgoJcG9tOj0xOwoJcmVhZGxuKGEsYik7CglpZiBiPTAgdGhlbiB3cml0ZWxuKDEpOwoJZm9yIGo6PTEgdG8gYiBkbwoJcG9tOj1wb20qYTsKCXdyaXRlbG4ocG9tKTsKZW5kOwplbmQu
-
upload with new input
-
result: Success time: 0.01s memory: 252 kB returned value: 0
3 2 3 1 4 1 0
8 1 1 1
-
result: Success time: 0.02s memory: 252 kB returned value: 0



