Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.00 KB | None | 0 0
  1. from polygon_client import Polygon                                              
  2.                                                                                  
  3.                                                                                  
  4. p = Polygon(                                                                    
  5.     api_url="https://polygon.lksh.ru/api/",                                      
  6.     api_key="CENSORED",                          
  7.     api_secret="CENSORED")                      
  8.                                                                                  
  9. problems = p.contest_problems(1981)                                              
  10. for name, p in problems.items():                                                
  11.     print(">", name, str(p), p.tags())                                          
  12.                                                                                  
  13.     fields = [p.id, p.owner, p.name, p.deleted, p.favorite, p.access_type, p.revision, p.latest_package, p.modified]
  14.     print("Fields:")                                                            
  15.     for f in fields:                                                            
  16.         print("-", type(f), "|", repr(f))                                        
  17.                                                                                  
  18.     print(p.general_description())                                              
  19.     print(p.general_tutorial())                                                  
  20.     info = p.info()                                                              
  21.     print("inputFile =", repr(info.input_file), "|", type(info.input_file))        
  22.     print("outputFile =", repr(info.output_file), "|", type(info.output_file))  
  23.     print("interactive =", repr(info.interactive), "|", type(info.interactive))  
  24.     print("timeLimit =", repr(info.time_limit), "|", type(info.time_limit))        
  25.     print("memoryLimit =", repr(info.memory_limit), "|", type(info.memory_limit))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement