喝着清茶逛酒吧


私信TA

用户名:suibozhuliu

访问量:7166

签 名:

喜欢从来都不是喜欢,分离也从来都不是分离

等  级
排  名 663
经  验 3882
参赛次数 0
文章发表 13
年  龄 19
在职情况 学生
学  校 广东工业大学
专  业

  自我简介:

Scanner sc=new Scanner(System.in);
	    int n=sc.nextInt();
	    int arr[]=new int[n];
	    for(int a=0;a<n;a++) {
	    	arr[a]=sc.nextInt();
	    }
	    for(int a=0;a<n;a++) {
	    	boolean it=(arr[a]%2!=0);
	    	if(a!=n-1) {
	    	System.out.println(it);
	    	System.out.println();
	    	}
	    	else {
	    		System.out.println(it);
	    	}
	    }

解题思路:

注意事项:

参考代码:

 

0.0分

0 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换万能编程问答  

代码解释器

代码纠错

SQL生成与解释

  评论区