Argusoft Round 2
Argusoft Round 2
int num = 0;
Solution:
Output:
0
0
0
0
0
Loop Execution:
Shailee Joshi likes Chocolates. For her Anniversary, she bought some
Chocolates. If she gives 6 Chocolates to each friend, one friend will get
only 4 Chocolates. Also, if she gives 4 Chocolates to each friend, she
will have 30 Chocolates remaining. How many Chocolates she got on
her Anniversary, and how many friends are there?
Problem
Shailee Joshi likes Chocolates. For her Anniversary, she bought some
Chocolates. If she gives 6 Chocolates to each friend, one friend will get only 4
Chocolates. Also, if she gives 4 Chocolates to each friend, she will have 30
Chocolates remaining. How many Chocolates she got on her Anniversary, and
how many friends are there?
If yes, what is the minimum number of movements that the boat has
to make from shore to shore?
Problem
Given:
A boat can carry either:2 children, or 1 adult.
The boat can be rowed by either a child or an adult.
There are 246 adults.
2 children are available to help.
Goal: Get all 246 adults across the river using minimum boat
movements.
Problem
Strategy:
Only children can bring the boat back (since only one person can row
the boat and adults can't be left alone without the boat).
So, the process goes like this:
1. 2 children cross together.
2. 1 child returns.
3. 1 adult crosses alone.
4. 1 child returns.
This 4-step cycle moves 1 adult across and brings the boat back to the starting
side. But for the last adult, we don’t need to return the child.
Problem
Strategy:
For (n-1) adults:
(4×245) = 980 moves
For the last adult:
2 children go (1 move)
1 child returns (1 move)
1 adult goes (1 move)
→ No return needed. Total = 3 moves
So, total number of moves: 980+3 = 983 movements
Problem
A lorry driver, once in a week, leaves his house and drives to the
railway station to pick up supplies. At 6:00 PM, one-seventh of the
way to the station, he passes the Gurudwara. At 6:20 PM, one-third of
the way, he passes the Panjabi Dhaba. At what time does he reach the
station?
Problem
A lorry driver, once in a week, leaves his house and drives to the
railway station to pick up supplies. At 6:00 PM, one-seventh of the
way to the station, he passes the Gurudwara. At 6:20 PM, one-third of
the way, he passes the Panjabi Dhaba. At what time does he reach the
station?
Ans: 7:30 PM
Problem
If a seller gives 25% discount, he still earns 25% profit.If he now gives
10% discount, then what is the profit percentage he gains?
Problem
Let the Marked Price (MP) be ₹100.
Case 1:
Discount = 25% → Selling Price (SP) = 75% of MP = ₹75
Profit = 25% → Cost Price (CP) = (100/100+Profit%) X SP = (100/125) X 75 = 60
So, Cost Price is ₹60
Case 2:
Now the seller gives a 10% discount,
SP = 90% of MP = ₹ 90 & CP = ₹ 60 same as earlier
Four train tickets from city A to B and six tickets from city A to C cost
Rs. 190. Also, ten tickets from A to B and two tickets from A to C cost
Rs. 202. Find the fare of one train ticket to cities B and C respectively
from A.
Problem