Fading Coder

One Final Commit for the Last Sprint

Blue Bridge Cup 2019 Provincial JavaB Problem Solutions

Problem A: Team Selection (5/5) As a basketball coach, you need to pick one player for each position from 1 to 5 to form the starting lineup. The table below shows each player's rating for each position. Find the maximum total rating for the starting five. Solution approaches: Direct observation (me...

Solving 2020 Blue Bridge Cup Java Group B Provincial Contest Problems

Problem Statement: Calculate how many digit '2's are needed to create doorplates numbered from 1 to 2020. Each digit is counted separately (e.g., doorplate 1017 contains one '0', two '1's, and one '7'). Solution: public class DigitCounter { public static void main(String[] args) { int count = 0; for...

Solutions to the 2024 Blue Bridge Cup Provincial C++ Intermediate/Advanced Group Programming Problems

T1 - Reading Plan Problem: A book has (n) pages. On the first day, a person reads (x) pages. Each subsequent day, they read (y) pages more than the previous day. How many days are needed to finish the book? Input: Three integers (n), (x), (y) ((20 \le n \le 5000, 1 \le x, y \le 20)) separated by spa...

Algorithmic Solutions for Selected Problems from the 12th Blue Bridge Cup

B. Determining the Number of Unique Lines in a Grid Given a grid of points defined by coordinates (x, y) where x ranges from 0 to 19 and y ranges from 0 too 20, the objective is to calculate the total number of distinct straight lines that can be formed by connecting any two points. Implementation S...