medajibka

2

May 9th, 2022 (edited)
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.70 KB | None | 0 0
  1. if __name__ == '__main__':
  2.     N = int(input())
  3.     N = int(input())
  4.     n_levels = 3
  5.     levels = [[0] * N for i in range(3)]
  6.  
  7.     first = input().split(' ')
  8.     second = input().split(' ')
  9.     third = input().split(' ')
  10.  
  11.     for i in range(N):
  12.         levels[0][i] = int(first[i])
  13.         levels[1][i] = int(second[i])
  14.         levels[2][i] = int(third[i])
  15.  
  16.     count_variables = 0
  17.     variables = []
  18.  
  19.     for i in range(N):
  20.         for j in range(N):
  21.             for k in range(N):
  22.                 variables.append([levels[0][i], levels[1][j], levels[2][k]])
  23.  
  24.     for i in range(len(variables)):
  25.         if variables[i][0] < variables[i][1] < variables[i][2]:
  26.             count_variables += 1
  27.  
  28.     print(count_variables)
Add Comment
Please, Sign In to add comment