解決済み


Can the knight take out the pawn?
* position of knight = k * position of pawns = p can the knight take out those pawns? * k='Nf4' * p={'g6','g7'} then...

約1ヶ月 前

解決済み


Castling-01
Given the position of only one player's chess pieces(some of them) on the chessboard, figure out whether castling is valid or no...

約1ヶ月 前

解決済み


Checkmate
* The positions of different chess pieces are given in a cell *p* . * The position of the king is given as *x* Determine i...

約1ヶ月 前

解決済み


Bernoulli's Triangle
Generate the bernoulli's triangle upto nth row. <https://mathworld.wolfram.com/BernoulliTriangle.html>

約1ヶ月 前

解決済み


Solve an easy binary puzzle
A binary puzzle presents a square grid (or matrix) of cells in which each cell must be 0 or 1. The finished puzzle must follow t...

約1ヶ月 前

解決済み


Play Hocus Focus
The card game Hocus Focus starts by placing twelve cards with wizards face up on a table. The characteristics of the wizards tha...

約1ヶ月 前

解決済み


Indicate how the Prague astronomical clock strikes the hours
The astronomical clock in Prague has a bell that rings 1, 2, 3, or 4 times. The number of strokes follows the sequence 123432123...

約1ヶ月 前

解決済み


Convert integers from base 10 to proper primary notation
This problem is the companion to Cody Problem 60782. The proper primary system of expressing non-negative numbers has three digi...

約1ヶ月 前

解決済み


Express integers in negabinary
Negabinary numbers are written in base -2. For example, the negabinary number 11010 is , or 6 in base 10. In a similar way, -3 i...

約1ヶ月 前

解決済み


Convert integers from primary notation to base 10
The primary system of expressing numbers has three digits: m, x, and p, which correspond to -1, 0, and 1. The places in a primar...

約1ヶ月 前

解決済み


Simple addition
Add two numbers using a funciton

2ヶ月 前

解決済み


Complete hydraulic geometry relations
Hydraulic geometry relations express the velocity , width , and depth of a river as a function of the discharge (or flow) , whi...

2ヶ月 前

解決済み


EZ8
EZ

2ヶ月 前

解決済み


EZ9
EZ

2ヶ月 前

解決済み


EZ10
EZ

2ヶ月 前

解決済み


EZ7
EZ

2ヶ月 前

解決済み


EZ6

3ヶ月 前

解決済み


EZ4

3ヶ月 前

解決済み


EZ5
EZ5

3ヶ月 前

解決済み


EZZ
EZZ

3ヶ月 前

解決済み


EZ
EZ

3ヶ月 前

解決済み


Determine whether a number is a Ludic prime
Ludic numbers are formed by a sieve. Start with a list of the positive integers. Skip 1 and start with 2. Then delete every seco...

3ヶ月 前

解決済み


Find the closest canyon prime
My wife and I celebrated our honeymoon and most recent anniversary in Yellowstone and Grand Teton National Parks. After returnin...

3ヶ月 前

解決済み


Sum along each diagonal of a matrix
Write a routine that returns the sums along the diagonals of a given matrix, A, where the first diagonal is the bottom left corn...

4ヶ月 前

解決済み


TingTing
Output logical "true" if the input is the answer to luck and money$$$. Otherwise, output logical "false".

4ヶ月 前

解決済み


Condition number of Kronecker product
Given NxN matrix A and MxM matrix B, where M,N<=1000, write a routine to compute the condition number of kron(A,B).

4ヶ月 前

解決済み


List composite numbers that do not contain their prime factors as substrings
The number 63 has the prime factorization 3, 3, and 7, and it contains one of them (3) as a substring. In contrast, the number 4...

4ヶ月 前

解決済み


area of a square
find the generic solution for an area of a square

4ヶ月 前

解決済み


List Ormiston prime pairs
The numbers 1913 and 1931 form the first Ormiston prime pair. The numbers are consecutive primes, and they are anagrams of each ...

4ヶ月 前

解決済み


List the partitions of an integer
Several Cody problems deal with partitions of an integer, or the ways an integer can be written as the sum of positive numbers—...

4ヶ月 前

さらに読み込む