Created
September 1, 2022 18:15
-
-
Save saharshg29/644bdbbdae78e7383970eca0bb5c39b4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* package codechef; // don't place package name! */ | |
import java.util.*; | |
class Codechef | |
{ | |
public static void main (String[] args) | |
{ | |
Scanner input =new Scanner(System.in); | |
int t=input.nextInt(); | |
for(int i=0;i<t;i++) | |
{ | |
int N=input.nextInt(); | |
if(N<=4){ | |
System.out.println("YES"); | |
} | |
if(N>=4){ | |
while(N>=4){ | |
N=N-4; | |
} | |
if(N==0){ | |
System.out.println("NO"); | |
} | |
else{ | |
System.out.println("YES"); | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment