#Codeforces problem

1 messages Β· Page 1 of 1 (latest)

rigid skiff
#

I can't understand this problem logic. Can anyone help me to understand the problem's logic???

wanton wagonBOT
#

<@&987246399047479336> please have a look, thanks.

wanton wagonBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

gloomy cairn
#

@rigid skiff which part doesn't make sense?

rigid skiff
#

it's logic i don't understand

main marlin
#

@rigid skiff u need to check that when the item is divided, half one is the same as half 2

#

just have to look out for the integer, that's all

rigid skiff
rigid skiff
brittle night
main marlin
brittle night
#

That property is the answer

brittle night
main marlin
#

there is a no spoon feed rule, we can and will help u do it yourself, but u will learn nothing really by asking the solution

brittle night
#

If you are trying cp, why do you even want us to code feed, you need to know little details to even get decent...

This is an easy problem and if you are not able to solve it, try starting with leetcode first or easy Q on codechef

You can even try AcodeDaily to practice efficiently peepo_heart

rigid skiff
#

ok thanks

brittle night
#

Haha

#

If u really want, then only an even number can be divided into 2 even numbers πŸ™‚

main marlin
#

ppst

#

-> 2 :p

rigid skiff
#

i have done it like this

main marlin
#

u lack a bracket, that's why intellij is underlining things

#

( at line 8 )

#

also, if u need to do exercises like this, copy paste the actual output.
Even if your code works, it will still fail as the output does not match

brittle night
#

That you can guess, not hinting at anything pepekek

rigid skiff
#

In my college, most students use codeforces to practice

#

i try other platforms because codeforces is hard for me. i can't understand the question

brittle night
brittle night
#

I started from there peepo_heart

rigid skiff
#

i have done several codechef problems

brittle night
#

Did you think about the possible edge case?

brittle night
rigid skiff
#

i like codechef

#

cause it's logic i understand easily

brittle night
#

Then study from there, what's the problem? Thinkfused

main marlin
#

well site is indicating u passed the test so u can pass on next one πŸ˜‰

brittle night
main marlin
#

nah, someone just passed that test, now another one is starting it with a compilation failure

#

one of them 2 has to be OP :p

brittle night
#

There is no edge case for 2
As it is an even number and can't be divided into two

brittle night
main marlin
#

no not really, click the status page πŸ˜‰

brittle night
#

I don't wanna open it on my phone πŸ₯²

main marlin
#

ah sec

#

live shot

brittle night
rigid skiff
#

yes

brittle night
#

Are u 1st year?

main marlin
#

not necessary, few ppl running it though

#

site has many, many buttons , me like pushing πŸ˜‰

brittle night
#

Pushing hard meow