![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2010
Posts: 1
Rep Power: 0
![]() |
Solve these problems please
My Colleges Vacational Task given to me but i cannot able to solve it. please solve this for me.
Q1. A tortoise is moving on the straight road.It rests for some time after each step .The time is rest before moving the nth step is equal to the resting period before moving the (2n)th Step.And ,the resting time before moving the (2n+1)th step is equal to the resting time before moving the (2n)th step +1.It rests for 1 minute before moving the first step. 1): Find the minimum no. of steps the tortoise has to move before resting for exactly m minutes at some step. 2): The no. of steps that have been taken after a particular amount of time. 3): The amount of time it take to move a particular no. of steps. Input The first line of input will consist of an integer t=the no. of test cases to follow.Each test will consist of 3 integers N1,N2,N3.Where Ni is the input no. for the case i mentioned above. Output For each input case you have to pprint the answers to all part in a single line separated by spaces. Examples Input 2 3 13 10 2 12 10 Output 7 8 17 3 7 17 Q 2. Temperature The formula for converting a Gahrenhiet temperature G to the corresponding Delsius Temperature D is D=(G-A)*B/C. An Integer Gahrenheit Temperature is converted to Delsius and rounded to the nearest integer (rounding upto break the tie); the resulting integer Delsius temperature is converted back to Gahrenheit and rounded to the nearest integer (rounding upto break the tie too).For how many Gahrenheit Temperature T with A<=T<=N does the original temperature equal the final temperature? Note: the given equation may not be G=(D-32)*5/9. Input There are multiple test cases . Each test case consists of asingle line containing the four integer-A,B,C and N, listed in this order. Input is terminated by EOF(End Of Line). Output Specification For each test case , output one line - the answer. Sample Input 32 5 9 1000 Sample Output 539 |
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 7,869
Rep Power: 14
![]() ![]() |
Re: Solve these problems please
Sorry. I'm on my Vacational Task right now.
__________________
The person who coined the phrase, "There's no such thing as a stupid question," hasn't hung around here much. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers Politically Incorrect |
|
|
|
|
#3 |
|
PFO God In Training
![]() ![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 1,720
Rep Power: 7
![]() |
Re: Solve these problems please
We are not here to do your homework. Thread closed.
__________________
PFO's FAQ is here |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems with upgrade on Bloodshed Dev C++ | mattireland | C++ | 6 | May 8th, 2008 6:05 AM |
| Avoiding Stackoverflow error using recursion to solve a maze | Mjordan2nd | Java | 1 | Feb 9th, 2006 10:01 PM |
| problems loading 2 dlls in Delphi7 | nico765 | Delphi | 0 | Jan 7th, 2006 3:03 PM |
| 2 problems on permutations | alejandrito | Assembly | 0 | Dec 15th, 2005 3:07 AM |
| New Switch, FTP Problems | ViOLATiON | Coder's Corner Lounge | 6 | Sep 13th, 2005 1:44 PM |