Hello coders, today we are going to solve Maximum Submissions Codechef Solutions whose Problem Code is MAXIMUMSUBS.
As you already know that this site does not contain only the Codefchef solutions here, you can also find the solution for other programming problems. I.e. Leetcode, C programs, C++ Programs Solutions, Python Programs, Web Technology, Data Structures, RDBMS Programs and Java Programs Solutions.

Problem
A participant can make 11 submissions every 3030 seconds. If a contest lasts for XX minutes, what is the maximum number of submissions that the participant can make during it?
It is also given that the participant cannot make any submission in the last 55 seconds of the contest.
Input Format
- The first line of input will contain a single integer TT, denoting the number of test cases.
- Each test case consists of a single integer XX, denoting the number of minutes.
Output Format
For each test case, output the maximum number of submissions a participant can make in XX minutes.
Constraints
- 1 ≤ T ≤30
- 1 ≤ X ≤30
Sample 1:
Input
4 1 2 3 4
Output
2 4 6 8
LinkedIn Skill Assessment Answers
Coursera Quiz Answers
Explanation:
Test case 1: The contest lasts for 11 minute, which is 60 seconds. A participant can make 2 submissions during this time — for example, in the 5-th second and in the 48-th second. Making 3 or more submissions is impossible.
Test case 2: The contest lasts for 2 minutes, which is 120seconds. A participant can make 4 submissions during this time.
Maximum Submissions Codechef Solution in JAVA
/* package codechef; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Codechef { public static void main (String[] args) throws java.lang.Exception { Scanner sc=new Scanner(System.in); int t = sc.nextInt(); while(t-- >0){ int n = sc.nextInt(); int d=n*60; System.out.println(d/30); } } }
Maximum Submissions Codechef Solution in CPP
#include <iostream> using namespace std; int main() { int n; cin>>n; while(n--) { int x; cin>>x; int y=x*60; cout<<y/30<<endl; } // your code goes here return 0; }
Maximum Submissions Codechef Solution in Python
try: n=int(input()) for i in range(n): num=int(input()) print(num*2) except: pass
Disclaimer: The above Problem (Maximum Submissions) is generated by CodeChef but the solution is provided by Chase2learn.This tutorial is only for Educational and Learning purpose.
Finally, we are now, in the end, I just want to conclude some important message for you
Note:- I compile all programs, if there is any case program is not working and showing an error please let me know in the comment section. If you are using adblocker, please disable adblocker because some functions of the site may not work correctly.
Please share our posts on social media platforms and also suggest to your friends to Join Our Groups. Don’t forget to subscribe.