본문 바로가기

hacker rank38

Hacker rank Diagonal Difference 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 #!/bin/python3 import math import os import random import re import sys # # Complete the 'diagonalDifference' function below. # # The function is expected to return an INTEGER. # The function accepts 2D_INTEGER_ARRAY arr as parameter. # def diagonalDifference(arr): # Write your code her.. 2021. 10. 26.
Hacker rank A Very Big Sum 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 #!/bin/python3 import math import os import random import re import sys # # Complete the 'aVeryBigSum' function below. # # The function is expected to return a LONG_INTEGER. # The function accepts LONG_INTEGER_ARRAY ar as parameter. # def aVeryBigSum(ar): # Write your code here return sum(ar) if __name__ == '__ma.. 2021. 10. 26.
Hacker rank Compare the Triplets 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 #!/bin/python3 import math import os import random import re import sys # # Complete the 'compareTriplets' function below. # # The function is expected to return an INTEGER_ARRAY. # The function accepts following parameters: # 1. INTEGER_ARRAY a # 2. INTEGER_ARRAY b # def compareTriplet.. 2021. 10. 26.
Hacker rank Simple Array Sum 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 #!/bin/python3 import math import os import random import re import sys # # Complete the 'simpleArraySum' function below. # # The function is expected to return an INTEGER. # The function accepts INTEGER_ARRAY ar as parameter. # def simpleArraySum(ar): # Write your code here return sum(ar) if __name__ == '__main_.. 2021. 10. 26.
Hacker rank Solve Me First 1 2 3 4 5 6 7 8 def solveMeFirst(a,b): # Hint: Type return a+b below return a+b num1 = int(input()) num2 = int(input()) res = solveMeFirst(num1,num2) print(res) cs 2021. 10. 26.
Hacker rank Type of Triangle 1 2 3 4 5 6 7 SELECT CASE WHEN A = B AND B = C THEN 'Equilateral' WHEN A >=B+C OR B>=A+C OR C>=A+B THEN 'Not A Triangle' WHEN A = B OR A = C OR B = C THEN 'Isosceles' ELSE 'Scalene' END FROM TRIANGLES Colored by Color Scripter cs 2021. 10. 23.
Hacker rank Average Population of Each Continen 1 2 3 4 select country.continent, truncate (avg(city.population),0) from city join country on city.countrycode=country.code group by country.continent Colored by Color Scripter cs 2021. 10. 23.
Hacker rank Weather Observation Station 17 1 2 3 4 select round(long_w,4) from station where lat_n>38.7780 order by lat_N limit 1 cs 2021. 10. 21.
Hacker rank Weather Observation Station 16 1 2 3 select round(min(lat_n),4) from station where lat_n>38.7780 cs 2021. 10. 21.
Hacker rank Weather Observation Station 15 1 2 3 4 select round (long_w,4) from station where lat_n 2021. 10. 21.
Hacker rank Weather Observation Station 14 1 2 3 select truncate (max(lat_n), 4 ) from station where lat_n 2021. 10. 21.
Hacker rank Weather Observation Station 13 1 2 3 select truncate (sum(lat_n) ,4) from station where lat_n>38.7880 and lat_n 2021. 10. 21.