ブリブリ備忘録 おっ、python

HackerRankの問題とコメント(python3) 拙いですが...

2018-05-03から1日間の記事一覧

Polar Coordinates  複素数

・問題 A complex number z=x+yj is completely determined by its real part and imaginary part . Here, is the imaginary unit. A polar coordinate () is completely determined by modulus and phase angle .If we convert complex number to its polar…

Print Function import math

・問題 Read an integer . Without using any string methods, try to print the following: Note that "" represents the values in between. Input Format The first line contains an integer . Output Format Output the answer as explained in the tas…

Loops for文,rangeについて

・問題 Task Read an integer . For all non-negative integers , print . See the sample for details. Input Format The first and only line contains the integer, . Constraints Output Format Print lines, one corresponding to each . Sample Input …