題目
代碼+思路
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int[] h=new int[n];
for(int i=0;i<n;i++){
h[i]=sc.nextInt();
}
for(int i=0;i<n;i++){
if(h[i]%5==1||h[i]%5==3||h[i]%5==4)
System.out.println("niu");
if(h[i]%5==0||h[i]%5==2)
System.out.println("yang");
}
}
}