This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def func(): | |
| out = [] | |
| ar1 = [1, 27, 50, 49, 51, 99, 51, 51] | |
| for i1 in ar1: | |
| for i2 in ar1: | |
| if i1 + i2 == 100: | |
| out.append(tuple(sorted((i1, i2)))) | |
| out = set(out) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from time import time | |
| def sol(): | |
| words = open('words.txt') | |
| stuph = open('stuph_sample.txt').read() | |
| out = '' | |
| wordsl = [] | |
| for word in words: | |
| wordsl.append(word.strip()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $uri = 'https://mandrillapp.com/api/1.0/messages/send.json'; | |
| $params = array( | |
| "key" => 'KEY_GOES_HERE', | |
| "message" => array( | |
| "html" => 'HTML_MAIL', | |
| "to" => array( | |
| array("email" => 'TO_MAIL') | |
| ), |