Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Syntax-wise and logic-wise, this part is wrong
so simple and genius, didn't think about it.
what is your p value for testing? I tried on several p value for n = 12933 and keep getting -1. what is the issue?
Not a kata issue. Please look at the top of the page to see how many guys passed the C Kata.
While I test- it shows "All tests Passed", but when I attempt, it shows error in 5th. All above 4 are shown as passed.
Can anyone guide me what's wrong here? (code writen in C)
请问一下测试用例12933的问题怎么解决,我搞不定!
expect12933,but was-1;
Your code receives the inputs you're asking for, you could print them.
Failed Test 5, 14, and 15. Each one is expecting -1 to be returned. I got 3263 for Test 5, 1 for Test 14, and 9400 for Test 15. If someone that finished and has the test cases can steer my in the right direction I'd appreciate it!
This comment is hidden because it contains spoiler information about the solution
Inception style conditional operators. Mind blown.