当前位置:网站首页>数学推理题:张王李赵陈五对夫妇聚会,见面握手
数学推理题:张王李赵陈五对夫妇聚会,见面握手
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
边栏推荐
- ACL2021最佳论文出炉,来自字节跳动
- Summary of binary tree exercises
- 直播倒计时 3 天|SOFAChannel#29 基于 P2P 的文件和镜像加速系统 Dragonfly
- Qt 学习(二) —— .pro文件详解
- Voice live broadcast system - Principles to be followed in developing push notifications
- Food safety | the kitchen board environment is very important. Do you know these use details?
- 安装了HAL库如何恢复原来的版本
- WGAN、WGAN-GP、BigGAN
- 3D人脸重建:Joint 3D Face Reconstruction and Dense Alignment with position Map Regression Network
- S交换机堆叠方案配置指南
猜你喜欢

Snowflake vs. Databricks谁更胜一筹?2022年最新战报
![Introduction to regular expressions of shell, general matching, special characters: ^, $,., * Character range (brackets): [], special characters: \, matching mobile phone number](/img/31/ed0d8c1a5327059f2de7493bec1c6c.png)
Introduction to regular expressions of shell, general matching, special characters: ^, $,., * Character range (brackets): [], special characters: \, matching mobile phone number

蚂蚁集团境外站点 Seata 实践与探索

MOS drive in motor controller

A ride into Qinchuan -- a brief talk on how beego Autorouter works

Shell integrated application cases, archiving files, sending messages

PCL各模块概述(1.6)

吃透Chisel语言.24.Chisel时序电路(四)——Chisel内存(Memory)详解

How to use tdengine sink connector?
![[cloud native • Devops] master the container management tool rancher](/img/6f/50deaf053c86486e52d2c2c7310ed2.png)
[cloud native • Devops] master the container management tool rancher
随机推荐
Introduction to regular expressions of shell, general matching, special characters: ^, $,., * Character range (brackets): [], special characters: \, matching mobile phone number
Understand chisel language. 25. Advanced input signal processing of chisel (I) -- asynchronous input and de jitter
What happens if the MySQL disk is full? I really met you!
Reason for pilot importerror: cannot import name 'pilot_ Version 'from' PIL ', how to install pilot < 7.0.0
A ride into Qinchuan -- a brief talk on how beego Autorouter works
Provincial Emergency Management Department: Guangzhou can strive to promote the experience of emergency safety education for children
Live countdown 3 days sofachannel 29 P2P based file and image acceleration system Dragonfly
Sentinel ten thousand word tutorial | book delivery at the end of the text
达梦 PARTGROUPDEF是自定义的对象吗?
It's great to write code for 32 inch curved screen display! Send another one!
Summary of engineering material knowledge points (full)
Shell read read console input, use of read
吃透Chisel语言.26.Chisel进阶之输入信号处理(二)——多数表决器滤波、函数抽象和异步复位
npm常用命令
WordPress prohibits login or registration of plug-ins with a specified user name [v1.0]
3D人脸重建:Joint 3D Face Reconstruction and Dense Alignment with position Map Regression Network
Food safety | is sugar free really sugar free? These truths need to be known
Food safety | the kitchen board environment is very important. Do you know these use details?
Explain knative cloud function framework in simple terms!
Shell函数、系统函数、basename [string / pathname] [suffix] 可以理解为取路径里的文件名称 、dirname 文件绝对路径、自定义函数