문제를 풀었습니다


Solve an ODE: precocious pair’s porcine pursuit
In our previous encounters with Matilda and Labrun, the scintillating siblings collected candy wrappers, amused others with card...

거의 4년 전

문제를 풀었습니다


Define an arithmetic sequence
Given three numbers n, a, and d, define an arithmetic sequence of n terms with a being the initial term of the sequence and d be...

거의 4년 전

문제를 풀었습니다


Generate the Figure-Figure sequence
After discussing Scott Kim’s FIGURE-FIGURE Figure (below) in Gödel, Escher, Bach, Douglas Hofstadter introduced an integer seque...

거의 4년 전

문제를 풀었습니다


Determine whether the input is an anagram number
In Cody Problem 44293, Mehmet OZC asks us to spell numbers as words. For example, 67 would be “sixty-seven” and 76 would be “sev...

거의 4년 전

문제를 풀었습니다


That's not my hat!
There exists a highly secretive hat consortium. Members possess identical hats. The members are invited to a meeting. All of the...

거의 4년 전

문제를 풀었습니다


List the Euclid numbers
Euclid proved that the number of primes is infinite with the following argument. Suppose the primes form a finite set , , . Comp...

거의 4년 전

문제를 풀었습니다


Evaluate the Kelvin functions
The Kelvin functions ber, bei, ker, and kei are related to Bessel functions of order . When the order is not specified, the defa...

거의 4년 전

문제를 풀었습니다


prime consecutive sums
Create a number sequence of 1 to n, such that the sums of every two consecutive numbers are all primes. E.g. if n = 5, you may ...

거의 4년 전

문제를 풀었습니다


Fill a rectangle with 1x1 and 2x2 tiles
A 3x2 rectangle can be filled with 1x1 and 2x2 tiles in three ways: The colors merely distinguish the sizes of the tiles. A 3...

거의 4년 전

문제를 풀었습니다


Compute a determinant
Write a function to compute the determinant of an x matrix with diagonal entries equal to an integer and other entries equal ...

거의 4년 전

문제를 풀었습니다


Get twenty-four
Inpur four integers in 1 to 10, you may use plus, minus, multiply and divid to get 24. Note that every integer should be used on...

거의 4년 전

문제를 풀었습니다


Palindrome Problem 1
Continued Problem 50033: A palindrome is one-thirteenth of the sum of and , where and are also palindrome. Give an example o...

거의 4년 전

문제를 풀었습니다


Concatenate input positive integers to obtain a maximum.
Input some integers, you need to concatenate them to obtain a maximum integer. Neither use library function "perms" to list all ...

거의 4년 전

문제를 풀었습니다


N-th Digit of all Write-Down Numbers
Write-Down Numbers are: 123456789101112131415161718192021222324252627282930... What is the N'th digit (where N is represented a...

거의 4년 전

문제를 풀었습니다


n-th digit of write-down all numbers
Write down number as 123456789101112131415161718192021222324252627282930... what's the n-th digit? input n and get the digit.

거의 4년 전

문제를 풀었습니다


Evaluate Poker Hand
Given an input table of card values and card suits between five and thirteen cards, choose the best five cards and output the ra...

거의 4년 전

문제를 풀었습니다


Determine Poker Hand Winner
Determine the poker hand winner from two hands of cards (each hand will contain the same number of cards between five and thirte...

거의 4년 전

문제를 풀었습니다


Draw the symbol '+'
Draw '+' in an x-by-x matrix (where x is odd and x >3) Example: x = 5 y = [0 0 1 0 0 0 0 1 0 0 1 1 1 1 1 0 ...

거의 4년 전

문제를 풀었습니다


Determining if a Degree Sequence is Potentially a Graph
A degree sequence is a list of numbers representing the degrees of vertices in a graph. While it is difficult to tell if a graph...

거의 4년 전

문제를 풀었습니다


Check if a matrix Diagonal is equal to its secondary diagonal
Your function should return True if the secondary diagonal is equal to diagonal, and False otherwise. Eg: M = [1 2 1 ...

거의 4년 전

문제를 풀었습니다


Area of a regular hexagon
Given the length of a side of a regular hexagon, return its area rounded to two decimal places.

거의 4년 전

문제를 풀었습니다


Create the Ulam spiral
Have you ever seen this wonderful spiral ? The Ulam Spiral is arranging prime numbers in a clockwise spiral starting in 0. Give...

대략 4년 전

문제를 풀었습니다


Ramanujan's Number
About 1729 1729 is the first positive integer which can be expressed as the sum of two positive cubes in two different ways. ...

대략 4년 전

문제를 풀었습니다


Add the number of horizontal and vertical movements to each matrix element
Given n, create a square matrix and with element (1,1) = 1, add 1 to each element for each horitizonal and vertical movement. E...

대략 4년 전

문제를 풀었습니다


Draw 'Y'
Draw 'Y' in an x-by-x matrix (where x is odd and x >= 3) Examples: x = 3 y = [1 0 1 0 1 0 0 1 0] x = 5 y = [1...

대략 4년 전

문제를 풀었습니다


Matrix rotation
You are given a 2D matrix of dimension [m,n] and a positive integer r. You have to rotate the matrix r times and print the resul...

대략 4년 전

문제를 풀었습니다


Circle Division
A circle can be divided into 2 sections, by placing 2 points in arbitrary locations along its circumference and drawing a straig...

대략 4년 전

문제를 풀었습니다


Solve an ODE: first-order linear equation
In the fall semester of [redacted], my professor for a course on ordinary differential equations said, “There are two groups of ...

대략 4년 전

문제를 풀었습니다


Classify product/digit-sum sequences
Cody Problem 53120 involved a sequence in which a term is computed by multiplying the previous two terms and adding the digits o...

대략 4년 전

문제를 풀었습니다


Solve an ODE: nonlinear third-order equation
Write a function to solve the ordinary differential equation on the domain with , , and either or . The input variable ord ...

대략 4년 전

더 보기