Chef and Chapters CodeChef Solution | CodeChef Problem Solution 2022
This semester, Chef took courses. Each course has units and each unit has chapters in it.
Find the total number of chapters Chef has to study this semester.
Input Format
- The first line will contain , the number of test cases. Then the test cases follow.
- Each test case consists of a single line of input, containing three space-separated integers and .
Output Format
For each test case, output in a single line the total number of chapters Chef has to study this semester.
Constraints
Sample Input 1
3
1 1 1
2 1 2
1 2 3
Sample Output 1
1
4
6
Explanation
Test case : There is only course with unit. The unit has chapter. Thus, the total number of chapters is .
Chef and Chapters CodeChef Solution | CodeChef Problem Solution 2022
Presents for Cheffina CodeChef Solution | CodeChef Problem Solution 2022
Chef and Bird farm CodeChef Solution | CodeChef Problem Solution 2022
Valentine Vex CodeChef Solution | CodeChef Problem Solution 2022
Buying Sweets CodeChef Solution | CodeChef Problem Solution 2022
Reduce to 1 CodeChef Solution | CodeChef Problem Solution 2022
Three Arrays CodeChef Solution | CodeChef Problem Solution 2022
Test case : There are courses with unit each. Thus, there are units. Each unit has chapters. Thus, the total number of chapters is .
Test case : There is only course with units. Each unit has chapters. Thus, the total number of chapters is .
Join Now for Solution:-
No comments:
Post a Comment