Skip to content

Instantly share code, notes, and snippets.

@Amorim33
Created August 22, 2025 02:29
Show Gist options
  • Select an option

  • Save Amorim33/16f08249e5b5f4ef29202ddcfbff1efa to your computer and use it in GitHub Desktop.

Select an option

Save Amorim33/16f08249e5b5f4ef29202ddcfbff1efa to your computer and use it in GitHub Desktop.
# O(1) -- Solução ótima
N, M = map(int, input().split())
if (N - 1) * 4 + N <= M:
print("S")
else:
print("N")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment