«math» 태그된 질문

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

16
하나 더 프로그램하고 나왔습니다!
양의 정수 중첩 수준을 감안할 때 n문자열 s인쇄 가능한 ASCII 문자 (의 에 ~같은 언어로 실행하면, 프로그램을 출력하는 프로그램을 출력하고, 출력하는 프로그램... 문자열을 출력합니다 s. 총 n프로그램이 생성되어야하며, 모든 프로그램은 답변과 동일한 언어로 실행되어야합니다. 참고 : 기본적으로 제출로 허용되는 모든 프로그램 또는 기능을 출력 할 수 있습니다. s이스케이프 문자로 입력 …
21 code-golf  recursion  code-golf  kolmogorov-complexity  board-game  code-golf  number-theory  polynomials  code-golf  code-golf  array-manipulation  polyglot  alphabet  answer-chaining  code-golf  sequence  math  atomic-code-golf  abstract-algebra  proof-golf  code-golf  internet  code-golf  internet  code-golf  ascii-art  kolmogorov-complexity  code-golf  math  ascii-art  number  integer  code-golf  decision-problem  binary-matrix  code-golf  number  sequence  number-theory  code-golf  math  decision-problem  matrix  abstract-algebra  code-golf  string  keyboard  code-golf  fractal  code-golf  math  sequence  combinatorics  hello-world  vim  code-golf  sequence  code-golf  graphical-output  image-processing  code-golf  decision-problem  matrix  linear-algebra  code-golf  ascii-art  code-golf  math  code-golf  ascii-art  graphical-output  code-golf  string  code-golf  string  substitution  code-golf  string  ascii-art  code-golf  arithmetic  code-golf  number  array-manipulation  decision-problem  code-golf  kolmogorov-complexity  code-generation  fractal  code-golf  ascii-art  kolmogorov-complexity  code-golf  ascii-art  code-golf  string  array-manipulation  code-golf  music  code-golf  array-manipulation  code-golf  internet  stack-exchange-api  math  fastest-algorithm  code-golf  binary  bitwise  code-golf  date  code-golf  string  code-golf  sequence  integer  code-golf  arithmetic  number-theory  code-golf  string  random 

19
파스칼의 교대 삼각형
파스칼의 삼각형 은 1각 행이 연속적인 덧셈 으로 시작하여 시작함으로써 생성됩니다 . 대신 곱셈과 덧셈을 번갈아 가면서 삼각형을 만들겠습니다. 우리 1는 독방으로 행 을 시작합니다 1. 그 후, 홀수 행에 가산이 행해지고 짝수 행에 대해 곱셈이 수행됩니다 (1 인덱스). 덧셈 단계를 수행 할 때 삼각형 외부의 공백이 0s 로 채워져 …

9
정수 모듈로의 역수를 계산합니다 100000000003
작업은 다음과 같습니다. 정수 감안할 때 x(되도록 x모듈이 100000000003아닌 같음 0당신이 편리하게 찾을 수있는 방법으로 코드에 제출), 출력 또 다른 정수 y < 100000000003그 정도 (x * y) mod 100000000003 = 1. 표준 데스크탑 시스템에서 다음x 과 같은 입력에 대해 코드를 실행하는 데 30 분 미만이 소요됩니다 |x| < 2^40. …

7
물류지도의 이상한 매력
과제의 목적은 거의 플롯이다 트랙터 의 물류 맵 의 파라미터의 함수로서 , R (또한 분기도 ), 또는 그것의 하위 영역. 그래프의 모양은 Wikipedia의 다음 이미지에서 볼 수 있습니다. 배경 물류지도 입력 취하는 수학적 함수 의 X (k)를 와 출력에 매핑 X K + 1 로 정의 x k + 1 …

2
합리적 분해 a = xyz (x + y + z)
쓰기 기능 x(a), y(a)그리고 z(a)이러한 모든 합리적 동안 그 a 모든 기능은 유리수를 반환 하고 x(a)*y(a)*z(a)*(x(a) + y(a) + z(a)) == a. ≥ 0이라고 가정 할 수 있습니다. 프로그램이 수학적으로 건전한 경우 프로그램에서 합리적인 유형이나 연산을 사용할 필요가 없습니다. 예를 들어 답에 제곱근을 사용하면 해당 인수가 항상 합리적인 수의 제곱임을 …

3
인생이 레몬을 줄 때 레모네이드 만들기
도전 당신은 어디 단어, 입력 문자열이 주어집니다 "Lemon"이 변환되어야 발견 "Lemonade" 하지만a , d그리고 e문장에 다른 곳에서 빌려해야합니다. 예 입력 예 : 어렸을 때 레몬을 찾았 어요 출력 예 : 내가 어렸을 때 레모네이드를 찾았 어 레모네이드는 원본에서 다음 첨자 문자를 도용하여 만든 내가 foun D 레모네이드 어 전자 N …
21 code-golf  string  code-golf  parsing  internet  stack-exchange-api  code-challenge  kolmogorov-complexity  restricted-source  brain-flak  python  logic  pyth  code-golf  string  search  optimized-output  code-golf  tips  language-design  golfing-language  code-golf  tips  language-design  code-golf  number  sorting  pi  code-golf  math  number  code-golf  string  balanced-string  classification  brain-flak  code-golf  math  number-theory  decision-problem  code-golf  tips  code-golf  number  sequence  code-golf  balanced-string  brain-flak  code-golf  math  sequence  arithmetic  fibonacci  code-golf  math  parsing  code-golf  string  keyboard  code-golf  code-golf  string  source-layout  whitespace  code-golf  math  rational-numbers  code-golf  string  code-golf  string  code-golf  math  sequence  code-golf  number  floating-point  code-golf  string  decision-problem  subsequence  code-golf  string  kolmogorov-complexity  code-golf  string  permutations  balanced-string  brain-flak  code-golf  string  math  number  code-golf  string  primes  cipher  code-golf  string  ascii-art  chemistry  code-golf  ascii-art  grid  counting  code-golf  math  arithmetic  integer  code-golf  number  kolmogorov-complexity  code-golf  ascii-art  kolmogorov-complexity  sequence  metagolf  brain-flak  code-golf  ascii-art  kolmogorov-complexity  code-golf  string  whitespace 

9
평균 기온!
최고 온도 스케일에 대해 TNB에서 한 번 토론이 진행되었으며, 우리는 무언가에 동의했습니다. 즉, Celsius , Kelvin , Fahrenheit 및 Rankine (죄송합니다). 이제 문제는 대부분의 사람들이이 시스템을 사용하지 않는다는 것입니다. 따라서이 평균에서 다시 변환 할 프로그램이 필요합니다! 도전 특정 온도의 섭씨, 화씨, 켈빈 및 랭킨 표현의 평균을 고려하면 미리 정의되고 일관된 …
21 code-golf  math 

16
고유 쌍 확인
이 도전에서는 정사각 행렬 A, 벡터 v및 스칼라가 제공 λ됩니다. 에 (λ, v)해당하는 고유 쌍 인지 확인해야 합니다 A. 즉, 여부 Av = λv입니다. 도트 제품 두 벡터의 내적은 요소 별 곱셈의 합입니다. 예를 들어 다음 두 벡터의 내적은 다음과 같습니다. (1, 2, 3) * (4, 5, 6) = 1*4 …

14
평균이 가장 작은 하위 행렬 찾기
당신은 주어진하고 N 별 m 정수의 행렬 N, m> 3 . 당신의 작업은 발견하는 3- 바이 -3 최저 평균 및 출력이 값을 갖는 서브 매트릭스. 규칙 및 설명 : 정수는 음이 아닙니다. 선택적 입력 및 출력 형식 출력은 소수점 이하 2 자리까지 정확해야합니다 (정수가 아닌 경우). 하위 행렬은 연속적인 행과 …
21 code-golf  math  matrix 

2
주기적 및 비 주기적 부품 교체
모든 유리수의 소수점 표시 p/q에는 다음과 같은 형식으로주기적인 꼬리, 비 주기적 머리 및 소수점 앞의 섹션이 있습니다. (before decimal point).(non-periodic)(periodic) 몇 가지 예는 다음과 같습니다. 1/70 = 0.0142857... = (0).(0)(142857) 10/7 = 1.428571... = (1).()(428571) ## no non-periodic part 1/13 = 0.076923... = (0).()(076923) 3/40 = 0.075 = (0).(075)() ## …

21
24 시간의 합
0에서 141 (포함) 사이의 정수가 주어지면 해당 시간에시, 분 및 초 단위가 추가되는 모든 24 시간 시간을 나열하십시오. 추가 규칙 숫자는 한 자리 숫자가 아닌 시간 단위로 추가됩니다. 예를 들어 17:43:59 17 + 43 + 59 = 119 이것이 숫자가 추가 되는 예임을 기억하십시오 . 실제로 119를 입력하면 17:43:59가 결과 …
21 code-golf  math 

3
원자 비율의 게임
당신의 작업 은 가장 높은 점수와 아토 마를 재생 봇을 만듭니다 . 게임 작동 방식 : 게임 보드는 6 개의 "원자"고리로 시작하며 숫자 범위는 1~ 사이 3입니다. 원자 자체에 따라 두 원자 사이 또는 다른 원자에서 원자를 "재생"할 수 있습니다. 일반 원자 또는 특수 원자를 가질 수 있습니다. 정상적인 원자 …
21 code-challenge  game  code-golf  combinatorics  permutations  code-golf  image-processing  brainfuck  encode  steganography  code-golf  ascii-art  code-golf  ascii-art  kolmogorov-complexity  code-golf  ascii-art  fibonacci  code-golf  string  code-golf  sorting  popularity-contest  statistics  code-golf  ascii-art  kolmogorov-complexity  code-golf  code-golf  ascii-art  tic-tac-toe  code-golf  string  code-challenge  classification  test-battery  binary-matrix  code-golf  math  arithmetic  code-golf  ascii-art  random  code-golf  string  code-golf  number  binary  bitwise  code-golf  number  arithmetic  code-golf  math  ascii-art  code-golf  string  ascii-art  code-golf  string  ascii-art  code-golf  string  code-golf  counting  code-golf  number  binary  bitwise  decision-problem  code-golf  array-manipulation  code-golf  tips  brain-flak  code-challenge  quine  source-layout  code-generation  code-golf  linear-algebra  matrix  abstract-algebra  binary-matrix  code-golf  string  palindrome  code-golf  puzzle-solver  sudoku  code-golf  ascii-art  code-golf  graphical-output  internet  code-golf  ascii-art  kolmogorov-complexity  code-golf  math  code-golf  clock 

20
저장된 페니는 페니입니다
... 계산! 당신은 달러와 센트로 돈의 양을 나타내는 변수와 동전 값의 배열을 프로그램에 전달할 것입니다. 코드에 전달 된 금액에 합산되는 주어진 코인 값 배열의 가능한 조합 수를 출력해야합니다. 이름이 지정된 동전으로 불가능한 경우 프로그램은을 반환해야합니다 0. 미국의 화폐 용어에 대한 참고 사항 : 1 센트 동전 : 페니 5 센트 …

22
연속 분수를 간단히합니다
연속 분수는 분수를 반복적으로 설명하는 표현식입니다. 그것들은 그래픽으로 표현 될 수 있습니다 : 또는 값 목록으로 표시 될 수 있습니다. [a0; a1, a2, a3, ... an] 도전 과제 : 기수 : 및 분모 값 목록 : 연속 분수를 단순화 된 합리적인 분수로 단순화합니다 : 분자 및 분모를 개별적으로 반환 또는 …

14
종료, 순수 ​​정기 또는 최종 정기?
소개 소수점 이하 자릿수가있는 경우 소수점이 종료됩니다. 예를 들어, 0.4 (2/5)는 십진수가 하나이므로 종료됩니다. 소수점 이하 자릿수는 무한하며 소수 자릿수 (반복되는 소수 자릿수) 앞에 10 진수가없는 경우 10 진수는 완전히주기적인 것입니다. 예를 들어 0.142857142857142… 142857은 소수점 직후 반복되기 시작합니다. 소수점 이하 자릿수가 무한대이고 반복되기 전에 소수점 이하 자릿수가 유한 숫자 …
21 code-golf  math  number 

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