Advertisement
PlotnikovPhilipp

Untitled

Oct 23rd, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. firstTime, secondTime = [int(i) for i in input().split()]
  3. tasks = input().split()
  4. i = 0
  5. second = first = 0
  6. while i < len(tasks):
  7.     if i % 2 == 0:
  8.         first += int(tasks[i]) * 20
  9.     else:
  10.         second += int(tasks[i]) * 20
  11.     i += 1
  12. if firstTime + first <= secondTime + second:
  13.     print('No chance.')
  14. else:
  15.     print('Dirty debug :(')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement