<Hackerrank 문제풀이: 파이썬> Polar Coordinates
겨우겨우 풀었던 문제이다: from cmath import phase import re, sys def split(s, p = re.compile(r'([+-]*\d+)')): return [e for e in p.split(s) if e] complex_num = sys.stdin.readline().strip() complex_num_list = split(complex_num) if len(complex_num_list) == 1: print('%f\n%f' %(abs(complex(int(complex_num_list[0]), 0)), phase(complex(int(complex_num_list[0]), 0)))) elif len(complex_num_list) ==..