ブリブリ備忘録 おっ、python

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

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

Python: Division

・問題 Task Read two integers and print two lines. The first line should contain integer division, // . The second line should contain float division, / . You don't need to perform any rounding or formatting operations. Input Format The fi…

Arithmetic Operators input関数

・問題 Task Read two integers from STDIN and print three lines where: The first line contains the sum of the two numbers. The second line contains the difference of the two numbers (first - second). The third line contains the product of t…

Python If-Else if-elif-else

・問題 Given an integer, , perform the following conditional actions: If is odd, print Weird If is even and in the inclusive range of to , print Not Weird If is even and in the inclusive range of to , print Weird If is even and greater tha…

Say "Hello, World!" With Python print関数

・問題 Here is a sample line of code that can be executed in Python: print("Hello, World!") You can just as easily store a string as a variable and then print it to stdout: my_string = "Hello, World!" print(my_string) The above code will p…

Solve Me First 関数の定義

・問題 Complete the function solveMeFirst to compute the sum of two integers. Function prototype: int solveMeFirst(int x, int y); where, x is the first integer input. y is the second integer input Return values sum of the above two integer…

最初

hackerrankの問題、ソースコード等を振り返れるように、苦労した点、重要点などをまとめます。