✔ 1071
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int i = sc.nextInt();
if (i != 0) {
System.out.println(i);
} else {
break;
}
}
}
}
✔ 1072
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
int num = sc.nextInt();
System.out.println(num);
}
}
}
✔ 1073
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
int num = sc.nextInt();
if (num != 0) {
System.out.println(num);
} else {
break;
}
}
}
}
✔ 1074
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
while (num > 0) {
System.out.println(num--);
}
}
}
✔ 1075
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
while (num > 0) {
System.out.println(--num);
}
}
}
✔ 1076
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextLine().charAt(0);
for (int i = num - 97; i >= 0; i--) {
System.out.println((char) (num - i));
}
}
}
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextLine().charAt(0);
int t = 'a';
do {
System.out.print((char) t++ + " ");
} while (t <= num);
}
}
✔ 1077
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 0; i <= n; i++) {
System.out.println(i);
}
}
}
✔ 1078
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int sum = 0;
for (int i = 1; i <= n; i++) {
if (i % 2 == 0) {
sum += i;
}
}
System.out.println(sum);
}
}
✔ 1079
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
char c;
for (int i = 0; i < s.length(); i++) {
c = s.charAt(i);
if (c == ' ') continue;
System.out.println(c);
if (c == 'q') break;
}
}
}
✔ 1080
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int sum = 0;
for (int i = 1; ; i++) {
sum += i;
if (sum >= n) {
System.out.println(i);
break;
}
}
}
}