Submission #982505
Source Code Expand
import java.util.*; class Main { public static void main(String args[]) { try (Scanner sc = new Scanner(System.in)) { double p = sc.nextDouble(); double n = sc.nextDouble(); double ans = -0.5 * Math.pow(1.0 - 2.0 * p, n) + 0.5; System.out.printf("%.20f\n", ans); } } }
Submission Info
Submission Time | |
---|---|
Task | A - eject |
User | goryudyuma |
Language | Java (OpenJDK 1.7.0) |
Score | 0 |
Code Size | 424 Byte |
Status | WA |
Exec Time | 227 ms |
Memory | 15200 KB |
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
All | 00-sample-00, 00-sample-01, 10-random_small-00, 10-random_small-01, 10-random_small-02, 10-random_small-03, 10-random_small-04, 10-random_small-05, 10-random_small-06, 10-random_small-07, 10-random_small-08, 10-random_small-09, 20-random_large-00, 20-random_large-01, 20-random_large-02, 20-random_large-03, 20-random_large-04, 20-random_large-05, 20-random_large-06, 20-random_large-07, 20-random_large-08, 20-random_large-09, 30-p_zero-00, 30-p_zero-01, 30-p_zero-02, 30-p_zero-03, 30-p_zero-04, 40-p_one-00, 40-p_one-01, 40-p_one-02, 40-p_one-03, 40-p_one-04, 90-handmade-00 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00-sample-00 | AC | 225 ms | 15004 KB |
00-sample-01 | AC | 224 ms | 15008 KB |
10-random_small-00 | AC | 224 ms | 15004 KB |
10-random_small-01 | AC | 223 ms | 15008 KB |
10-random_small-02 | AC | 221 ms | 14936 KB |
10-random_small-03 | AC | 220 ms | 15040 KB |
10-random_small-04 | AC | 223 ms | 15004 KB |
10-random_small-05 | AC | 221 ms | 14968 KB |
10-random_small-06 | AC | 225 ms | 15044 KB |
10-random_small-07 | AC | 225 ms | 14984 KB |
10-random_small-08 | AC | 220 ms | 14972 KB |
10-random_small-09 | AC | 221 ms | 14932 KB |
20-random_large-00 | AC | 220 ms | 15176 KB |
20-random_large-01 | AC | 222 ms | 15136 KB |
20-random_large-02 | AC | 221 ms | 15188 KB |
20-random_large-03 | AC | 223 ms | 15128 KB |
20-random_large-04 | AC | 223 ms | 15192 KB |
20-random_large-05 | AC | 222 ms | 15112 KB |
20-random_large-06 | AC | 222 ms | 15192 KB |
20-random_large-07 | AC | 222 ms | 15128 KB |
20-random_large-08 | AC | 224 ms | 15088 KB |
20-random_large-09 | AC | 227 ms | 15200 KB |
30-p_zero-00 | AC | 224 ms | 15060 KB |
30-p_zero-01 | AC | 225 ms | 15064 KB |
30-p_zero-02 | AC | 225 ms | 15064 KB |
30-p_zero-03 | AC | 221 ms | 15156 KB |
30-p_zero-04 | AC | 223 ms | 15076 KB |
40-p_one-00 | WA | 222 ms | 15152 KB |
40-p_one-01 | WA | 223 ms | 15132 KB |
40-p_one-02 | WA | 222 ms | 15176 KB |
40-p_one-03 | WA | 220 ms | 15104 KB |
40-p_one-04 | AC | 219 ms | 15116 KB |
90-handmade-00 | AC | 221 ms | 15012 KB |