Submission #1553708


Source Code Expand

import math
a, b, c = raw_input().split()
a = int(a)
b = int(b)
c = int(c)
if (a == b and b == c) :
    if (a % 2 == 0) :
        print -1
    else :
        print 0
else :
    mx = max(max(a, b), c)
    mn = min(min(a, b), c)
    print (int(math.log(float(mx - mn)) / math.log(2)) - 1)

Submission Info

Submission Time
Task A - Cookie Exchanges
User xc01
Language Python (2.7.6)
Score 0
Code Size 299 Byte
Status WA
Exec Time 10 ms
Memory 2568 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
AC × 2
WA × 1
AC × 7
WA × 10
Set Name Test Cases
Sample sample1.txt, sample2.txt, sample3.txt
All sample1.txt, sample2.txt, sample3.txt, in1.txt, in10.txt, in11.txt, in2.txt, in3.txt, in4.txt, in5.txt, in6.txt, in7.txt, in8.txt, in9.txt, sample1.txt, sample2.txt, sample3.txt
Case Name Status Exec Time Memory
in1.txt WA 10 ms 2568 KB
in10.txt AC 10 ms 2568 KB
in11.txt AC 10 ms 2568 KB
in2.txt WA 10 ms 2568 KB
in3.txt WA 10 ms 2568 KB
in4.txt WA 10 ms 2568 KB
in5.txt WA 10 ms 2568 KB
in6.txt WA 10 ms 2568 KB
in7.txt WA 10 ms 2568 KB
in8.txt WA 10 ms 2568 KB
in9.txt AC 10 ms 2568 KB
sample1.txt AC 10 ms 2568 KB
sample2.txt AC 10 ms 2568 KB
sample3.txt WA 10 ms 2568 KB