当前位置:网站首页>数学推理题:张王李赵陈五对夫妇聚会,见面握手
数学推理题:张王李赵陈五对夫妇聚会,见面握手
2022-07-27 09:54:00 【IC学习者】
张王李赵陈五对夫妇聚会,见面时互相握手问候,王先生好奇地私下问每个人(包括他太太)打听刚才握手的次数,得到的回答使他惊奇,九个人中竟然没有两个人握手次数相同,王太太握手( )次。
解析:
最大握手次数为8次,因为没人和自己或者和配偶握手
得到除王先生外的9人握手次数分别为 8 7 6 5 4 3 2 1 0
8号和四对夫妻都握了手,(7 6 5 4 3 2 1 0),所以其他四对夫妻至少握了1次,只有8的夫妻可以1次不握
8和0是夫妻
7号和0没握,和自己的夫妻没握,和其他人都握了。所以,剩下的人中(6 5 4 3 2 1),每个人至少握了2次(与8 、7),只有夫妻可以握1次
7和1是夫妻,1握的是8
6号和0/1、自己夫妻没握,和其他人都握了,所以剩下的人中(5 4 3 2),每个人都至少握了3次(与8、7、6),只有夫妻可以只握2次
6和2是夫妻,2握了8、7
依次5和3是夫妻。3握了8、7、6
剩下的4是王太太
可以由前面的过程知道,
8 1234567X
0
7 234568X
1 8
6 34578X
2 87
5 4678X
3 876
可以得到,王太太的4和前面的数据吻合
王先生的也可以数X,得到8765
边栏推荐
- 二叉树习题总结
- Switch port mirroring Configuration Guide
- 35 spark streaming backpressure mechanism, spark data skew solution and kylin's brief introduction
- Understand chisel language. 22. Chisel sequential circuit (II) -- detailed explanation of chisel counter: counter, timer and pulse width modulation
- C # set different text watermarks for each page of word
- 7/26 思维+dp+后缀数组的学习
- Understand chisel language. 23. Chisel sequential circuit (III) -- detailed explanation of chisel shift register
- Easy to understand! Graphic go synergy principle and Practice
- WordPress prohibits login or registration of plug-ins with a specified user name [v1.0]
- QT | about the problem that QT creator cannot open the project and compile it
猜你喜欢

How to install cpolar intranet penetration on raspberry pie

GBase 8a MPP集群扩容实战

Shell read read console input, use of read

Summary of binary tree exercises

活体检测综述

Nacos configuration center dynamically refreshes the data source
![Shell运算符、$((运算式))” 或 “$[运算式]、expr方法、条件判断、test condition、[ condition ]、两个整数之间比较、按照文件权限进行判断、按照文件类型进行判断](/img/65/a735ca2c2902e3fc773dda79438972.png)
Shell运算符、$((运算式))” 或 “$[运算式]、expr方法、条件判断、test condition、[ condition ]、两个整数之间比较、按照文件权限进行判断、按照文件类型进行判断

Snowflake vs. databricks who is better? The latest war report in 2022
![[scm] source code management - lock of perforce branch](/img/c6/daead474a64a9a3c86dd140c097be0.jpg)
[scm] source code management - lock of perforce branch
![Shell的正则表达式入门、常规匹配、特殊字符:^、$、.、*、字符区间(中括号):[ ]、特殊字符:\、匹配手机号](/img/31/ed0d8c1a5327059f2de7493bec1c6c.png)
Shell的正则表达式入门、常规匹配、特殊字符:^、$、.、*、字符区间(中括号):[ ]、特殊字符:\、匹配手机号
随机推荐
LeetCode.1260. 二维网格迁移____原地暴力 / 降维+循环数组直接定位
Learn typescript (1)
省应急管理厅:广州可争取推广幼儿应急安全宣教经验
Food safety | is sugar free really sugar free? These truths need to be known
Leetcode.814. binary tree pruning____ DFS
Shell read read console input, use of read
I grabbed a ticket and thought I found the system bug of 12306
3D face reconstruction and dense alignment with position map progression network
2016 outlook
npm常用命令
[scm] source code management - lock of perforce branch
超赞的卡尔曼滤波详解文章
Anchor free detector: centernet
Introduction to regular expressions of shell, general matching, special characters: ^, $,., * Character range (brackets): [], special characters: \, matching mobile phone number
MOS drive in motor controller
Talk about 10 scenarios of index failure. It's too stupid
并发之线程状态转换
Shell function, system function, basename [string / pathname] [suffix] can be understood as taking the file name in the path, dirname file absolute path, and user-defined function
Shell运算符、$((运算式))” 或 “$[运算式]、expr方法、条件判断、test condition、[ condition ]、两个整数之间比较、按照文件权限进行判断、按照文件类型进行判断
WGAN、WGAN-GP、BigGAN