payload: {"push_id":3745952454,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"f9573450a981c9ca0bb62cfbefe22d3309198016","before":"66f18b98da2bb6d393d019622c7283c728d1c76d","commits":[{"sha":"f9573450a981c9ca0bb62cfbefe22d3309198016","author":{"name":"tanajis","email":"9c847765c1af85959b62a26759709ad123d8c1f3@gmail.com"},"message":"Costofballoons\n\nhttps://www.hackerearth.com/practice/basic-programming/input-output/basics-of-input-output/practice-problems/algorithm/mojtaba-prepares-contest-29b2a044/\r\n\r\nYou are conducting a contest at your college. This contest consists of two problems and participants. You know the problem that a candidate will solve during the contest.\r\n\r\nYou provide a balloon to a participant after he or she solves a problem. There are only green and purple-colored balloons available in a market. Each problem must have a balloon associated with it as a prize for solving that specific problem. You can distribute balloons to each participant by performing the following operation:\r\n\r\nUse green-colored balloons for the first problem and purple-colored balloons for the second problem\r\nUse purple-colored balloons for the first problem and green-colored balloons for the second problem\r\nYou are given the cost of each balloon and problems that each participant solve. Your task is to print the minimum price that you have to pay while purchasing balloons.\r\n\r\nInput format\r\n\r\nFirst line:  that denotes the number of test cases ()\r\nFor each test case: \r\nFirst line: Cost of green and purple-colored balloons \r\nSecond line:  that denotes the number of participants ()\r\nNext  lines: Contain the status of users. For example, if the value of the  integer in the row is , then it depicts that the  participant has not solved the  problem. Similarly, if the value of the  integer in the  row is , then it depicts that the  participant has solved the  problem.\r\nOutput format\r\nFor each test case, print the minimum cost that you have to pay to purchase balloons.\r\n\r\n\r\ninput:\r\n2\r\n9 6\r\n10\r\n1 1\r\n1 1\r\n0 1\r\n0 0\r\n0 1\r\n0 0\r\n0 1\r\n0 1\r\n1 1\r\n0 0\r\n1 9\r\n10\r\n0 1\r\n0 0\r\n0 0\r\n0 1\r\n1 0\r\n0 1\r\n0 1\r\n0 0\r\n0 1\r\n0 0\r\n\r\noutput:\r\n69\r\n14","distinct":true,"url":"https://api.github.com/repos/tanajis/pythonProgram/commits/f9573450a981c9ca0bb62cfbefe22d3309198016"}]}
other: {"actor":{"display_login":"tanajis"}}