Блог пользователя pro_grammer12

Автор pro_grammer12, история, 2 года назад, По-английски

I am facing a problem with that question. It is working properly when I execute in code block ide nut when I submit that code on code forces then it is showing an error on test case 5. If Anyone knows what is with my code please tell me

include

include<math.h>

using namespace std; int main() {

int a,b,ans; cin>>a>>b;

cout<<pow(a,b)-pow(b,a);

} that is my code

  • Проголосовать: нравится
  • -20
  • Проголосовать: не нравится

»
2 года назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Send problem link, constraints on a and b are important.

Also pow is notoriously imprecise when working with integers

»
2 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится