• API
• FAQ
• Tools
• Archive
daily pastebin goal
42%
SHARE
TWEET

# Untitled

a guest Oct 15th, 2018 58 Never
ENDING IN00days00hours00mins00secs
1. T = 2
2. AList = [[0,0,0,0,0], [0,0,0,0,0]]
3. BList = [[1,2,4,2,3], [1,2,4,2,4]]
4.
5. def magic(i):
6.     AList[t][i] = int(AList[t][i]) + 1
7.     AList[t][i+1] = int(AList[t][i+1]) + 2
8.     AList[t][i+2] = int(AList[t][i+2]) + 3
9.
10. for t in range(T):
11.     nie = False
12.     for i in range(len(AList[t]) - 2):
13.         Diff = int(int(AList[t][i]) - int(BList[t][i]))
14.         if Diff > 0:
15.             print('NIE')
16.             nie = True
17.             break
18.         elif Diff == 0:
19.             pass
20.         else:
21.             for r in range(Diff): #Here, this loop doesn't work
22.                 print('asd')
23.                 magic(i)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

Top