Submission #8157720


Source Code Expand

Copy
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int a = scn.nextInt(), b = scn.nextInt(), x = scn.nextInt();
		if(x <= a*a*b/2) {
			double h = (double)x/(double)(a*b);
			System.out.println(Math.atan2(h, b));
		}else {
			double h = (double)(a*b*a-x)/(double)(a*a);
			System.out.println(90.0-Math.atan2(h,a));
		}
	}

}

Submission Info

Submission Time
Task D - Water Bottle
User hururu
Language Java8 (OpenJDK 1.8.0)
Score 0
Code Size 423 Byte
Status WA
Exec Time 97 ms
Memory 23252 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 400
Status
WA × 3
WA × 15
Set Name Test Cases
Sample sample00, sample01, sample02
All handmade03, handmade04, random05, random06, random07, random08, random09, random10, random11, random12, random13, random14, sample00, sample01, sample02
Case Name Status Exec Time Memory
handmade03 WA 97 ms 23252 KB
handmade04 WA 93 ms 20948 KB
random05 WA 94 ms 19284 KB
random06 WA 95 ms 19412 KB
random07 WA 95 ms 19796 KB
random08 WA 93 ms 21844 KB
random09 WA 95 ms 19796 KB
random10 WA 93 ms 20692 KB
random11 WA 95 ms 20692 KB
random12 WA 94 ms 19796 KB
random13 WA 97 ms 20820 KB
random14 WA 96 ms 21844 KB
sample00 WA 94 ms 19028 KB
sample01 WA 94 ms 21844 KB
sample02 WA 93 ms 19028 KB