当前位置:网站首页>数学推理题:张王李赵陈五对夫妇聚会,见面握手
数学推理题:张王李赵陈五对夫妇聚会,见面握手
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
边栏推荐
- 吃透Chisel语言.27.Chisel进阶之有限状态机(一)——基本有限状态机(Moore机)
- 圆环工件毛刺(凸起)缺口(凹陷)检测案例
- QT learning (II) -.Pro file explanation
- [scm] source code management - lock of perforce branch
- QT | about the problem that QT creator cannot open the project and compile it
- NFT system development - Tutorial
- 视觉SLAM十四讲笔记(一):第一讲+第二讲
- 面试京东 T5,被按在地上摩擦,鬼知道我经历了什么?
- 吃透Chisel语言.25.Chisel进阶之输入信号处理(一)——异步输入与去抖动
- [SCM]源码管理 - perforce 分支的锁定
猜你喜欢

Meeting seating function of conference OA project & Implementation of meeting submission for approval

PCL各模块概述(1.6)

VS2019+CUDA11.1新建项目里没有CUDA选项

Understand chisel language. 26. Chisel advanced input signal processing (II) -- majority voter filtering, function abstraction and asynchronous reset

How does data analysis solve business problems? Here is a super detailed introduction

Concurrent thread state transition

3D restoration paper: shape painting using 3D generative advantageous networks and recurrent revolutionary networks

Case of burr (bulge) notch (depression) detection of circular workpiece

Understand chisel language. 27. Chisel advanced finite state machine (I) -- basic finite state machine (Moore machine)

Easy to understand! Graphic go synergy principle and Practice
随机推荐
Provincial Emergency Management Department: Guangzhou can strive to promote the experience of emergency safety education for children
pytorch的安装(非常详细)
去 OPPO 面试,被问麻了
I grabbed a ticket and thought I found the system bug of 12306
Visual slam lecture notes (I): Lecture 1 + Lecture 2
Voice live broadcast system - Principles to be followed in developing push notifications
7/26 thinking +dp+ suffix array learning
Food safety | is sugar free really sugar free? These truths need to be known
Gbase 8A MPP cluster capacity expansion practice
In depth analysis, sub database and sub table are the most powerful auxiliary sharding sphere
二叉树习题总结
Concurrent thread state transition
Overview of PCL modules (1.6)
Understand chisel language. 22. Chisel sequential circuit (II) -- detailed explanation of chisel counter: counter, timer and pulse width modulation
Shell运算符、$((运算式))” 或 “$[运算式]、expr方法、条件判断、test condition、[ condition ]、两个整数之间比较、按照文件权限进行判断、按照文件类型进行判断
Anchor Free检测器:CenterNet
Shell process control (emphasis), if judgment, case statement, let usage, for ((initial value; loop control condition; variable change)) and for variable in value 1 value 2 value 3..., while loop
蚂蚁集团境外站点 Seata 实践与探索
open3d库的安装,conda常用指令,导入open3d时报这个错误Solving environment: failed with initial frozen solve. Retrying w
c'mon! Please don't ask me about ribbon's architecture principle during the interview