Ways to speed up code on watermelon

Revision en1, by scriabin, 2022-10-16 06:16:23
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

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)