当前位置:网站首页>[detailed explanation of Huawei machine test] check whether there is a digital combination that meets the conditions
[detailed explanation of Huawei machine test] check whether there is a digital combination that meets the conditions
2022-07-06 05:21:00 【A less intelligent programmer】
List of articles
Preface
《 Detailed explanation of Huawei's machine test questions Python Realization 》 The column includes Huawei column of niuke.com 、 Huawei test questions 、 Huawei OD Real problem of machine test .
If you are preparing for Huawei's interview , If you want to know something, you can send me a private letter , I will try my best to help you , I can also give you some suggestions !
This paper solves the non optimal solution ( Non optimal performance ).
Title Description
Given an array of positive integers Check whether there is an array combination that meets the rule in the array
The rules : A=B+2C
Input description :
The first line outputs the number of elements of the array The next line outputs all array elements Space off
Output description :
If there is a number that meets the requirements Output in sequence in the same line In the rules A/B/C The value of Space off If there is no output 0
Example 1
Input :
4
2 7 3 0
Output :
7 3 2
explain :
7=3+2*2
Example 2
Input :
3
边栏推荐
- 备忘一下jvxetable的各种数据集获取方法
- Principle and performance analysis of lepton lossless compression
- EditorUtility.SetDirty在Untiy中的作用以及应用
- Mongodb basic knowledge summary
- [leetcode16] the sum of the nearest three numbers (double pointer)
- idea一键导包
- 指针经典笔试题
- 集合详解之 Collection + 面试题
- Collection + interview questions
- Cve-2019-11043 (PHP Remote Code Execution Vulnerability)
猜你喜欢
[effective Objective-C] - memory management
Codeforces Round #804 (Div. 2) Editorial(A-B)
[untitled]
GAMES202-WebGL中shader的编译和连接(了解向)
图数据库ONgDB Release v-1.0.3
Pointer classic written test questions
Easy to understand I2C protocol
Microblogging hot search stock selection strategy
GAMES202-WebGL中shader的編譯和連接(了解向)
【torch】|torch.nn.utils.clip_grad_norm_
随机推荐
自建DNS服务器,客户端打开网页慢,解决办法
05. 博客项目之安全
Yyds dry inventory SSH Remote Connection introduction
Principle and performance analysis of lepton lossless compression
Vulhub vulnerability recurrence 68_ ThinkPHP
Sliding window problem review
HAC cluster modifying administrator user password
04. 项目博客之日志
[leetcode] 18. Sum of four numbers
Excel转换为Lua的配置文件
Class inheritance in yyds dry inventory C
UCF (2022 summer team competition I)
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Ora-01779: the column corresponding to the non key value saving table cannot be modified
flutter 实现一个有加载动画的按钮(loadingButton)
Questions d'examen écrit classiques du pointeur
RT thread analysis - object container implementation and function
GAMES202-WebGL中shader的编译和连接(了解向)
Three.js学习-光照和阴影(了解向)
C进阶-数据的存储(上)