当前位置:网站首页>Dajiang school recruitment evaluation question -- round robin problem
Dajiang school recruitment evaluation question -- round robin problem
2022-07-18 22:26:00 【Z-Jeff】
The author is in 2022.7 Participated in the evaluation of Dajiang .
Among them, there is a circular race problem , Record the solution ideas .
Round robin problem
Six players A, B, C, D, E, F Go round robin .
There is a competition between two players , Each player competes once a day .
Complete the round robin in five days .
It is known that :
The first day C Win. F,
the second day A Win. B,
On the third day C Lose to D,
The fourth day A Win. F,D Lose to E
seek : The schedule of these five days .
Their thinking
“ Each player competes once a day ”, Explain that within one day ABCDEF There are games , Three games in total , It's just that the opponent's combination is different . such as [AB,CD,EF] It's a situation ,[AC,BE,DF] Is another case .
“ There is a competition between two players ”, For example, there are AB, Then there must be no AB.
These two points , Similar to Sudoku , Every line has to have 1~9, But there can't be duplicate numbers in the same line . You can do it with Sudoku ideas .
The problem solving steps
Title known conditions build the initial state :(CF Express C And F The game )
| The first day | CF | ||
|---|---|---|---|
| the second day | AB | ||
| On the third day | CD | ||
| The fourth day | AF | DE | |
| Fifth day |
Because the fourth day already has ADEF The game of , Then the remaining game must be BC, Fill in the form :
| The first day | CF | ||
|---|---|---|---|
| the second day | AB | ||
| On the third day | CD | ||
| The fourth day | AF | DE | BC |
| Fifth day |
Next, let's watch the game on the third day ,CD Existing competitions , From ABEF Two matches are arranged in . because AB,AF Already exists , be A Only with E Play the game , namely AE, The remaining one is BF, Fill in the form :
| The first day | CF | ||
|---|---|---|---|
| the second day | AB | ||
| On the third day | CD | AE | BF |
| The fourth day | AF | DE | BC |
| Fifth day |
Empathy , It is deduced that the schedule of the next day is CE,DF, The first day of the race is AD,BE:
| The first day | CF | AD | BE |
|---|---|---|---|
| the second day | AB | CE | DF |
| On the third day | CD | AE | BF |
| The fourth day | AF | DE | BC |
| Fifth day |
Not yet a pair of matches AC,BD,EF, Fill in until the fifth day , Get the final schedule :
| The first day | CF | AD | BE |
|---|---|---|---|
| the second day | AB | CE | DF |
| On the third day | CD | AE | BF |
| The fourth day | AF | DE | BC |
| Fifth day | AC | BD | EF |
Problem solving completed .
边栏推荐
- 信息系统项目管理师必背核心考点(四十四)规划风险应对
- 技術幹貨| MindSpore新一代自主研發分子模擬庫:Mind-Sponge
- MySQL connection query
- 技术干货| MindSpore新一代自主研发分子模拟库:Mind-Sponge
- How to use mitmproxy to get data return in automated testing
- An error is reported when viewing the service status inside the container: failed to get D-Bus connection: operation not allowed
- 开源十问, 社区新人快速上手指南
- Crazy God redis notes 01
- Wonderful review of usability sig technology sharing activities on July 7
- 图像、视频、3D 数据一把抓,不挑食的 AI 模型 Omnivore !
猜你喜欢

How to record sound on win11 screen? Win11 method of recording screen video with sound

How to take long screenshots in win11? Win11 long screenshot method

wordpress建立数据库连接时出错

Sff1602-mhchxm ultrafast recovery diode sff1602
![[UCOS III source code analysis] - Software Timer](/img/af/84b1bb47211668b0eb516ccf65b393.png)
[UCOS III source code analysis] - Software Timer

ICCV 2021 的最佳论文模型 Swin Transformer 终于对视频下手了!

Today, I went to oppo for an interview and was asked numbly

开发者分享|手写算子没那么难,教你用MindSpore实现自适应平均池化算子!

ArrayList源码解析

Which brand of Bluetooth headset has good noise reduction? Top 10 active noise reduction headphones
随机推荐
【AI工程】02-AI工程(AI Engineering)面面观
Towhee daily model weekly report
Visual studio production environment configuration scheme: slowcheetah
[UCOS III source code analysis] - system initialization
An error is reported when viewing the service status inside the container: failed to get D-Bus connection: operation not allowed
Chapter 9.1 program design of MATLAB
Definition and usage of several special standards of C language
[UCOS III source code analysis] - task creation
What is the future of digital employees? Review the application cases of RPA in eight industries
Move blog to CSDN
What about the update error of win11 preview? Solutions to the failure of win11 preview installation
Dcat Admin 代码生成器应用(重新编辑)
大疆校招测评题--循环赛问题
Wonderful review of usability sig technology sharing activities on July 7
Stream - elegant handling of collection elements
J-dict-select-tag drop-down box failure solution
js 华为od日志时间排序
Crazy God redis notes 01
Network basic VLAN configuration (ENSP, Cisco)
Omnivore, a non picky AI model, focuses on images, videos and 3D data!