Database Programming Contest: One SQL to calculate 24 points of poker cards

Are you looking for a platform that allows you to showcase your SQL skills and compete with your peers? Are you eager to improve your SQL level in actual combat and broaden your technical horizons? If you are interested in all of these, then this "Database Programming Competition" hosted by NineData will be your best choice!

Contest prizes

The awards for this database programming competition are: first prize (1 person), second prize (2 people), third prize (3 people), and Puzhao Memorial Award (30 people).

Database programming competition prizes, welcome to challenge!

How to play the game

Entry time

2023.12.20 ~ 2023.12.25 22:00

Competition question

Use a piece of SQL to give the calculation expression for poker 24 points

A detailed description

There is a table cards, id is the numeric primary key of the auto-increment field, and there are 4 fields c1, c2, c3, c4. Each field randomly selects an integer from 1 to 10, and the players are required to use a SQL to give 24 points. The calculation formula, the returned content example is as follows:

The result field is the calculated expression and only needs to return 1 solution. If there is no solution, result returns null.

Test data and verification process

1. Enter the NineData official website (www.ninedata.cloud), register and log in to the NineData platform;

2. Apply for a free mysql demo database;

3. View the cards table data in the SQL window: select * from poker24.cards.

Remark:

1. Calculation rules for 24 points: only the four arithmetic operations of addition, subtraction, multiplication and division can be used. Operators such as factorial and exponent cannot be used. Each number must be used at least once and only once. Parentheses can be used to change the priority;

2. Only one SQL can be used, and built-in database functions can be used, but stored procedures/custom functions and code blocks cannot be used;

3. You can verify the correctness of SQL by yourself on the NineData platform demo database, or on your own database. The organizing committee’s evaluation server has a 4-core CPU and 32 GB memory;

4. Contestants must participate with integrity and are not allowed to submit other people's competition codes. If similar codes are found, the working group will consider the first one submitted as a valid entry;

5. Each player can submit the competition code up to 3 times.

Submission

Register through the database programming competition entrance and submit the SQL answer form. Participants need to submit information 1. Name 2. Email 3. Contact number 4. Database type 5. Database version 6. SQL 7. Algorithm description.

Method 1: Submit via official website

Log in to NineData official website, entry address: https://www.ninedata.cloud/sql_poker24

Method 2: Public account backend

NineData public account backstage reply " database programming ", and immediately get the entry link.

Method Three: Database Programming Competition Group

After scanning the QR code to join the group, you will automatically get the event address and the entrance to submit answers.

Selection rules

The judges of this competition are all leaders in the database field. They were invited by the organizer NineData to form a strong panel of judges for the 2023 "Database Programming Competition".

"Database Programming Competition" judging panel

This competition will mainly be judged from the following four aspects. Be sure to pay attention to the following judging rules!

correctness

It will be verified by the organizing committee and only the correct results will enter the judges selection process.

performance

The total score accounts for 50%, and the test results will be given by the organizing committee (first place 50 points, second place 45 points, third place 42 points, fourth place 40 points, fifth place 39 points, each subsequent ranking decreases One point will be reduced by 1 point, and so on, with a minimum score of 20 points)

Code innovation

The total score accounts for 30% and is scored by the judges (0~30 points)

Code readability

The total score accounts for 20% and is scored by the judges (0~20 points)

Competition itinerary

The deadline for submitting answers to this competition: 22:00 on December 25, 2023

Activity deadline

The author of a well-known open source project lost his job due to mania - "Seeking money online" No Star, No Fix 2023 The world's top ten engineering achievements are released: ChatGPT, Hongmeng Operating System, China Space Station and other selected ByteDance were "banned" by OpenAI. Google announces the most popular Chrome extension in 2023 Academician Ni Guangnan: I hope domestic SSD will replace imported HDD to unlock Xiaomi mobile phone BL? First, do a Java programmer interview question. Arm laid off more than 70 Chinese engineers and planned to reorganize its Chinese software business. OpenKylin 2.0 reveals | UKUI 4.10 double diamond design, beautiful and high-quality! Manjaro 23.1 released, codenamed “Vulcan”
{{o.name}}
{{m.name}}

Guess you like

Origin my.oschina.net/ninedata/blog/10322955