DINGA DINGA
article thumbnail
[HackerRank] Bill Division
C & C++/HackerRank 2021. 9. 25. 18:05

https://www.hackerrank.com/challenges/bon-appetit/problem Bill Division | HackerRank Determine whether or not Brian overcharged Anna for their split bill. www.hackerrank.com Algorithms > Implementation 배열 bill과 Anna가 먹지 않은 것의 인덱스, Brian이 Anna에게 청구한 비용이 주어지면 Brian이 청구한 비용이 실제 Anna가 지불해야 할 비용이 맞는지 체크한다. 만약 맞으면 "Bon Appetit"을, 틀리면 Brian이 Anna에게 돌려줘야 할 금액을 출력한다. 코드 void bonAppetit(int bill_count, in..

article thumbnail
[HackerRank] Counting Sort 1
C & C++/HackerRank 2021. 9. 25. 17:40

https://www.hackerrank.com/challenges/countingsort1/problem Counting Sort 1 | HackerRank Count the number of times each value appears. www.hackerrank.com Algorithms > Sorting 정수 리스트가 주어지면 각 값이 등장하는 횟수를 카운트하고 반환한다. 코드 int* countingSort(int arr_count, int* arr, int* result_count) { *result_count = 100; int *res = malloc(100 * sizeof(int)); for (int i = 0; i < 100; i++) res[i] = 0; for (int i = 0; ..

article thumbnail
[Challenge(Old)] old-08 (35)
WEB/Webhacking.kr 2021. 9. 25. 17:18

https://webhacking.kr/challenge/web-08/ Challenge 8 webhacking.kr 초기 화면이다. 소스코드를 살펴봐야 할 것 같다.

article thumbnail
[Challenge(Old)] old-07 (30)
WEB/Webhacking.kr 2021. 9. 25. 16:51

https://webhacking.kr/challenge/web-07/ Challenge 7 webhacking.kr 초기 화면이다. auth를 눌러보았다. 접근이 되지 않는다. 소스코드를 살펴보자.

728x90