当前位置:网站首页>C语言试题169之谁家孩子跑得最慢
C语言试题169之谁家孩子跑得最慢
2022-06-09 21:35:00 【码莎拉蒂 .】
个人主页:个人主页
系列专栏:C语言试题200例
推荐一款刷算法、笔试、面经、拿大公司offer神器 点击跳转进入网站
作者简介:大家好,我是码莎拉蒂,CSDN博客专家(全站排名Top 50),阿里云博客专家、51CTO博客专家、华为云享专家
1、题目
题目:张、王、李三家各有三个小孩。一天,三家的九个孩子在一起比赛短跑,规定不分年龄大小,跑第一得 9 分,跑第二得 8 分,依次类推。比赛结果显示各家的总分相同,且这些孩子没有同时到达终点的,也没有一家的两个或三个孩子获得相连的名次。已知获第一名的是李家的孩子,获第二名的是王家的孩子。获得最后一名的是谁家的孩子?
分析:
按题目的条件,共有 1+2+3+…+9=45 分,每家孩子的得分应为 15 分。根据题意可知,获第一名的是李家的孩子,获第二名的是王家的孩子,则可推出:获第三名的一定是张家的孩子。由“这些孩子没有同时到达终点的”可知:名次不能并列,由“没有一家的两个或三个孩子获得相连的名次”可知:第四名不能是张家的孩子。
边栏推荐
- Yolo series target detection post-processing - non maximum suppression
- Basic use of DataGridView 0526
- Is it safe for flush to open an account? How to open an account?
- Audio 3A processing practice makes your application more "pleasant"
- 蓝牙协议分析(7)_BLE连接有关的技术分析
- Digital supervision of construction sites and the wisdom of scientific warfare
- spider pi 智能视觉六足机器人 vnc连接机器人 0603
- Typedef & enum & C data type
- Huawei cloud zero code development image compression tool
- IAR打开工程编译未响应、卡死 & STM32CubeMX生成工程时出错
猜你喜欢

ST-Link V2 下载出现:internal command error&Error: Flash Download failed - Target DLL has been cancelled

Intelligent prevention and control of safety production risk at construction site in flood season

Audio 3A processing practice makes your application more "pleasant"

Digital engineering construction enterprises carry out "safety production month" activities in this way

购买内存条前的行动

TL,你是如何管理项目风险的?

St link V2 Download: internal command error & error: flash download failed - target DLL has been canceled

Spider PI intelligent vision hexapod robot patrol function 0603

Unity code binding button function

Spider PI intelligent vision hexapod robot in direct connection mode 0603
随机推荐
Bonner barcode reader ve205g1a
FPN-Feature Pyramid Network
易买网开发 趣买买 项目资源一览 0605
Spider PI intelligent vision hexapod robot tag recognition apirltag tag 0604
10 minute quick start RDS [Huawei cloud to jianzhiyuan]
JS basic data type and reference data type
原型对象的应用 给数组对象强化功能 0526
尽一份孝心,为家人做一个老人防摔报警系统
怎么查期货平台是不是安全的?正规性怎么查
Systematic goal - Fitness collection
NPM and yarn
邦纳条码阅读器VE205G1A
Database daily question - day 7: customers with the most orders
Calculation method that can be used for NLP Task Evaluation (semantic similarity calculation)
Slightly more complex queries
SPIDER Pi Intelligent Vision hexapode Robot VNC Connect Robot 0603
蓝牙协议分析(7)_BLE连接有关的技术分析
TL, how do you manage project risks?
List of database import and database structure for the development of yimai.com 0605
第四范式陈雨强:企业智能决策的下一代技术「强化学习 + 环境学习」