Monday 18 June 2012

UVa 12463 - Little Nephew Solution

#include<iostream>
using namespace std;
int main()
{
    long long a,b,c,d,e;
    while(cin>>a>>b>>c>>d>>e && a && b && c && d &&e)
    {
        cout<<a*b*c*d*d*e*e<<endl;
    }
return 0;
}

No comments:

Post a Comment