Saratov State University :: Online Contester


::Go
- home
- news
- register
- update personal info
- problemset archive
- submit
- status online
- standing
- contests
- virtual contests
- forum
- statistic
- FAQ
- links
- projects

::Poll
Are you registered on Codeforces?
Yes
No
What is it???

[results]

::webboard

WA on test 5
Author: swag
ID: 050120
Problem: 112
Contest: 0
Date: 2011-10-23 01:36:22

#include<iostream>
using namespace std;
int main()
{
long long a,b,mul=1,mul1=1,sum=0;
cin>>a>>b;
for(int i=0;i<b;i++)
{
mul*=a;
}
for(int i=0;i<a;i++)
{
mul1*=b;
}
sum=mul-mul1;
cout<<sum;
return 0;
}

showing WA on test 5....code seems ok to me...pls help

see sub-tree reply to that message


::Login
Forgot password?

::News
22.10.12 - The problems from the Southern Subregional Programming Contest 2012 added to the problemset archive (542 - 553).
22.10.12 - After the start of the contest the statements in PDF will be available by the link.
23.10.11 - The problems from the Southern Subregional Programming Contest 2011 added to the problemset archive (530 - 541).

::Counter

Server time: 2017-09-21 12:39:48Online Contester Team © 2002 - 2016. All rights reserved.