当前位置:网站首页>[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
边栏推荐
- 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
- Configuration file converted from Excel to Lua
- Modbus protocol communication exception
- Three.js学习-光照和阴影(了解向)
- UCF(暑期团队赛二)
- 浅谈镜头滤镜的类型及作用
- Three methods of Oracle two table Association update
- In 2022, we must enter the big factory as soon as possible
- Figure database ongdb release v-1.0.3
- js Array 列表 实战使用总结
猜你喜欢
First acquaintance with CDN
[lgr-109] Luogu may race II & windy round 6
04. Project blog log
Postman pre script - global variables and environment variables
[leetcode daily question] number of enclaves
Golang -- TCP implements concurrency (server and client)
Lepton 无损压缩原理及性能分析
Postman assertion
Ora-01779: the column corresponding to the non key value saving table cannot be modified
03. 开发博客项目之登录
随机推荐
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
關於Unity Inspector上的一些常用技巧,一般用於編輯器擴展或者其他
04. Project blog log
Biscuits (examination version)
idea一键导包
Notes, continuation, escape and other symbols
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
Pix2pix: image to image conversion using conditional countermeasure networks
Pickle and savez_ Compressed compressed volume comparison
Implementing fuzzy query with dataframe
Cve-2019-11043 (PHP Remote Code Execution Vulnerability)
组播和广播的知识点梳理
Tetris
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
SQLite add index
Some common skills on unity inspector are generally used for editor extension or others
Talking about the type and function of lens filter
Unity gets the width and height of Sprite
C# AES对字符串进行加密
Rce code and Command Execution Vulnerability