Submission #2377144


Source Code Expand

#!/usr/bin/env python3

import sys, math, copy
# import fractions, itertools
# import numpy as np
# import scipy

HUGE = 2147483647
HUGEL = 9223372036854775807
ABC = "abcdefghijklmnopqrstuvwxyz"

def main():
    a, b, c = map(int, input().split())
    a, b, c = sorted([a, b, c])
    for i in range(10000):
        if (a % 2) + (b % 2) + (c % 2) > 0:
            return i
        a, b, c = (a + b) // 2, (a + c) // 2, (b + c) // 2
    return -1

print(main())

Submission Info

Submission Time
Task A - Cookie Exchanges
User sen_7
Language Python (3.4.3)
Score 300
Code Size 460 Byte
Status AC
Exec Time 28 ms
Memory 3572 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 17
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 AC 28 ms 3572 KB
in10.txt AC 22 ms 3444 KB
in11.txt AC 27 ms 3444 KB
in2.txt AC 22 ms 3444 KB
in3.txt AC 22 ms 3444 KB
in4.txt AC 22 ms 3444 KB
in5.txt AC 22 ms 3444 KB
in6.txt AC 22 ms 3444 KB
in7.txt AC 22 ms 3444 KB
in8.txt AC 22 ms 3444 KB
in9.txt AC 27 ms 3444 KB
sample1.txt AC 21 ms 3444 KB
sample2.txt AC 26 ms 3444 KB
sample3.txt AC 22 ms 3444 KB