OJ-Problems-Source/HDOJ/2554_autoAC.cpp
2016-08-22 00:30:27 +08:00

8 lines
122 B
C++

#include <stdio.h>
int main()
{
int n;
while(scanf("%d",&n)&&n)
n*(n+1)/2&1?puts("N"):puts("Y");
}