Submission #1454394


Source Code Expand

p, n = map(float, raw_input().split())
print -(1.0 / 2.0) * pow(1.0 - 2.0 * p, n) + (1.0 / 2.0)

Submission Info

Submission Time
Task A - eject
User roto_37
Language Python (2.7.6)
Score 0
Code Size 98 Byte
Status WA
Exec Time 14 ms
Memory 2820 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
AC × 29
WA × 4
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 14 ms 2820 KB
00-sample-01 AC 12 ms 2692 KB
10-random_small-00 AC 10 ms 2568 KB
10-random_small-01 AC 10 ms 2568 KB
10-random_small-02 AC 10 ms 2568 KB
10-random_small-03 AC 10 ms 2568 KB
10-random_small-04 AC 10 ms 2568 KB
10-random_small-05 AC 10 ms 2568 KB
10-random_small-06 AC 10 ms 2568 KB
10-random_small-07 AC 10 ms 2568 KB
10-random_small-08 AC 10 ms 2568 KB
10-random_small-09 AC 10 ms 2568 KB
20-random_large-00 AC 12 ms 2692 KB
20-random_large-01 AC 10 ms 2568 KB
20-random_large-02 AC 10 ms 2568 KB
20-random_large-03 AC 10 ms 2568 KB
20-random_large-04 AC 10 ms 2568 KB
20-random_large-05 AC 10 ms 2568 KB
20-random_large-06 AC 10 ms 2568 KB
20-random_large-07 AC 10 ms 2568 KB
20-random_large-08 AC 10 ms 2568 KB
20-random_large-09 AC 10 ms 2568 KB
30-p_zero-00 AC 10 ms 2568 KB
30-p_zero-01 AC 10 ms 2568 KB
30-p_zero-02 AC 10 ms 2568 KB
30-p_zero-03 AC 10 ms 2568 KB
30-p_zero-04 AC 10 ms 2568 KB
40-p_one-00 WA 10 ms 2568 KB
40-p_one-01 WA 10 ms 2568 KB
40-p_one-02 WA 10 ms 2568 KB
40-p_one-03 WA 10 ms 2568 KB
40-p_one-04 AC 10 ms 2568 KB
90-handmade-00 AC 10 ms 2568 KB