摘要: 一、奇偶分家 给定N个正整数,请统计奇数和偶数各有多少个? 输入格式: 输入第一行给出一个正整N(≤);第2行给出N个非负整数,以空格分隔。 输出格式: 在一行中先后输出奇数的个数、偶数的个数。中间以1个空格分隔。 输入样例: 9 88 74 101 26 15 0 34 22 77 输出样例: 3 阅读全文
posted @ 2021-06-29 18:39 咖啡布丁 阅读(397) 评论(0) 推荐(0)
摘要: 一、输出字符串 输出事实:This is a simple problem. 1 public class Main { 2 public static void main(String args[]){ 3 System.out.println("This is a simple problem. 阅读全文
posted @ 2021-06-29 17:51 咖啡布丁 阅读(118) 评论(0) 推荐(0)
levels of contents