当前位置:网站首页>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;
}
边栏推荐
- 社招面试必不可少——《1000 道互联网大厂 Android工程师面试题》
- 暑假第一周
- Expander+listbox of WPF effect
- Android 3年外包工面试笔记,有机会还是要去大厂学习提升,作为一个Android程序员
- 【数字信号】基于matlab模拟窗函数频谱细化【含Matlab源码 1906期】
- Startup process analysis of APP performance optimization
- Quantitative investment model -- research interpretation of high frequency trading market making model (Avellaneda & Stoikov's) & code resources
- Shutter control layout
- Social order in the meta universe
- Andorid 开发艺术探索笔记(2),跨平台小程序开发框架
猜你喜欢
随机推荐
混沌工程,了解一下
Common WebGIS Map Libraries
Shutter control layout
[digital signal] spectrum refinement based on MATLAB analog window function [including Matlab source code 1906]
JS language precision problem
Summary of common register bit operation modes in MCU
What do NLP engineers do? What is the work content?
迷茫的测试/开发程序员,不同人有着不同的故事、有着不同的迷茫......
WPF效果之Expander+ListBox
[FreeRTOS] 07 binary semaphore and count semaphore
.NET 中的 Worker Service 介绍
Andorid 开发艺术探索笔记(2),跨平台小程序开发框架
Usage of go in SQL Server
【面试经验包】面试被吊打经验总结(一)
2022考研经验分享【初试、择校、复试、调剂、校招与社招】
Android 7,2021最新Android面试笔试题目分享
人工智能技术岗位面试要注意什么?
量化投资模型——高频交易做市模型相关(Avellaneda & Stoikov’s)研究解读&代码资源
Keywords such as extern and struct
抖音实战~密码找回









