Editorial for 第2回卬高杯 F問題 - Square


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: admin

概説

Nが奇数または4の倍数であれば良いです。

Python

Python3

N = input()
N1 = int(N[-2:])
if N1%2 == 1:print("Yes")
elif N1//2%2 == 1:print("No")
else:print("Yes")

Comments

There are no comments at the moment.