← All problemsSign in

Good Weather

CodeChefRating 835Open on judge ↗

The weather report of Chefland is *Good* if the number of sunny days in a week is strictly greater than the number of rainy days. Given $7$ integers $A_1, A_2, A_3, A_4, A_5, A_6, A_7$ where $A_i = 1$ denotes that the $i^{th}$ day of week in Chefland is a sunny day, $A_i = 0$ denotes that the $i^{th}$ day in Chefland is a rainy day. Determine if the weather report of Chefland is *Good* or not.

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start