当前位置:网站首页>C语言:百马百担问题求驮法
C语言:百马百担问题求驮法
2022-06-23 22:24:00 【念迟鱼学编程】
#include <stdio.h>
int main()
{
int count=0;
for(int i = 0 ; i < 33 ; i++){
for(int j = 0 ; j < 50 ; j++){
for(int k = 0 ; k < 100 ; k++){
if(i+j+k==100 && 3*i+2*j+k/2==100 &&k%2==0){
printf("大马:%d匹,中马:%d匹,小马:%d匹\n",i,j,k);
count++;
}
}
}
}
printf("共有%d种驮法!",count);
return 0;
}
边栏推荐
- C语言:关于矩阵右移问题
- Easycvr implementation of adding preset point position function of Dahua equipment
- Batch renaming of images by MATLAB
- 【数字信号】基于matlab模拟窗函数频谱细化【含Matlab源码 1906期】
- What is medical treatment? AI medical concept analysis AI
- return、const、volatile关键字
- fatal: The upstream branch of your current branch does not match the name of your current branch.
- MySQL architecture (basic)
- ==What is the difference between and equals?
- EasyCVR程序以服务启动异常,进程启动却正常,是什么原因?
猜你喜欢

【红绿灯识别】基于matlab GUI红绿灯识别【含Matlab源码 1908期】

Windows10 security mode entry cycle blue screen repair

SAVE: 软件分析验证和测试平台

解决项目依赖报红问题

【数字信号】基于matlab模拟窗函数频谱细化【含Matlab源码 1906期】

Test - use case - detail frenzy

2. camera calibration

CPU取指到发出控制、微程序控制原理详细过程

人工智能技术岗位面试要注意什么?

Notepad++ practical function sharing (common methods for replacing the end and beginning of regular lines, text comparison function, etc.)
随机推荐
依赖倒置原则
Six necessary open source projects for private activities
C语言:利用自定义函数排序
【红绿灯识别】基于matlab GUI红绿灯识别【含Matlab源码 1908期】
如何利用数仓创建时序表
Summary of common register bit operation modes in MCU
Jeecgboot old version 2 x 3. X how to integrate building block reports?
extern、struct等关键字
Android 72021 latest Android interview written test questions sharing
What is the difference between concurrency and parallelism?
暑假第一周
解决项目依赖报红问题
Android Aidl: cross process call service (Aidl service), kotlininvoke function
纯js实现判断ip是否ping通
Andorid development art exploration notes (2), cross platform applet development framework
SQL Server 中 GO 的用法
Notepad++ practical function sharing (common methods for replacing the end and beginning of regular lines, text comparison function, etc.)
如何入门机器学习?
【FreeRTOS】07 二值信号量、计数信号量
String s = new String(“xyz“) 创建了几个字符串对象?