Mitrezzz

СНЗ Лаб 1 Таблица на трети корени

Nov 3rd, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. if __name__ == "__main__":
  2.     m = int(input())
  3.     n = int(input())
  4.     x = int(input())
  5.     #vasiot kod pisuvajte go tuka
  6.    
  7.     tablica = {}
  8.    
  9.     for broj in range(m,n+1):
  10.         tablica[broj**3] = broj
  11.    
  12.     try:
  13.         print(tablica[x])
  14.     except:
  15.         print('nema podatoci')
  16.    
  17.     print(tablica)
  18.  
  19. """
  20. Sample input
  21. 8
  22. 10
  23. 81
  24. Sample output
  25. nema podatoci
  26. {512: 8, 729: 9, 1000: 10}
  27. """
Add Comment
Please, Sign In to add comment