Import Java
Import Java
*;
import java.io.*;
import java.math.*;
}
TEST BASIC02
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int test=sc.nextInt();
sc.nextLine();
while (test!=0) {
String s=sc.nextLine();
System.out.println(s);
test--;
}
}
}
BASIC 003
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int test=sc.nextInt();
sc.nextLine();
while (test!=0) {
String s=sc.nextLine();
System.out.println("Hi "+s);
test--;
}
}
}
BASIC 005\
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
while(t!=0){
int a=sc.nextInt();
int b=sc.nextInt();
int c=sc.nextInt();
int d=sc.nextInt();
int e=sc.nextInt();
System.out.println((long)a+b+c+d+e);
t--;
}
}
}
BASIC 001
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int test=sc.nextInt();
sc.nextLine();
while (test!=0) {
String s=sc.nextLine();
System.out.println(s);
test--;
}
}
}
ELAB 2312
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s;
while(sc.hasNextLine()){
s = sc.nextLine();
int count = 0;
for(int i = 0; i < s.length(); i++){
if(s.charAt(i)>='0' && s.charAt(i)<='9'){
count++;
}
}
System.out.println(count);
}
}
}