+ 4
Solution for a problem
Hi I need code in python language that solve my problem The problem is In soccer four teams played with each other and fifa get six result to us and ask us for: 1-goal different 2-wins of each teams 3-loses of each of them 4-points of each of them I try to solve ot for few hours but I can't Help me please
7 ответов
+ 4
First make draft of this question & do it with in simple steps
+ 3
Did you do any code in those few hours? If yes, share it so that we can get an idea about how to help you efficiently.
+ 2
And this is my example input:
2-2
2-1
1-2
2-2
3-1
2-1
+ 1
Team a,team b, goal a- goal b
1, 2, 2-2
1,3, 2-1
1,4, 1-2
2,3, 2-2
2,4, 3-1
3,4, 2-1
With the the data in this way it is possible solve the problem
0
Thanks of all of you for helping me i finally get my result
0
The snail climbs up 7 feet each day and slips back 2 feet each night.
How many days will it take the snail to get out of a well with the given depth?
Sample Input:
31
Sample Output:
6
Explanation: Let's break down the distance the snail covers each day:
Day 1: 7-2=5
Day 2: 5+7-2=10
Day 3: 10+7-2=15
Day 4: 15+7-2=20
Day 5: 20+7-2=25
Day 6: 25+7=32
So, on Day 6 the snail will reach 32 feet and get out of the well at day, without slipping back that night.
Hint: You can use a loop to calculate the distance the snail covers each day, and break the loop when it reaches the desired distance.
pls help me out!!!