PROBLEM LINK:
https://www.codechef.com/CDGK2022/problems/PAYTAX
Author: indu712
Testers: vamshi365, kirtana01, gayathrii, lokesh_la9, harisankar14
Editorialist: bvsyaswanth1, kick_jayanth
DIFFICULTY:
TBD
PREREQUISITES:
None
PROBLEM:
In chef-Land chef pays X rupees as tax every month. Find how much amount does chef pays after 10 year to the Government .
EXPLANATION:
chef pays x rupees every month, per year there will be 12 months. we have to find how much amount chef pays for 10 years. So, essentially we have to multiply x with 120 to find the amount(10 * 12 months = 120 months).
TIME COMPLEXITY:
O(1) per test case
CODE(Python):
for _ in range(int(input())):
n = int(input())
print(10 * 12*n)
CODE(C++):
#include <bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t–){
int x;
cin>>x;
x = x * 12*10;
cout<<x<<endl;
}
return 0;
}