mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
8 lines
122 B
C++
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");
|
||
|
}
|