Submission #8166728
Source Code Expand
Copy
import java.io.*; import java.util.*; public class Main { void run() { Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); double x = sc.nextDouble(); x /= a; double ang = 0; if (b >= 2 * x / a) { ang = Math.atan2(b, 2 * x / b); } else { ang = Math.atan(2 * (a * b - x) / (a * a)); } System.out.println(ang * 180 / Math.PI); } public static void main(String[] args) throws FileNotFoundException { new Main().run(); } static void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }
Submission Info
Submission Time | |
---|---|
Task | D - Water Bottle |
User | fortoobye |
Language | Java8 (OpenJDK 1.8.0) |
Score | 400 |
Code Size | 618 Byte |
Status | AC |
Exec Time | 124 ms |
Memory | 23892 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 400 / 400 | ||||
Status |
|
|
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 | AC | 124 ms | 23892 KB |
handmade04 | AC | 106 ms | 20180 KB |
random05 | AC | 117 ms | 23124 KB |
random06 | AC | 107 ms | 20692 KB |
random07 | AC | 107 ms | 23124 KB |
random08 | AC | 107 ms | 20436 KB |
random09 | AC | 118 ms | 21076 KB |
random10 | AC | 106 ms | 21332 KB |
random11 | AC | 117 ms | 23252 KB |
random12 | AC | 117 ms | 20564 KB |
random13 | AC | 117 ms | 23380 KB |
random14 | AC | 113 ms | 21460 KB |
sample00 | AC | 106 ms | 20436 KB |
sample01 | AC | 106 ms | 22356 KB |
sample02 | AC | 116 ms | 20564 KB |