Why does sometime sololearn code coach problems refuse some correct codes. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why does sometime sololearn code coach problems refuse some correct codes.

Sololearn problems

6th Jul 2021, 4:47 PM
MATOVU CALEB
MATOVU CALEB - avatar
20 Answers
+ 2
number of candles must be hardcoded (9)
6th Jul 2021, 5:01 PM
visph
visph - avatar
+ 9
It won't refuse any codes untill it satisfies all the tests. There might be some minor bugs bcz of which the code was refused.
6th Jul 2021, 4:51 PM
Aysha
Aysha - avatar
+ 5
You just need to remove candle input as it is already known that each friend needs 9 candles and finally add bracket to whole total friends = int(input()) total = ((friends * 9) + 9) print(total) Now it's working properly
6th Jul 2021, 5:01 PM
Aysha
Aysha - avatar
+ 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
7th Jul 2021, 10:00 AM
Lothar
Lothar - avatar
+ 4
visph now I solved the code problem Properly
6th Jul 2021, 5:09 PM
Aysha
Aysha - avatar
+ 4
visph yes that's my mistake I didn't notice the real problem. Thank you for saying me that I was wrong
6th Jul 2021, 5:18 PM
Aysha
Aysha - avatar
+ 4
visph your right Lothar may have missed seeing your answer. This is very bad that most of the time the one who gives best answer don't get what he deserves.
6th Jul 2021, 5:34 PM
Aysha
Aysha - avatar
+ 3
MATOVU CALEB , the task description is talking about only one input, but your code has 2 inputs.
6th Jul 2021, 5:06 PM
Lothar
Lothar - avatar
+ 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.
6th Jul 2021, 4:58 PM
MATOVU CALEB
MATOVU CALEB - avatar
+ 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
6th Jul 2021, 4:58 PM
MATOVU CALEB
MATOVU CALEB - avatar
+ 2
Aysha Simra excuse me, but you're wrong...
6th Jul 2021, 5:02 PM
visph
visph - avatar
+ 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')
6th Jul 2021, 5:27 PM
visph
visph - avatar
+ 2
visph Sorry for that
6th Jul 2021, 5:33 PM
MATOVU CALEB
MATOVU CALEB - avatar
+ 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)...
6th Jul 2021, 4:51 PM
visph
visph - avatar
+ 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
6th Jul 2021, 5:00 PM
visph
visph - avatar
+ 1
Lothar that's what I said 6 minutes ago ^^
6th Jul 2021, 5:08 PM
visph
visph - avatar
+ 1
OK thanks to you all
6th Jul 2021, 5:10 PM
MATOVU CALEB
MATOVU CALEB - avatar
+ 1
Aysha Simra yes, but with the help of who? your first answer said something wrong, not noticed the real problem ^^
6th Jul 2021, 5:11 PM
visph
visph - avatar
+ 1
I have understood my problem. I didn't look at the problem correctly. Thanks for your time.
6th Jul 2021, 5:23 PM
MATOVU CALEB
MATOVU CALEB - avatar
+ 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.
7th Jul 2021, 2:02 PM
Pavel Toshinski
Pavel Toshinski - avatar