10 lines
199 B
Python
10 lines
199 B
Python
from common import parse, split
|
|
|
|
|
|
def main():
|
|
l1, l2 = split(parse('input'))
|
|
print(sum(map(lambda x: x * len(list(filter(lambda y: y == x, l2))), l1)))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main() |