Solution - Timus Problem 1293. Eniya

1293. Eniya

Time limit: 1.0 second
Memory limit: 64 MB
It’s restless now on the slips of the intergalactic port’s sixth dock of planet of Torn. No longer then in a month the reconstruction of the small ironclad corvette “Eniya” will be finished. And again this battle ship and its brave team would have to struggle for the control over plutonium mines of Sibelius. The work cannot be stopped even for a second, self-powered laser welders work round the clock. Joints of robots-repairers fuse because of this permanent work. Nevertheless, they can’t stop not for a single moment.
Now in all this turmoil it is discovered that corvette’s thermopanels again need an urgent processing with thorium sulphide. It is known that the processing of the one square meter of the panel needs 1 nanogramm of sulphide. In general, it is needed to process N rectangular panels, which dimensions are A by B meters. It is necessary to calculate as fast as possible, how much sulphide is needed in general for the processing of all panels of “Eniya”. Moreover, do not forget, that the panels need processing of both sides.

Input

The only line contains integers N (1 ≤ N ≤ 100), A (1 ≤ A ≤ 100), B (1 ≤ B ≤ 100).

Output

Output the weight of thorium sulphide in nanogramms needed for the processing.

Sample

inputoutput
5 2 3
60


সল্যুশন্সঃ
#include<iostream>
using namespace std;

int main()
{
    int n, a, b;
    cin >> n >> a >> b;
    cout << (n*((a*b)+(a*b)));
    return 0;
}

আলোচনাঃ
প্রবলেম টা প্রথমবার পড়ে সলভ করা ই বাদ দিয়েছিলাম। আসলে আমি কনফিউশনের মধ্যে ছিলাম। পরে যখন বুঝতে পারলাম এটা সিমপ্লি যোগ-গুন এর কাজ তখন সে সলভ করলাম। সত্যি বলছি :D

Comments

Popular posts from this blog

Solution - Codeforces Problem 327B - Hungry Sequence

Solution - Timus Problem 1409. Two Gangsters