해커랭크(HackerRank) - Bon Appétit / C++
문제 : 해커랭크 - Bon Appétit https://www.hackerrank.com/challenges/bon-appetit/problem Bon Appétit | HackerRank Determine whether or not Brian overcharged Anna for their split bill. www.hackerrank.com 난이도: Easy 언어 : C++ // Complete the bonAppetit function below. void bonAppetit(vector bill, int k, int b) { int annaToChargeSum = 0; int toRefund = 0; for(int i = 0 ;i
2020. 6. 26.