This file contains 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
import collections | |
import datetime | |
import itertools | |
import logging | |
import shelve | |
import requests | |
import requests.adapters | |
import tqdm | |
import urllib3.util.retry |
This file contains 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
sub find_pair { | |
my ($elems, $target) = @_; | |
my @sums = map { eval } glob join "+", map "{$_}", map join(",", @$_), $elems, $elems; | |
while (my ($i, $s) = each @sums) { | |
next unless $s == $target; |
OlderNewer