29a + 30b + 31c = 366

已知:29a + 30b + 31c = 366,求 a + b + c = ?

其实题目不严谨哦,小学的作业,就是 0、1、2、3、4 ......

一年有 12 个月,因此 (a+b+c = 12),其中:

  • a:29 天的月份数(仅闰年 2 月)
  • b:30 天的月份数(4、6、9、11 月,共 4 个)
  • c:31 天的月份数(1、3、5、7、8、10、12 月,共 7 个)

当然这个是根据我们平时日历的答案 a + b + c = 12

复制代码
29a + 30b + 31c = 366
-----------------------------------------------------------------
a>=0   b>=0  c>=0
-----------------------------------------------------------------
29a  + 29b + 29c  < 29a + 30b + 31c < 31a + 31b + 31c
29(a + b + c) < 366 < 31(a + b + c)
-----------------------------------------------------------------

29 (a + b + c ) < 366
a + b  + c < 366/29 
a + b + c < 12.6206897

366 < 31(a + b + c) 
366/31  <  a + b + c
11.8064516 < a + b + c

-----------------------------------------------------------------

11.8064516 < a + b + c < 12.6206897
相关推荐
spencer_tseng1 个月前
x^3 - 3x + 1 = 0
math
智_永无止境3 个月前
Apache Commons Math3 使用指南:强大的Java数学库
apache·math
Shaun8881 年前
Perspective Projection Matrix of OpenGL and Direct3D
3d·math
景天科技苑1 年前
【Golang】关于Go语言数学计算、随机数生成模块--math
后端·golang·math·go语言math·go语言数学计算·math/rand·go语言随机数
EleganceJiaBao1 年前
【C语言】数学函数详解
c语言·开发语言·c++·算法·math·exp·pow
HopeTurbo1 年前
【python】模块-标准库(sys,os,math,random)
python·random·os·math·sys
spencer_tseng2 年前
Plane Geometry (Junior High School)
math·homework
spencer_tseng2 年前
2023.11.09 homework (2)
homework
梁辰兴2 年前
Java 复习笔记 - 常用API 上
java·笔记·api·system·math