11 lines
200 B
Python
11 lines
200 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()
|