# Python expressiveness

Here i will post my solution of the first two problems in the qualifying round in the Google Code Jam. Both are easy problems.

The first one is:

```#!/usr/bin/python

for i in xrange(4):
if i + 1 == row_number:
row = map(int, raw_input().split(' '))
else:
raw_input()
return row

ncases = int(raw_input())

for ncase in xrange(ncases):
first_row_number = int(raw_input())

second_row_number = int(raw_input())
match_count = 0
number = 0
for i in first_row:
for j in second_row:
if i == j:
number = i
match_count += 1
break

answer = 'Case #' + str(ncase + 1) + ': '
if match_count == 0:
print answer + 'Volunteer cheated!'
elif match_count == 1:
print answer + str(number)
else:
```

And the other one was https://code.google.com/codejam/contest/2974486/dashboard#s=p1:

```#!/usr/bin/python

ncases = int(raw_input())

for ncase in xrange(ncases):
data = map(float, raw_input().split(' '))
C, F, X = tuple(data)

if X <= C:
print 'Case #' + str(ncase + 1) + ': ' + str(X/2.0)
else:
house_times = [C/2.0]
min_time = X/2.0

for i in xrange(int(X)/int(C)):