0
Why does sometime sololearn code coach problems refuse some correct codes.
Sololearn problems
20 ответов
+ 2
number of candles must be hardcoded (9)
+ 5
Aysha Simra , visph ,
i recognize this frequently:
▪︎ i open and read a question, where no answers or no relevant answers are given at that time.
▪︎during the time i am writing my comment, there may come other answers, but i can not see them. in several cases i am interrupted, so my answer can take up to 15 minutes
▪︎after posting my answer, i can see that one or more answers are given with same or similar content
this the reason why we have possible duplication
+ 3
MATOVU CALEB ,
the task description is talking about only one input, but your code has 2 inputs.
+ 2
Eg.
There is a task in code coach called CANDLES but when I put this simple code.it does not run but when I run it on other compilers it runs perfectly.
candles = int(input())
friends = int(input())
total = (friends * candles) + 9
print(total)
This code does not run in the CANDLES
CODE COACH problem.
+ 2
Ihere is the problem if you need to look at it.
It is almost Hanukkah and the store in your town is completely out of candles! You decide to place an order online, and you talk to your friends to see who else needs candles. How many candles should you order in total for the holiday?
Task
Determine how many candles you need to order based on how many friends ask to join your order (each friend will need 9 candles).
Input Format
An integer that represents the number of friends that ask to order candles with you.
Output Format
An integer that represents the total number of candles that you need to order.
Sample Input
4
Sample Output
45
+ 2
Aysha Simra excuse me, but you're wrong...
+ 2
Aysha Simra I would guess that Lothar didn't noticed my previously posted answers before posted its own, but you have necessarly seen them... however nobody did upvote them (you only upvote answers saying your are wrong and pointing out the fact that you have be able to update your answer with my help), and MATOVU CALEB even not mark one of mine answer as best... it's its choice, but I believe I deserved at least to be upvoted: that's discouraging to help numerous others too often without positive returns (except sometimes 'thanks')
+ 2
visph
Sorry for that
+ 1
code coach never "refuse some correct codes"... if your solution fail, then it only means the expected output do not match your code output: maybe your logic is right, but you do not provide the exact output expected: bad case, unexpected spaces or output (while taking input as example)...
+ 1
your code takes two inputs, but tests expect only once input taken... so your code raise EOF error when running in code coach ;P
+ 1
Lothar that's what I said 6 minutes ago ^^
+ 1
OK thanks to you all
+ 1
Aysha Simra yes, but with the help of who? your first answer said something wrong, not noticed the real problem ^^
+ 1
I have understood my problem.
I didn't look at the problem correctly.
Thanks for your time.
+ 1
Check if there's an extra space in your print statement, it must be exactly like the test cases. I had these problems as well.