first commit

This commit is contained in:
Nyagami
2022-12-15 23:51:04 +07:00
commit 87d51fb251
292 changed files with 12623 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import java.util.Scanner;
import java.util.Stack;
public class Main{
public static void main(String[] arg){
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
sc.nextLine();
while(t-->0){
String line = sc.nextLine();
String[] w = line.split("[' ']+");
for(int i=0; i<w.length; i++){
for(int j=0; j<w[i].length(); j++){
System.out.print(w[i].charAt(w[i].length()-j-1));
}
System.out.print(' ');
}
System.out.println("");
}
sc.close();
}
}