Scoring for oriented dominoes
Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...
Add the positive numbers
Add only the positive numbers of x
example:
x = [-2 -1 0 1 2 3]
the positive numbers are: 1 2 3, so their sum is 6
約4年 前
解決済み
Sum of digits of powers of 2
Given n, first, calculate the number 2^n. Then, sum the digits that comprise that number. For example:
Input: n = 7
2^n = ...
Backgammon - Display a Board Position
A previous problem in this occasional series (Problem 45967) set up a possible representation of a backgammon board:
White ston...
約4年 前 | 2 | 2 個のソルバー
解決済み
Solve expression III
Solve expression for given vector x.
Expression = (tan(2*x^2+7*x-30.25)+log(x^3-2.25))/(nthroot(sin(x^3)^2+1/5*log(x^4-2.5),3))...
約4年 前
解決済み
Wrapping the Tower of Pisa
The famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a ci...
約4年 前
解決済み
free points
function y = your_fcn_name(x)
y = x(1)+x(2);
end
Help the Patriots get to the Super Bowl
Given a football by the Patriots, return it to them with 2 psi less air in it.
(The original psi is passed as a number to the...
what's my tax amount this year ?
given an annual salary x and a tax rate i calculate the amount that you have to pay.Example
x = 70000;
i=.10
y_correc...
約4年 前
解決済み
Freebies anyone? No!!!!
Feel free to copy paste all the tests and voila you solved the problem
Try and Catch Simple Example
Try and Catch Simple Example
<http://in.mathworks.com/help/matlab/ref/try.html Example>
Vector x=[1 4 6 8 10];
Create...
約4年 前
解決済み
Reverse Calculator
Use this reverse calculator and give correct output
Its simple, In my Reverse calculator if you press 0 it will be considered...
約4年 前
解決済み
Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*
約4年 前
解決済み
Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...