2018-05-02から1日間の記事一覧
・問題 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…
・問題 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…
・問題 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…
・問題 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…
・問題 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の問題、ソースコード等を振り返れるように、苦労した点、重要点などをまとめます。