1. 
/**
* Angewandte Mathematik, SS11
* Problem: 11936 The Lazy Lumberjacks
* Link: http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=3087
*
* @author Ritter Marius
* @author Wende Tom
* @author Zehentbauer Stefan
* @version 1.0, 06/20/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.124
*/

import java.util.Scanner;


public class Main {

public static void main(String[] args){

Scanner scr = new Scanner(System.in);
int anzahl = scr.nextInt();
int a;
int b;
int c;
for(int i = 0; i < anzahl; i++){
a = scr.nextInt();
b = scr.nextInt();
c = scr.nextInt();
if(a+b > c && b+c > a && a+c > b){
System.out.println("OK");
}else System.out.println("Wrong!!");
}

}

}

2.

/**
* Angewandte Mathematik, SS11
* Problem: 11936 The Lazy Lumberjacks
* Link:
*
* @author Schramm, Felix
* @author Vogel, Johannes
* @version 1.0, 06/20/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.148
*/

import java.util.Scanner;

public class Main {


public static void main(String[] args) {
Scanner input = new Scanner(System.in);
StringBuffer output = new StringBuffer();
int cases = input.nextInt();
int sideOne, sideTwo, sideThree;
boolean ok;
String okay = "OK\n";
String wrong = "Wrong!!\n";

while(cases > 0){
ok=true;
sideOne = input.nextInt();
sideTwo = input.nextInt();
sideThree = input.nextInt();
if(sideOne>=sideTwo+sideThree)
ok=false;
if(sideTwo>=sideOne+sideThree)
ok=false;
if(sideThree>=sideOne+sideTwo)
ok=false;
if(ok)
output.append(okay);
else
output.append(wrong);
cases--;
}
System.out.print(output);
}

}

3.

/**
> > > * Angewandte Mathematik, SS11
> > > * Problem: 11936 - The Lazy Lumberjacks
> > > * Link:
> > >
> >
> http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=3087
> > >  * @author Brielbeck, Daniel
> > > * @author Weber, Georg
> > > * @version 1.0, 06/21/2011
> > > * Method : Ad-Hoc
> > > * Status : Accepted
> > > * Runtime: 0.116
> > > */
> > > import java.io.BufferedReader;
> > > import java.io.InputStreamReader;
> > >
> > > public class Main {
> > >
> > > public static void main(String[] args) throws Exception {
> > > BufferedReader reader = new BufferedReader(new InputStreamReader(
> > > System.in));
> > > String input;
> > > int count = Integer.parseInt(reader.readLine());
> > >
> > > for (int i = 0; i < count; i++) {
> > > input = reader.readLine();
> > > if (input.equals(null))
> > > break;
> > > String[] values = input.split(" ");
> > > double a = Long.valueOf(values[0]);
> > > double b = Long.valueOf(values[1]);
> > > double c = Long.valueOf(values[2]);
> > >
> > > double temp =
> > > Math.acos((Math.pow(b,2)+Math.pow(c,2)-Math.pow(a,2))/(2.0*b*c));
> > > double temp2 =
> > > Math.acos((Math.pow(a,2)+Math.pow(c,2)-Math.pow(b,2))/(2.0*a*c));
> > > double temp3 =
> > > Math.acos((Math.pow(a,2)+Math.pow(b,2)-Math.pow(c,2))/(2.0*b*a));
> > > if
> > >
> >> (temp!=0.0&&temp2!=0.0&&temp3!=0.0&&a>0&&b>0&&c>0&&temp+temp2+temp3<=180.0) System.out.println("OK");
> > > 			else System.out.println("Wrong!!");
> > > }
> > > }
> > > }

4.

/**
* Angewandte Mathematik, SS11
* Problem: 11936 - The Lazy Lumberjacks
* Link: http://uva.onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=3087
*
* @author Markus Schöllner
* @author Andreas Maier
* @version 1.0, 06/26/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.124
*/

import java.util.Arrays;
import java.util.Scanner;


public class Main {


public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int lines;
int[] sort = new int[3];

lines = input.nextInt();
for(int c=0; c<lines; c++){
sort[0]=input.nextInt();
sort[1]=input.nextInt();
sort[2]=input.nextInt();

Arrays.sort(sort);

if(sort[2]<(sort[0]+sort[1]))System.out.println("OK");
else{
if((sort[0]==sort[1])&&(sort[1]==sort[2]))System.out.println("OK");
else System.out.println("Wrong!!");
}
}
}

}

5.

/**
* Angewandte Mathematik, SS11
* Problem: 11936 - The Lazy Lumerjacks
* Link:
*
* @author Benjamin Vogt
* @author Sebastian Stumpf
* @version 1.0, 05/05/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0,104
*/

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;


public class Main {

public static void main(String[] args) throws Exception {


BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer tokenizer;
int counter = 1;
double n;
double a;
double b;
double c;

tokenizer = new StringTokenizer(br.readLine());
n = Integer.parseInt(tokenizer.nextToken());

while(counter <= n) {

tokenizer = new StringTokenizer(br.readLine());
a = Double.parseDouble(tokenizer.nextToken());
b = Double.parseDouble(tokenizer.nextToken());
c = Double.parseDouble(tokenizer.nextToken());

if((a+b)>c && (a+c)>b && (b+c)>a) {

System.out.println("OK");
}

else {
System.out.println("Wrong!!");
}
counter++;
}
}
}