任何人都可以在java中编码这个问题 [英] Can anybody code this problem in java

查看:78
本文介绍了任何人都可以在java中编码这个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给你一个数组A = [a1; a2; A3; ::: ;;一个n个正整数。如果按照它们在A中出现的顺序编写整数,并在每个整数之前插入符号+,则会得到一个算术表达式。如果表达式的求值给出值v,我们说v由数组A实现(或可实现)。例如,考虑数组[7; 12; 1; 9;五个正整数的5]。我们有



我尝试过:



You are given an array A = [a1; a2; a3; : : : ; an] of n positive integers. If you write the integers in the order they appear in A, and insert symbols + or before each integer, you get an arithmetic expression. If the evaluation of the expression gives the value v, we say that v is realized (or realizable) by the array A. For example, consider the array [7; 12; 1; 9; 5] of five positive integers. We have

What I have tried:

You are given an array A = [a1; a2; a3; : : : ; an] of n positive integers. If you write the integers in the order they appear in A, and insert symbols + or before each integer, you get an arithmetic expression. If the evaluation of the expression gives the value v, we say that v is realized (or realizable) by the array A. For example, consider the array [7; 12; 1; 9; 5] of five positive integers. We have

推荐答案

这是你的作业,不是我们的作业。您何时计划自己学习实际编码?



此论坛不是家庭作业服务 - 此论坛旨在帮助那些真正尝试并且受到重视的人一个障碍。不适合想要给他们的东西的懒人。



如果您计划从事计算机编程,我建议您找到另一种职业,因为您对该主题显然没有兴趣。远离任何技术,因为他们几乎都需要欲望和大量的努力。你显然缺两者。



也许在商店或汽油(汽油)站工作。需要最少的学习。无论你选择什么,帮自己一个忙,至少试着找到你喜欢的东西。
This is your homework, not ours. When do you plan on learning to actually code by yourself?

This forum isn't a homework service - this forum is for helping those who are really trying and have hit a snag. Not for lazy people who want things just given to them.

If you had planned on a career in computer programming, I suggest you find an alternative career as you've clearly no interest in the topic. Keep away from anything technical as they all pretty much require both desire and a great deal of effort. You clearly lack both.

Maybe work in a shop or a gas (petrol) station. Minimal study required. Whatever you choose, do yourself a favor and at least try to find something you like.


问题需要数组项的总和。简单的循环有什么问题(例如,参见迭代Java中的数组 - GeeksforGeeks [ ^ ])?
The problem requires the sum of the items of the array. What is wrong in a simple loop (see, for instance Iterating over Arrays in Java - GeeksforGeeks[^])?


引用:

任何人都可以在java中编码这个问题

Can anybody code this problem in java



最有可能是这里的每个人。


Most probably everyone here.

Quote:

我是动态编程的新手并且卡在某处,无法弄清楚如何继续进行

I am new to Dynamic Programming and stuck somewhere, and could not figure out how to proceed further



据我所知,这个要求与动态编程无关,但由于你没有发布完整的文字,我可能错了。

获得帮助在这里,显示您的代码并解释您遇到的问题。顺便说一句,填写要求文本。


As far as I can see, this requirement is not related to dynamic programming, but since you didn't post the complete text, I may be wrong.
To get help here, show your code and explain where you are stuck. By the way, complete the text of requirement.


这篇关于任何人都可以在java中编码这个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆