«math» 태그된 질문

과제는 수학과 관련이 있습니다. [number] [number-theory] [arithmetic] [combinatorics] [graph-theory] [geometry] [abstract-algebra]와 같이보다 구체적인 태그를 사용하는 것도 고려하십시오.

28
수퍼 로그 계산
이것은 간단한 도전이어야합니다. 숫자 감안할 때 n >= 0, 출력 슈퍼 로그 (로그 - 스타 또는 로그 *를, 또는 로그 반복 하기 때문에 동일, n이 문제에 대한 부정적인 결코합니다.)의 n. 이것은 tetratation 에 대한 두 가지 역함수 중 하나입니다 . 다른 하나는 관련 질문 에있는 수퍼 루트 입니다. 예 Input …
29 code-golf  math  code-golf  array-manipulation  sorting  code-golf  math  arithmetic  matrix  code-golf  string  kolmogorov-complexity  code-golf  string  code-golf  math  sequence  arithmetic  recursion  code-golf  math  ascii-art  sequence  code-golf  math  array-manipulation  code-golf  code-golf  kolmogorov-complexity  code-golf  string  code-golf  string  decision-problem  code-golf  array-manipulation  tips  javascript  json  code-golf  math  string  number  number-theory  code-golf  math  sequence  fibonacci  number  arithmetic  fastest-code  integer  code-golf  math  sequence  code-golf  string  file-system  tips  golfscript  code-golf  string  code-golf  string  natural-language  code-golf  string  file-system  code-golf  math  array-manipulation  code-challenge  image-processing  compression  code-golf  math  number  sequence  code-golf  math  combinatorics  regular-expression  code-golf  sequence  pi  code-golf  ascii-art  code-golf  string  array-manipulation  sorting  code-golf  string  graph-theory  code-golf  string  code-golf  string  ascii-art  code-challenge  compression  code-golf  code-golf  math  sequence  number-theory  code-golf  maze  graph-theory  code-golf  math  sequence 

2
타원 곡선에 추가
타원 곡선에 추가 면책 조항 : 이것은 타원 곡선의 풍부한 주제에 대한 정의를하지 않습니다. 많이 단순화되었습니다. 타원 곡선이 최근 암호화와 관련하여 많은 미디어 주목을 받았기 때문에 타원 곡선의 "계산"이 실제로 어떻게 작동하는지에 대한 작은 통찰력을 제공하고 싶었습니다. 소개 타원 곡선은 (x,y)양식 평면의 점 집합입니다 y^2 = x^3+Ax+B. ( 4A^3+27B^2 ≠ …

3
정수 복잡성
당신의 임무는 입력 n에서 각 숫자 1부터 n까지 의 최소 표현 을 순서대로 출력하는 프로그램을 작성하는 것 입니다. 바이트 단위의 최단 프로그램이 이깁니다. 최소 표현은 1과 더하기 및 곱셈을 결합하여 가능한 한 적은 수의 1을 사용하여 주어진 수를 얻습니다. 예를 들어 11 개로 23표시되며 23=((1+1+1)(1+1)+1)(1+1+1)+1+1최소값입니다. 요구 사항 : 프로그램은 양의 …

14
파워 트레인을 찾으십시오!
당첨자는 10 바이트로 Jelly를 사용한 Dennis ♦입니다! 이 도전은 여전히 ​​여기에 있지만 결과는 더 이상 얻지 않을 것입니다. 숫자의 파워 트레인은 John Conway (Conway의 Game of Life 제작에도 주목할 만하지 만 요점이 아닙니다)의 개념입니다. 다음과 같이 정의됩니다. 모든 숫자에 대해 숫자 의 파워 트레인은 ...입니다 (즉, 왼쪽에서 오른쪽으로 두 번째 …
29 code-golf  math 

19
기본 바이너리에 관한 모든 것
퍼니 제목을 변명하십시오. 이 질문은 82000의 흥미로운 속성에서 영감을 얻은 것 입니다. 이 글에서 저자는 82000은 2, 3, 4, 5의 이진수라고 설명합니다. 그러면 게시물은 "2, 3, 4, 5, 6의 이진수 인 숫자가 있습니까?"라는 질문을 제기합니다. "? (호기심 많은 사람들을 위해 최대 10 ^ 1,000,000까지의 값을 확인했으며 지금까지는 대답이 아니오입니다.) 이것은 …

30
똑똑한 사람의 신기루
옛날 옛적에, 나는 Quora 에서이 질문 / 답변을 읽고있었습니다. FizzBuzz 테스트를 통과 할 수없는 컴퓨터 공학 학위를 가진 프로그래머가 있습니까? 이 코드는 명백한 답변으로 제공됩니다 for i in range(1, 100): if i % 3 == 0 and i % 5 == 0: print "FizzBuzz" elif i % 3 == 0: …
29 popularity-contest  code-challenge  word  popularity-contest  string  grid  language-design  code-golf  source-layout  math  fastest-algorithm  assembly  code-golf  json  code-golf  arithmetic  array-manipulation  code-golf  ascii-art  code-golf  crossword  code-golf  string  restricted-complexity  code-golf  ascii-art  kolmogorov-complexity  code-golf  string  decision-problem  balanced-string  syntax  code-golf  grid  puzzle-solver  hexagonal-grid  code-golf  math  number  sequence  code-golf  string  decision-problem  code-golf  cryptography  king-of-the-hill  code-challenge  fastest-code  code-golf  number  code-golf  code-golf  string  code-golf  cryptography  king-of-the-hill  java  code-golf  number-theory  base-conversion  code-golf  code-golf  array-manipulation  code-golf  array-manipulation  sorting  code-challenge  restricted-source  quine  code-golf  tips  python  king-of-the-hill  code-golf  source-layout  fractal  code-golf  tips  game  king-of-the-hill  path-finding  grid  code-golf  kolmogorov-complexity  natural-language  code-golf  tips  python  code-golf  number  arithmetic  sequence  array-manipulation  code-golf  number  combinatorics  random  integer-partitions  code-golf  string  code-golf  vim  comment  code-golf  combinatorics  counting  code-challenge  rosetta-stone  code-golf  combinatorics  sequence  subsequence  code-golf  code-challenge  restricted-source  primes  printable-ascii  popularity-contest  graphical-output  image-processing 

28
요세푸스 문제 (계산)
도전 두 개의 양의 정수 n 과 k 를 인수로 사용하고 각 k 번째 사람을 계산 한 후 n에서 남은 마지막 사람의 수를 반환 하는 함수를 작성하십시오 . 이것은 코드 골프 도전이므로 가장 짧은 코드가 승리합니다. 문제 n 명 ( 1 에서 n 까지의 숫자 )은 원 안에 서 있으며 …

30
Rand5 () ~ Rand7 () [닫기]
Rand5 () 함수가 제공됩니다. 이 함수는 1에서 5 사이의 완벽하게 임의의 (균등 분포) 정수를 반환합니다. Rand5 ()를 사용하여 1과 7 사이의 완벽하게 임의의 정수를 생성하는 Rand7 () 함수를 제공하십시오.

30
4 개의 점이 사각형을 형성하는지 확인
평면에서 4 점을 입력으로 받아 4 점을 정사각형으로 만들면 true를 반환하는 함수를 작성하십시오. 점은 절대 값 <1000 인 적분 좌표를 갖습니다. 4 점의 합리적인 표현을 입력으로 사용할 수 있습니다. 포인트는 특정 순서로 제공되지 않습니다. 가장 짧은 코드가 승리합니다. 사각형 예 : (0,0),(0,1),(1,1),(1,0) # standard square (0,0),(2,1),(3,-1),(1,-2) # non-axis-aligned square (0,0),(1,1),(0,1),(1,0) …
29 code-golf  math 

30
페 던트 코사인
상사가 방금 코사인 함수를 작성하라고 말했습니다. 좋은 수학 괴짜이기 때문에 내 마음은 즉시 적절한 Taylor Series를 소집했습니다. cos(x) = 1 / 0! - x^2 / 2! + x^4 / 4! - x^6 / 6! + ... + (-1)^k x^(2k) / (2k)! + ... 그러나 내 상사는 매우 까다 롭습니다. 그는 …

20
스튜이의 순서 : + *-/ + *-/
더하기 +, 곱하기 *, 빼기 -및 나누기 /(정수가 아닌 부동 수)의 네 가지 기본 연산을 사용합니다 . Stewie의 순서 는 다음과 같이 정의됩니다. x = [x(1), x(2)] // Two initial numbers (one indexed) x(3) = x(1) + x(2) x(4) = x(2) * x(3) x(5) = x(3) - x(4) x(6) = …

26
펠 방정식의 기본 솔루션
정사각형이 아닌 양의 정수 nnn 이 주어지면 관련된 Pell 방정식 의 기본 해 (x,y)(x,y)(x,y) 를 찾으십시오. x2−n⋅y2=1x2−n⋅y2=1x^2 - n\cdot y^2 = 1 세부 기본적인 (x,y)(x,y)(x,y) 정수 쌍 x,yx,yx,y 의 식을 만족 xxx 최소한, 긍정적이다. ( 카운트되지 않은 사소한 해 (x,y)=(1,0)(x,y)=(1,0)(x,y)=(1,0) 는 항상 있습니다 .) nnn 이 사각형이 아니라고 가정 할 …

6
도움! 계산기가 오작동합니다!
소개 계산기가 이상하게 작동합니다. 때로는 내가 입력하면가 8표시됩니다 2. 때로는 입력하면 a 6가 표시됩니다 +. 일부 버튼이 섞여 있습니다! 아무도 나를 결정하는 데 도움을 줄 수 있습니까? 도전: 입력 : 올바른 결과 가있는 잘못된 방정식 목록 . 출력 : 교체 된 두 개의 버튼. 예를 들면 다음과 같습니다 . 입력은 …
28 code-golf  number  arithmetic  integer  code-golf  math  number  geometry  code-golf  grid  code-golf  math  number  sequence  primes  code-golf  sequence  kolmogorov-complexity  code-golf  string  ascii-art  alphabet  code-golf  math  sequence  integer  code-golf  number-theory  integer  natural-language  code-golf  date  code-golf  function  code-golf  ascii-art  code-golf  math  number-theory  primes  classification  code-golf  array-manipulation  decision-problem  matrix  code-golf  number  code-golf  code-golf  ascii-art  matrix  code-golf  string  code-golf  sequence  base-conversion  code-golf  code-golf  math  number-theory  combinatorics  integer-partitions  code-golf  integer  binary  base-conversion  code-golf  integer  base-conversion  palindrome  code-golf  code-golf  integer-partitions  code-golf  math  ascii-art  matrix  code-golf  number  sequence  number-theory  matrix  code-golf  interpreter  code-golf  graph-theory  code-golf  ascii-art  decision-problem  code-golf  division  code-golf  array-manipulation  primes  code-golf  string  ascii-art  code-golf  primes  counting  code-golf  matrix  unicode  code-golf  source-layout  code-golf  grammars  code-golf  string  cops-and-robbers  regular-expression  obfuscation  string  code-challenge  cops-and-robbers  regular-expression  code-golf  kolmogorov-complexity  game  card-games  code-golf  kolmogorov-complexity  code-golf  array-manipulation  matrix  code-challenge  cops-and-robbers  code-challenge  decision-problem  cops-and-robbers  code-golf  permutations 

30
벡터 정규화
벡터 를 정규화 하는 것은 방향을 일관되게 유지하면서 길이를 1 ( 단위 벡터 )로 조정하는 것입니다. 예를 들어 3 개의 성분 u 로 벡터를 정규화하려면 먼저 길이를 찾습니다. | u | = sqrt (u x 2 + u y 2 + u z 2 ) ... 각 값을이 값으로 조정하여 …

8
보이지 않지만 공유 숫자는 없습니다!
도전 여기 PPCG에서는 시퀀스가 ​​마음에 듭니다 . 다른 재미도 있습니다. 의 정의하자 a(n)것으로 작은 양의 정수 X모든 같지 않음 a(k)( 0 < k < n)하고, a(n-1)그리고 X어떤 진수를 공유하지 않습니다.a(0) = 0 입력이 주어지면 n > 0, 그런 출력이 a(n)됩니다. 예를 들어, 입력 n = 13, 우리가 가지고 a(13) = …

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.