解決済み


Can you Jump?
You have been provided with input array of integers. You start with initial position at the first index of this input array, and...

2年以上 前

問題


Compute a sequence with the whyphi sieve
A few problems on Cody involve sieving. For example, Cody Problem 45367 involves the famous Sieve of Eratosthenes. CP 50811uses ...

2年以上 前 | 0 | 6 個のソルバー

解決済み


USC Fall 2012 ACM : Code Word Minimum Flipped Bits
This Challenge is to solve Question A of the <http://contest.usc.edu/index.php/Fall12/Home USC ACM Fall 2012 Contest>. Given ...

2年以上 前

解決済み


Easy Sequences 40: Quadratic Congruence
Quadratic Congruence is a modular equation of the form: . In this exercise you will be given a vector containing the coefficie...

2年以上 前

解決済み


Alternate Arrangement
Determine the ways of arranging 'm' men and 'w' women alternatively in a row of 's' seats. Assumptions : s<m and s<w

2年以上 前

解決済み


Draw the Greek letter 'α'
Given the dimensions of a matrix nRow and nCol where nCol > nRow, draw the Greek letter 'α' with 1's and 0's. You can consider t...

2年以上 前

解決済み


Opposite point of the earth, what is the antipodal of a point ?
Given two strings(lat and long) that represent the geographic coordinates of a point in the earth, you have to find out what is ...

2年以上 前

問題


Alert a city about a spill
Problem statement Cody Problem 54750 involved determining the length of a stream affected by a spill. Any municipalities within...

2年以上 前 | 2 | 6 個のソルバー

問題


Find primes and integers that solve an equation
Write a function to find all primes and non-negative integers that solve the equation where is an integer. If there are no...

2年以上 前 | 1 | 11 個のソルバー

解決済み


Find the triplet
Given an array x of size n > 3 and an integer N, return the indices of three elements in the array that sum up to the given inte...

2年以上 前

解決済み


Cos x
Retorne o cosseno de x, onde x está em radianos

2年以上 前

解決済み


Número de elementos do array
Retorne o número de elementos de um array

2年以上 前

解決済み


Valor absoluto de x
Dado uma entrada x, retornar o seu valor absoluto

2年以上 前

解決済み


Seno de x
Calcule o seno de x, onde x está em radianos

2年以上 前

解決済み


Eleve ao cubo!
dado uma entrada x, encontre o seu cubo

2年以上 前

解決済み


What is the current time in Darwin, Australia?
Traders need to track exchange calendars and trading hours in detail, and account for time zone differences and daylight savings...

2年以上 前

解決済み


Compute the area of a Q
A figure resembling a Q (as in “quadrature”) is constructed in the following way: A right triangle is drawn with the left vertex...

2年以上 前

問題


List the smallest numbers with n distinct prime factors
The author of a book I am reading asked a mathematician what it feels like to be sixty. He wrote He replied, “Sixty, sandwiched...

2年以上 前 | 1 | 7 個のソルバー

問題


Classify numbers as abundant, deficient, or perfect
A number is perfect if the sum of its proper divisors (i.e., divisors excluding the number itself) is equal to itself. For examp...

2年以上 前 | 0 | 10 個のソルバー

解決済み


Family Savings Analysis
Given the bank accounts of individuals defined by a list of tuples containing the last name, first name, and savings: accounts ...

2年以上 前

問題


Determine whether a property description closes
The arrival of summer makes think back to the summers I spent working for my father’s engineering firm. For the first several s...

2年以上 前 | 1 | 6 個のソルバー

問題


Compute the area of a Q
A figure resembling a Q (as in “quadrature”) is constructed in the following way: A right triangle is drawn with the left vertex...

2年以上 前 | 1 | 10 個のソルバー

解決済み


Determine the potential energy in a springrope which hangs over from a bridge
The task is to figure out the energy a person with mass has when hung on a rope over a bridge when given the length from the sus...

2年以上 前

解決済み


Area of right triangle
Given a hypotenuse and a leg , calculate the area of right triangle.

2年以上 前

解決済み


Hofstadter Female and Male sequences
The Hofstadter Female (F) and Male (M) sequences are defined as follows Write a function to compute for a given n. See http...

2年以上 前

問題


Travel a path
In Cody Problem 60251, minnolina asks us to determine the end point given a string indicating unit movements forward, backward, ...

2年以上 前 | 0 | 8 個のソルバー

解決済み


x

2年以上 前

解決済み


Instructions Following
Complete the function follow(s) which, for a given string (containing only the letters 'f', 'b', 'l', 'r'), calculates the final...

2年以上 前

問題


Add non-triangular numbers
The nth triangular number is the sum of the first n positive integers. The sequence of triangular numbers starts 1, 3, 6, 10, 15...

2年以上 前 | 1 | 16 個のソルバー

問題


Compute the area of a lune
Write a function to compute the area of the shaded moon-shaped region in the figure below—that is, the area of a smaller circle ...

2年以上 前 | 1 | 10 個のソルバー

さらに読み込む