-
Notifications
You must be signed in to change notification settings - Fork 0
250227 #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
250227 #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @TaeHyoungKwon, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
Summary of Changes
This pull request introduces solutions to a large number of coding problems from Baekjoon Online Judge. The solutions are implemented in Python and C++. The problems cover a range of topics, including basic arithmetic, conditional statements, loops, and data structures. Each file represents a solution to a specific problem, with the file name often corresponding to the problem number or a descriptive name.
Highlights
- Problem Solving: The pull request adds solutions to a variety of coding problems, demonstrating problem-solving skills and coding proficiency in Python and C++.
- Code Organization: Each problem is solved in a separate file, promoting code organization and maintainability. The file names are descriptive, making it easy to identify the problem being solved.
- Input/Output Handling: The solutions demonstrate how to handle input and output in Python and C++, including reading input from stdin and writing output to stdout.
- Algorithm Implementation: The solutions implement various algorithms and data structures to solve the coding problems efficiently.
Changelog
Click here to see the changelog
- Baekjoon Online Judge/11_月_November.py
- Added a solution to determine if a date falls within a certain range.
- Baekjoon Online Judge/2023_은_무엇이_특별할까.py
- Added a solution to check if a number plus one is divisible by the last two digits of the number.
- Baekjoon Online Judge/2033_년_밈_투표.py
- Added a solution to check if all inputs are in a predefined list of promises.
- Baekjoon Online Judge/27323.py
- Added a solution to calculate the factorial of a number.
- Baekjoon Online Judge/27866.py
- Added a solution to return a character at a specific index in a string.
- Baekjoon Online Judge/2_桁の整数_Two_digit_Integer.py
- Added a solution to combine two single-digit integers into a two-digit integer.
- Baekjoon Online Judge/AI_선도대학.py
- Added a solution to calculate the difference between a target year and 2024.
- Baekjoon Online Judge/A_B.cpp
- Added a C++ solution to calculate the sum of two integers.
- Baekjoon Online Judge/A_B.py
- Added a Python solution to calculate the sum of two integers.
- Baekjoon Online Judge/A_B_C_A_B_C.py
- Added a solution to perform arithmetic operations on three integers.
- Baekjoon Online Judge/Adding_Trouble.py
- Added a solution to check if the sum of two numbers equals a third number.
- Baekjoon Online Judge/Affischutskicket.py
- Added a solution to calculate the area of posters based on given dimensions.
- Baekjoon Online Judge/An_Easy_Peasy_Problem.py
- Added a solution to determine if the ratio of solved people to total people is greater than or equal to 0.5.
- Baekjoon Online Judge/Andando_no_tempo.py
- Added a solution to check if three numbers satisfy certain conditions (equality or sum).
- Baekjoon Online Judge/Another_Eruption.py
- Added a solution to calculate the radius of a circle given its area.
- Baekjoon Online Judge/Arno_s_Sleep_Schedule.py
- Added a solution to calculate the difference between sleep time and alarm time.
- Baekjoon Online Judge/Bank_Transfer.py
- Added a solution to calculate bank transfer fees based on a given value.
- Baekjoon Online Judge/Basketball_One_on_One.py
- Added a solution to determine the winner of a basketball game based on scores.
- Baekjoon Online Judge/Betting.py
- Added a solution to calculate betting odds based on a given percentage.
- Baekjoon Online Judge/Betygsättning.py
- Added a solution to assign grades based on student scores.
- Baekjoon Online Judge/Bicycle.py
- Added a solution to calculate the cost of bicycle rentals based on time.
- Baekjoon Online Judge/Body_Mass_Index.py
- Added a solution to classify BMI into categories.
- Baekjoon Online Judge/Call_for_Problems.py
- Added a solution to count odd numbers from a list of inputs.
- Baekjoon Online Judge/Checkers.py
- Added a solution to determine the number of checkers based on given values.
- Baekjoon Online Judge/Christmas_Tree_Adapter.py
- Added a solution to check if the ratio of w to v is greater than or equal to a.
- Baekjoon Online Judge/Communication_Channels.py
- Added a solution to check if two strings are equal.
- Baekjoon Online Judge/Congruent_Numbers.py
- Added a solution to check if an area is an integer.
- Baekjoon Online Judge/Conveyor_Belt_Sushi.py
- Added a solution to calculate the total cost of sushi based on quantities.
- Baekjoon Online Judge/Counting_Antibodies.py
- Added a solution to calculate the number of antibodies based on given values.
- Baekjoon Online Judge/Counting_Clauses.py
- Added a solution to determine if a number is satisfactory based on a threshold.
- Baekjoon Online Judge/Cutting_Corners.py
- Added a solution to calculate the difference between the sum of width and height and the diagonal.
- Baekjoon Online Judge/DKSH_찾기.py
- Added a solution to count the occurrences of 'DKSH' in a string.
- Baekjoon Online Judge/Divide_the_Cash.py
- Added a solution to divide cash based on proportions.
- Baekjoon Online Judge/Easy_to_Solve_Expressions.py
- Added a solution to determine if a number can be expressed as the sum or product of two other numbers.
- Baekjoon Online Judge/Everyone_is_a_winner.py
- Added a solution to check if m is divisible by k.
- Baekjoon Online Judge/Final_Price.py
- Added a solution to calculate the final price based on initial price and variations.
- Baekjoon Online Judge/Football_Team.py
- Added a solution to translate characters in a string.
- Baekjoon Online Judge/Goodbye_Code_Jam.py
- Added a solution to determine the round based on rank.
- Baekjoon Online Judge/Greetings.py
- Added a solution to generate a greeting string based on the number of 'e's in the input.
- Baekjoon Online Judge/HI_ARC.py
- Added a solution to calculate a value based on given inputs.
- Baekjoon Online Judge/IT_Passport_Examination.py
- Added a solution to determine if a candidate passes an exam based on scores.
- Baekjoon Online Judge/I_Speak_TXTMSG.py
- Added a solution to translate short forms into their full forms.
- Baekjoon Online Judge/Java_Warriors.py
- Added a solution to calculate registration fees.
- Baekjoon Online Judge/Just_Round_Down.py
- Added a solution to round down a floating-point number.
- Baekjoon Online Judge/Kuber.py
- Added a solution to calculate the sum of cubes.
- Baekjoon Online Judge/Loteria_Falha.py
- Added a solution to check if a number is divisible by 42.
- Baekjoon Online Judge/Lucky_7.py
- Added a solution to determine a value based on the presence of '7' and divisibility by 7.
- Baekjoon Online Judge/Metronome.py
- Added a solution to calculate the metronome value.
- Baekjoon Online Judge/Micromasters.py
- Added a solution to divide a number by 10.
- Baekjoon Online Judge/Population.py
- Added a solution to calculate population based on given values.
- Baekjoon Online Judge/Previous_Level.py
- Added a solution to assign levels based on scores.
- Baekjoon Online Judge/Quadrants.py
- Added a solution to determine the quadrant of a point.
- Baekjoon Online Judge/RICE_SACK.py
- Added a solution to find the maximum value from a list of inputs.
- Baekjoon Online Judge/Reverse.py
- Added a solution to remove a substring from a string.
- Baekjoon Online Judge/Rust_Study.py
- Added a solution to count the number of plans that are less than or equal to executions.
- Baekjoon Online Judge/SMS_from_MCHS.py
- Added a solution to determine if a storm warning should be issued.
- Baekjoon Online Judge/SUAPC_2023_Summer.py
- Added a solution to retrieve values from a dictionary based on input.
- Baekjoon Online Judge/SUAPC_2024_Winter.py
- Added a solution to retrieve information from a dictionary based on grade.
- Baekjoon Online Judge/Schronisko.py
- Added a solution to calculate the area.
- Baekjoon Online Judge/Serca.py
- Added a solution to print ASCII art hearts.
- Baekjoon Online Judge/Squares.py
- Added a solution to calculate the largest square side length.
- Baekjoon Online Judge/Terms_of_Office.py
- Added a solution to print years when all positions change.
- Baekjoon Online Judge/The_Merchant_of_Venice.py
- Added a solution to calculate the result based on given conditions.
- Baekjoon Online Judge/The_Walking_Adam.py
- Added a solution to count steps until 'D' is encountered.
- Baekjoon Online Judge/Triathlon.py
- Added a solution to calculate the maximum value based on scores.
- Baekjoon Online Judge/UOS_문자열.py
- Added a solution to print a character from 'UOS' based on input.
- Baekjoon Online Judge/Welcome_to_SMUPC.py
- Added a solution to retrieve a character from a string based on input.
- Baekjoon Online Judge/ZOAC_6.py
- Added a solution to count strings containing '01' or 'OI'.
- Baekjoon Online Judge/Äpplen_och_päron.py
- Added a solution to compare apples and pears based on given values.
- Baekjoon Online Judge/Киноманы.py
- Added a solution to compare viewing times and determine the winner.
- Baekjoon Online Judge/Конвейер.py
- Added a solution to determine direction based on moving histories.
- Baekjoon Online Judge/ПЧЕЛИЧКАТА_МАЯ.py
- Added a solution to calculate a result based on given values.
- Baekjoon Online Judge/Робинзон_Крузо.py
- Added a solution to convert a number to Roman numerals (V and I).
- Baekjoon Online Judge/Счастье_Мистера_Бина.py
- Added a solution to determine if the happiness score is positive.
- Baekjoon Online Judge/アイスクリーム_Ice_Cream.py
- Added a solution to calculate the cost of ice cream.
- Baekjoon Online Judge/ゾロ目_Same_Numbers.py
- Added a solution to check if two digits are the same.
- Baekjoon Online Judge/ブラックジャック_Blackjack.py
- Added a solution to check if the sum of three numbers is less than or equal to 21.
- Baekjoon Online Judge/三方比較_Three_Way_Comparison.py
- Added a solution to compare two numbers and print -1, 0, or 1.
- Baekjoon Online Judge/分_Minutes.py
- Added a solution to convert hours and minutes to total minutes.
- Baekjoon Online Judge/帰省_Homecoming.py
- Added a solution to check if a value falls within a range.
- Baekjoon Online Judge/徒競走_Footrace.py
- Added a solution to calculate the product of two numbers.
- Baekjoon Online Judge/所持金_Money_On_Me.py
- Added a solution to calculate the total money based on given values.
- Baekjoon Online Judge/時間_Hour.py
- Added a solution to convert days to hours.
- Baekjoon Online Judge/末尾の文字_Last_Letter.py
- Added a solution to modify a string based on its last character.
- Baekjoon Online Judge/果物_Fruit.py
- Added a solution to calculate the sum of two numbers plus 3.
- Baekjoon Online Judge/母音を数える_Counting_Vowels.py
- Added a solution to count the number of vowels in a string.
- Baekjoon Online Judge/火曜日_Tuesday.py
- Added a solution to check if a day is Tuesday.
- Baekjoon Online Judge/短針_Hour_Hand.py
- Added a solution to calculate the hour hand position.
- Baekjoon Online Judge/移動_Moving.py
- Added a solution to check if a condition is met based on given values.
- Baekjoon Online Judge/計算_Calculation.py
- Added a solution to calculate the maximum and minimum of the sum and difference of two numbers.
- Baekjoon Online Judge/鉛筆_2_Pencils_2.py
- Added a solution to divide a number by 5.
- Baekjoon Online Judge/飴の袋詰め_Drops_Packing.py
- Added a solution to calculate a value based on given inputs.
- Baekjoon Online Judge/가희와_4_시간의_벽_1.py
- Added a solution to compare two values and print a string.
- Baekjoon Online Judge/가희와_클럽_오디션_1.py
- Added a solution to calculate a value based on input and print the result.
- Baekjoon Online Judge/감마선을_맞은_컴퓨터.py
- Added a solution to print a string based on the presence of characters in a list.
- Baekjoon Online Judge/강당_대관.py
- Added a solution to find the seminar with the maximum count.
- Baekjoon Online Judge/개표.py
- Added a solution to format votes into tallies.
- Baekjoon Online Judge/관공_어찌하여_목만_오셨소.py
- Added a solution to find the first target containing 'S'.
- Baekjoon Online Judge/그게_무슨_코드니.py
- Added a solution to extract code from a string or print 'CE'.
- Baekjoon Online Judge/글로벌_포닉스.py
- Added a solution to check if three strings meet certain conditions.
- Baekjoon Online Judge/노트북_세_대를_가지고_왔다.py
- Added a solution to find the minimum of two numbers.
- Baekjoon Online Judge/등교.py
- Added a solution to find the maximum value that meets a condition.
- Baekjoon Online Judge/라면_공식.py
- Added a solution to calculate a value based on given inputs.
- Baekjoon Online Judge/로또.py
- Added a solution to generate lotto combinations.
- Baekjoon Online Judge/민주주의.py
- Added a solution to count problems with more 'O's than 'X's.
- Baekjoon Online Judge/브실이와_친구가_되고_싶어.py
- Added a solution to find the intersection of two ranges.
- Baekjoon Online Judge/사랑은_고려대입니다.py
- Added a solution to print a string multiple times.
- Baekjoon Online Judge/삼각형.py
- Added a solution to calculate the area of a triangle.
- Baekjoon Online Judge/선물.py
- Added a solution to find the minimum value based on given inputs.
- Baekjoon Online Judge/세제곱의_합.py
- Added a solution to calculate the sum of numbers, the square of the sum, and the sum of cubes.
- Baekjoon Online Judge/스위트콘_가격_구하기.py
- Added a solution to calculate the price of sweet corn.
- Baekjoon Online Judge/안밖_밖안_계단_역계단.py
- Added a solution to map input strings to specific outputs.
- Baekjoon Online Judge/암호_만들기.py
- Added a solution to generate passwords based on given conditions.
- Baekjoon Online Judge/엘리스_트랙_매칭.py
- Added a solution to count the occurrences of a track.
- Baekjoon Online Judge/유치원생_파댕이_돌보기.py
- Added a solution to determine if a condition is met based on given values.
- Baekjoon Online Judge/이_대회는_이제_제_겁니다.py
- Added a solution to calculate the maximum of two values.
- Baekjoon Online Judge/이_별은_무슨_색일까.py
- Added a solution to determine the color of a star based on wavelength.
- Baekjoon Online Judge/재수강.py
- Added a solution to count subjects that match a retrial subject code.
- Baekjoon Online Judge/정보보호학부_동아리_소개.py
- Added a solution to map characters to club names.
- Baekjoon Online Judge/정보섬의_대중교통.py
- Added a solution to determine transportation based on given values.
- Baekjoon Online Judge/준영이의_등급.py
- Added a solution to assign grades based on percentage.
- Baekjoon Online Judge/지폐_세기.py
- Added a solution to calculate the total value of banknotes.
- Baekjoon Online Judge/진흥원_세미나.py
- Added a solution to map seminar names to room numbers.
- Baekjoon Online Judge/체스_초보_브실이.py
- Added a solution to calculate the score difference in a chess game.
- Baekjoon Online Judge/체육은_수학과목_입니다.py
- Added a solution to calculate a value based on given inputs.
- Baekjoon Online Judge/코드마스터_2023.py
- Added a solution to map input words to specific outputs.
- Baekjoon Online Judge/특별한_가지.py
- Added a solution to calculate a value based on given inputs.
- Baekjoon Online Judge/특별한_작은_분수.py
- Added a solution to perform operations on a number based on conditions.
- Baekjoon Online Judge/특별한_학교_이름.py
- Added a solution to map school abbreviations to full names.
- Baekjoon Online Judge/팩토리얼_3.py
- Added a solution to calculate the factorial of a number.
- Baekjoon Online Judge/학번을_찾아줘.py
- Added a solution to calculate a result based on standard scores.
- Baekjoon Online Judge/학식_사주기.py
- Added a solution to calculate the sum of menu prices based on corner numbers.
- Baekjoon Online Judge/호반우가_학교에_지각한_이유_1.py
- Added a solution to calculate a result based on given inputs.
- Baekjoon Online Judge/홀짝홀짝.py
- Added a solution to determine a value based on odd and even counts.
- kata_2025/project_euler/1.py
- Added a solution to Project Euler Problem 1: Find the sum of all the multiples of 3 or 5 below 1000.
- kata_2025/project_euler/2.py
- Added a solution to Project Euler Problem 2: Find the sum of the even-valued terms in the Fibonacci sequence whose values do not exceed four million.
- python/oop/function_overload_sample.py
- Added a sample code demonstrating function overloading using type hints.
- python/oop/intersection_type_test.py
- Added a sample code demonstrating intersection type testing.
- python/oop/location_sensitive_type_checking.py
- Added a sample code demonstrating location-sensitive type checking.
- python/oop/structure_typing_sample.py
- Added a sample code demonstrating structure typing.
- python/polymorphism/choose.py
- Added a sample code demonstrating polymorphism using generics.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.
| Feature | Command | Description |
|---|---|---|
| Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
| Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
| Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
| Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Trivia time!
What is the origin of the name 'Python' programming language?
Click here for the answer
The name 'Python' comes from the BBC comedy series 'Monty Python's Flying Circus'. Guido van Rossum, the creator of Python, was a big fan of the show.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request includes a large number of small coding problem solutions, primarily in Python. The solutions appear straightforward and address the problem requirements. However, there's a lack of consistency in code style and documentation. While the code seems functional, there's room for improvement in terms of readability and maintainability.
Summary of Findings
Merge Readiness
While the code appears functional, the lack of consistency and documentation makes it difficult to assess the overall quality and maintainability. Given the number of files changed, a more thorough review is needed to ensure code quality. I am unable to approve this pull request, and recommend that another reviewer take a look at the changes before merging.
No description provided.