Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

A group of students have been told to get into teams of a specific size for their class work. design and implement a program that prompts for the number of students in the group and the size of the teams to be formed, and display how many teams can be formed and how many students are left without a team.
Problem : Common Schedule
The Leaders of all countries around the world need to gather in order to sign the World Peace Summit.

Today is the D-Day. Given N countries and the schedule of their leaders for next 24 hours, your task is to find a maximum time slot such that all leaders are available during that period.
Input Format:

The first line contains N, the number of countries.

The following line contains:
1. I - unique id of the leader
2. [A , B) - the time slot when the leader is busy i.e. including time A, but excluding time B

End of input is given by "-1"

Note:
• Each country will have only one representative
• Time slot [A, B) will be in the format HH:MM
Problem : Super ASCII String Cost
A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets ('a'-'z') and the ascii values will starts from 1 (i.e ascii value of 'a' is 1 and 'z' is 26). Now given a string S, you can perform operations, namely, add, delete and replace of any character present in the string. Every operation will consists of following costs

add = 2 unit
replace = 1 unit
delete = 3 unit

Your task is to convert the string to super ascii with the minimum cost. While converting the string to super ascii, the final string should contain the same characters as in the input string.
Input Format:

First line starts with T i.e. number of test cases, and then T lines will follow each containing a string "S".
Output Format:

Print the minimum cost of conversion for each string to a Super Ascii string.
Constraints:
1<=T<=100
1<=|S|<=300, S will contains only lower case alphabets ('a'-'z').
Sample Input
I am a new learner in python. I have completed learning the basics in it. I am in need to learn the "os" module in it. But i am not able to understand it can any one help me in this
Problem Description

Given a set of integers
Print out the maximum per line.
The first number per line indicates the number of integers following it.
The first number per line should not be included in the process.
Input

zroeD.in
Output

standard output
Sample Input

4 6 5 4 7
9 2 6 5 8 4 5 7 3 6
7 4 2 5 7 3 4 3
Sample Output

7
8
7
Write a program in c input a year and display it lave year or not.
Implement FLAMES game
F-Friend
L-Love
A-Affection
M-Marriage
E-Enemy
S-Sister
Problem : Beautiful Substring
A string is said to be "Beautiful", if it contains only non repetitive alphabets. Let S be the string with lower case alphabets, your task is to find out the longest "Beautiful sub-string" present in the given string S.

Input Format:

First line starts with T, which is the number of test cases. Each test case contains string S.
Output Format:

Print the first longest beautiful sub string present in the string S.
Constraints:
1<=T<=10
1<=|S|<=5500, S will contain only lower case alphabets.
Sample Input and Output
SNo. Input Output
1
2
ss
abcdeddd
s
abcde

Note:

Please do not use package and namespace in your code. For object oriented languages your code should be written in one class.
Note:

Participants submitting solutions in C language should not use functions from <conio.h> / <process.h> as these files do not exist in gcc
5. Write a program that uses while loops to perform the following steps:
a. Prompt the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).
b. Output all odd numbers between firstNum and secondNum.
c. Output the sum of all even numbers between firstNum and secondNum.
d. Output the numbers and their squares.
e. Output the sum of the square of the odd numbers between firstNum and secondNum.

Thanks
write a c++ program using class to input marks and print it
LATEST TUTORIALS
APPROVED BY CLIENTS