Remove editor files

This commit is contained in:
Kienan Stewart 2018-12-02 10:59:16 -05:00
parent 1570e6eb44
commit 303e17f251
2 changed files with 0 additions and 42 deletions

View File

@ -1,12 +0,0 @@
#!/usr/bin/env python3
import sys
def delta_frequency(f = sys.stdin):
df = 0
for l in f.readlines():
df += int(l)
print(df)
if __name__ == '__main__':
delta_frequency()

View File

@ -1,30 +0,0 @@
#!/usr/bin/env python3
def checksum(l):
double = 0
triple = 0
for item in l:
d, t = count_duplicate(item)
double += d
triple += t
return double * triple
def count_duplicate(item):
double = 0
triple = 0
c = dict()
for i in item:
if i in c:
c[i] += 1
else:
c[i] = 1
for k,v in c.items():
if v == 2:
double =11
if v == 3:
triple = 1
return (double, triple)
if __name__ == '__main__':
l = sys.stdin.readlines()
print(checksum(l))