当前位置:网站首页>名次的确定
名次的确定
2022-06-13 08:06:00 【学代码的小呆鸟】
int main()
{
int a = 0;
int b = 0;
int c = 0;
int d = 0;
int e = 0;
for(a = 1;a<=5;a++)
{
for(b=1;b<=5;b++)
{
for(c=1;c<=5;c++)
{
for(d=1;d<=5;d++)
{
for(e=1;e<=5;e++)
{
if(((b==2) + (a==3) == 1)
&& ((b==2) + (e==4) == 1)
&& ((c==1) + (d==2) == 1)
&& ((c==5) + (d==3) == 1)
&& ((e==4) + (a==1) == 1))
{
if(a*b*c*d*e == 120)
printf("a=%d b=%d c=%d d=%d e=%d\n",a,b,c,d,e);
}
}
}
}
}
}
return 0;
}边栏推荐
- BD新标签页(BdTab)插件如何登入?
- 3. deploy the fabric2.2 cluster (use the official demo)
- [redis problem] record a big key problem handling
- Cosmos Starport installation and startup
- Redis interview questions
- 平面合并(MATLAB)
- Disk C is full? A few simple tips teach you to release and clean up tens of gigabytes of space on the C disk, the most effective way to clean up the C disk
- Tidb certification guide PCTA Pctp
- Overview of cross chain protocol IBC
- v-for生成的子组件列表删除第n行出现数据错乱问题
猜你喜欢

The way of distributed system: Lamport logical clock

Overall process analysis of account book operation in fabric0.6

Dfinity (ICP) identity authentication and ledger quick start-3

18 | establish data path (middle): instruction + operation =cpu

25 | 冒险和预测(四):今天下雨了,明天还会下雨么?

安装CUDA+CUSP环境,并创建第一个HelloWord入门工程

Cosmos Starport installation and startup

ERP基础数据 金蝶

MySQL table partitioning

22 | adventure and prediction (I): hazard is both "danger" and "opportunity"
随机推荐
CCNP_ Bt- Reissue
Local shooting range 2- file upload vulnerability (III) - Network Security
26 | superscalar and VLIW: how to make the CPU throughput exceed 1
Redis master-slave replication - mentality detection mechanism
mysql面试题
25 | adventure and prediction (IV): it's raining today. Will it rain tomorrow?
leetcode 咒语和药水的成功对数
口碑好的食材配送信息化管理系统怎么样?
23 | adventure and prediction (II): relay race in the assembly line
Unity 退出编辑器模式
平面合并(MATLAB)
20 | 面向流水线的指令设计(上):一心多用的现代CPU
ERP基础数据 金蝶
中小型照明灯饰行业如何利用数字化转型突出重围?
MySQL table partitioning
Success logarithm of leetcode spells and potions
【博弈论-完全信息静态博弈】 Nash均衡的应用
Go interface implementation principle [advanced level]: type_ interface struct
STM32CubeMX的下载和安装方式
Unity exit Editor Mode