Please read the new rule regarding the restriction on the use of AI tools. ×

Ways to speed up code on watermelon

Revision en2, by scriabin, 2022-10-16 06:56:22
w = int(input())

if w % 2:
    print("NO")
elif w == 2:
    print("NO")
else:
    print("YES")

here is my code, does anyone have recommendations to make it faster

edit; why the downvotes, where is a place i can discuss my code and figure out improvement.

Tags python, watermelon, 800, implementation

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English scriabin 2022-10-16 06:56:22 95
en1 English scriabin 2022-10-16 06:16:23 220 Initial revision (published)