1. Java, Simon Baumgartner


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/*
* ACM Programming Contest
* Problem: 483 Word Scramble
* Run Time: 0.120
* Date: 2009-05-05
* Author: Simon Baumgartner
*/

public class Main {

public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String line = in.readLine();
do{
String[] tokens = line.split(" ");
String result = "";
for(String word: tokens){
StringBuilder sb = new StringBuilder(word);
result += sb.reverse() + " ";
}
// remove last whitespace before printing
System.out.println(result.substring(0, result.length()-1));
}while((line = in.readLine() ) != null);
}
}