import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
StringBuffer sb = new StringBuffer("");
String m="";
while((m=br.readLine())!=null) {
String []str=m.split(" ");
for(int i=0;i<str.length;i++){
if(i>0)
sb.append(" ");
sb.append(new StringBuilder(str[i]).reverse());
}
sb.append("\n");
}
System.out.print(sb);
}
}
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
StringBuffer sb = new StringBuffer("");
String m="";
while((m=br.readLine())!=null) {
String []str=m.split(" ");
for(int i=0;i<str.length;i++){
if(i>0)
sb.append(" ");
sb.append(new StringBuilder(str[i]).reverse());
}
sb.append("\n");
}
System.out.print(sb);
}
}
No comments:
Post a Comment