Company: Tiger Analytics
Difficulty: medium
Paint Combination Problem body { font-family: Arial, sans-serif; line-height: 1.6; margin: 20px; } .problem-container { max-width: 900px; margin: auto; padding: 20px; border: 1px solid #ddd; border-radius: 8px; background: #f9f9f9; } h1, h3 { color: #333; } table { width: 100%; border-collapse: collapse; margin: 15px 0; } table, th, td { border: 1px solid #ccc; } th, td { padding: 10px; text-align: center; } pre { background: #f4f4f4; padding: 10px; border: 1px solid #ddd; border-radius: 5px; overflow-x: auto; } ul { margin: 0; padding-left: 20px; } .example { margin-top: 20px; } Paint Combination Problem There will be multiple test cases running, so the Input and Output should match exactly as provided. The base output variable result is set to a default value of -404 , which can be modified. Additionally, you can add or remove these output variables. Input Format The first line contains a single integer T , denoting the number of test cases. Next, each T lines contain a single intege