OJ-Problems-Source/HDOJ/2554_autoAC.cpp

8 lines
122 B
C++
Raw Normal View History

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