Naruto is a Genin (beginner Ninja) in the Hidden Leaf

Naruto is a Genin (beginner Ninja) in the Hidden Leaf village. He dreams of one day becoming the Hokage of the village (highest ranked Ninja). For that to happen, he has to train day and night. Most importantly, he has to practice various Ninja techniques. Ninja techniques can be divided into four elemental types: – Fire-based (Katon) techniques – Water-based (Suiton) techniques – Wind-based (Futon) techniques – Light-based (Raiton) techniques However, Naruto can only perform the first three types only (he cannot do Light-based techniques). Whenever Naruto performs a technique, his Chakra (inner energy) is consumed a little. Naruto’s Mentor (Jiraya-Sama �) is taking Naruto for a training camp. The camp will last for N days. On each training day i (where i ranges from 1 to N), Naruto is allowed to perform one Ninja technique only. Each technique consumes a different amount of chakra on different days. For example, a Fire-based technique might consume 10 chakra points on day 1 but could consume 15 chakra points on day 3 or 8 chakra points on day 4 and so on. Naruto is allowed to perform any technique he likes in any training day, however, JirayaSama doesn’t allow him to perform two techniques of the same type in two successive days. For example, If on day 1 Naruto performs a Wind-based technique, then on day 2 he is allowed to perform Water-based technique or Fire-based technique but not a Wind-based technique, because that would mean he performed two Wind-based techniques in a row which will make Jiraya-Sama angry. Find the minimum amount of Chakra needed by Naruto to finish the training camp.(SOLVE IT IN C++ OR JAVA)

How Our Website Works

1. FILL IN OUR SIMPLE ORDER FORM

It has never been easier to place your order. Fill in the initial requirements in the small order form located on the home page and press “continue” button to proceed to the main order form or press “order” button in the header menu. Starting from there let our system intuitively guide you through all steps of ordering process.

2. PROCEED WITH THE PAYMENT

All your payments are processed securely through PayPal. This enables us to guarantee a 100% security of your funds and process payments swiftly.

3. WRITER ASSIGNMENT

Next, we match up your order details with the most qualified freelance writer in your field.

4. WRITING PROCESS

Once we have found the most suitable writer for your assignment, they start working on a masterpiece just for you!

5. DELIVERY

Once finished, your final paper will be available for download through your personal dashboard. You will also receive an email notification with a copy of your paper attached to it. Sometimes, the writer may leave a note for you about the order in case there is any additional information that they need to give you.

Leave a Reply

Your email address will not be published.