当前位置:网站首页>C language: how to solve the problem of hundreds of horses and loads
C language: how to solve the problem of hundreds of horses and loads
2022-06-24 00:16:00 【Nianchi ichthyology programming】
#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(" Malaysia :%d horse , Zhongma :%d horse , The pony :%d horse \n",i,j,k);
count++;
}
}
}
}
printf(" share %d Piggyback method !",count);
return 0;
}
边栏推荐
- Salesforce Future method in salesforce – @future
- C语言c89(c90)的所有的32个关键字分类
- 超标量处理器设计 姚永斌 第3章 虚拟存储器 --3.1~3.2 小节摘录
- What do NLP engineers do? What is the work content?
- After the deployment of Beidou navigation system, why didn't we launch a high-precision map similar to Google maps?
- 智能制造时代下,MES管理系统需要解决哪些问题
- UART protocol timing summary
- String s = new String(“xyz“) 创建了几个字符串对象?
- Revit API: schedule viewschedule
- Shuttle global levitation button
猜你喜欢

Superscalar processor design yaoyongbin Chapter 3 virtual memory -- Excerpt from subsection 3.1~3.2

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

Usage of go in SQL Server

Android AIDL:跨进程调用Service (AIDL Service),kotlininvoke函数

钟珊珊:被爆锤后的工程师会起飞|OneFlow U

I was cheated by my colleagues to work overtime on weekends. I haven't seen redis used like this...
![[digital signal] spectrum refinement based on MATLAB analog window function [including Matlab source code 1906]](/img/b3/ad289400e9c74f6f1f533a7d560d5c.jpg)
[digital signal] spectrum refinement based on MATLAB analog window function [including Matlab source code 1906]

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

How to get started with machine learning?

Andorid 开发艺术探索笔记(2),跨平台小程序开发框架
随机推荐
[technology planting grass] on the "double 11" of this year, Tencent cloud lightweight servers will be collected in a fair manner
ARM学习(7) symbol 符号表以及调试
2021-11-23: Regulations: l[1] corresponds to a, l[2] corresponds to B, l[3] corresponds to C
I was cheated by my colleagues to work overtime on weekends. I haven't seen redis used like this...
[interview experience package] summary of experience of being hanged during interview (I)
First week of summer vacation
Salesforce Future method in salesforce – @future
人工智能技术岗位面试要注意什么?
String s = new String(“xyz“) 创建了几个字符串对象?
All 32 keyword classifications of C language C89 (C90)
Tiktok practice ~ one click registration and login process of mobile phone number and password (restrict mobile terminal login)
Superscalar processor design yaoyongbin Chapter 3 virtual memory -- Excerpt from subsection 3.1~3.2
Six necessary open source projects for private activities
Android - basics you need to know about JNI development, interview questions for Android engineers
kubernetes之常用核心资源对象
Wechat applet picture verification code display
Kubernetes basic concept
使用worker报错:Uncaught DOMException: Failed to construct ‘Worker’: Script at***
Interview notes for Android outsourcing workers for 3 years. I still need to go to a large factory to learn and improve. As an Android programmer
元宇宙中的社会秩序