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
# Write a command-line program that prints out the sum of two non-negative integers as input arguments. | |
# Input arguments are UTF-8 encoded Korean characters only listed as '일이삼사오육칠팔구' and '십백천만억조', and also your program's output should be. | |
# The less you use ifs, the higher you get scored. Google Korean Numbering System if you are not familiar with. | |
import sys | |
def get_sum(first_num, second_num): | |
first_list = [s for s in first_num] | |
second_list = [s for s in second_num] | |
end = 0 |
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
# Write a command-line program that prints out the sum of two non-negative integers as input arguments. | |
# You must not use any built-in BigInteger library or convert the inputs to integer directly. | |
import sys | |
def get_sum(first_num, second_num): | |
first_list = [s for s in first_num] | |
second_list = [s for s in second_num] | |
end = 0 |