Hacker Rank Solutions: Halloween Party Hacker Rank Solutions: Halloween Party 1 2 3 4 5 6 7 8 test_cases = $stdin.gets.chomp.to_i test_cases.times do cuts = $stdin.gets.chomp.to_i h = cuts / 2 v = cuts - h puts h * v end