I am unable to understand the problem please someone explain me in simple terms

# | User | Rating |
---|---|---|

1 | MiFaFaOvO | 3681 |

2 | Um_nik | 3544 |

3 | maroonrk | 3431 |

4 | tourist | 3409 |

5 | apiadu | 3397 |

6 | 300iq | 3317 |

7 | ecnerwala | 3260 |

7 | Benq | 3260 |

9 | LHiC | 3229 |

10 | TLE | 3223 |

# | User | Contrib. |
---|---|---|

1 | Errichto | 194 |

2 | antontrygubO_o | 191 |

3 | vovuh | 178 |

4 | pikmike | 176 |

5 | tourist | 166 |

6 | Um_nik | 165 |

7 | McDic | 164 |

8 | ko_osaga | 163 |

9 | Radewoosh | 162 |

10 | 300iq | 156 |

I am unable to understand the problem please someone explain me in simple terms

↑

↓

Codeforces (c) Copyright 2010-2020 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: May/29/2020 01:36:34 (h1).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|

Auto comment: topic has been updated by PrasannaBalaji (previous revision, new revision, compare).Something like this maybe:

Please don't post all bold or caps. It hurts the eye...

I just started using codeforces sry that i hurt your eyes:)

I can understand the code but can you explain me the question for once

Auto comment: topic has been updated by PrasannaBalaji (previous revision, new revision, compare).As for the question, all we need to do is with a given number of sticks, form an addition equation of 2 numbers and output the additional sticks needed. The minimal equation that we can form is |+|=|| and we would need 4 matches. Looking at this mathematically, we would always need even number of sticks as RHS == LHS always. The LHS part needs (answer)/2 sticks and RHS would need (answer)/2. The solution approach goes like, if we have even number of matches => we don't need additional sticks (hence 0) if odd => we need 1 match to make it even (hence 1).

Hope you got what you needed :)

Yes I got It