«number» 태그된 질문

이 문제는 사용, 조작, 입력으로 수락 또는 숫자 값을 출력하여 해결하기위한 것입니다.

9
정수 제곱근의 순서
정수 제곱근의 시퀀스를 정의 해 봅시다. 먼저, a (1) = 1입니다. 그런 다음 a (n)은 전에 보이지 않은 가장 작은 양의 정수 입니다. sqrt(a(n) + sqrt(a(n-1) + sqrt(... + sqrt(a(1))))) 정수입니다. 몇 가지 예 : a (2)는 3이므로 가장 작은 정수이므로 sqrt(a(2) + sqrt(a(1))) = sqrt(a(2) + 1) 3이며 이전에는 …

30
사라지는 요소
문자열 S과 인덱스 목록이 제공 되면의 결과를 새 값으로 사용하면서의 각 인덱스에서 요소를 제거하여 X수정 S하십시오 .SS 예를 들어 given S = 'codegolf'및 X = [1, 4, 4, 0, 2], 0 1 2 3 4 5 6 7 | c o d e g o l f | Remove 1 …
17 code-golf  string  array-manipulation  code-golf  string  ascii-art  code-golf  number  sequence  pi  code-golf  number  array-manipulation  code-golf  string  ascii-art  code-golf  math  number  game  code-golf  math  sequence  polynomials  recursion  code-golf  math  number  sequence  number-theory  code-golf  permutations  balanced-string  code-golf  string  ascii-art  integer  code-golf  decision-problem  hexagonal-grid  code-golf  ascii-art  kolmogorov-complexity  code-golf  number  code-golf  matrix  binary-matrix  code-golf  math  statistics  code-golf  string  polyglot  code-golf  random  lost  code-golf  date  path-finding  code-golf  string  code-golf  math  number  arithmetic  number-theory  code-golf  tetris  binary-matrix  code-golf  array-manipulation  sorting  code-golf  number  code-golf  array-manipulation  rubiks-cube  cubically  code-golf  grid  optimization  code-golf  math  function  code-golf  string  quine  code-golf  ascii-art  grid  code-golf  decision-problem  grid  simulation  code-golf  math  sequence  code-golf  path-finding  code-golf  ascii-art  grid  simulation  code-golf  number  whitespace  code-golf  sequence  code-golf  sequence  code-golf  sequence  integer  code-golf  math  game  code-golf  internet  stack-exchange-api  code-golf  sequence  code-golf  internet  stack-exchange-api  code-golf  math  factoring  code-challenge  sequence  polyglot  rosetta-stone  code-golf  string  browser  code-golf  date  code-golf  base-conversion  code-challenge  cops-and-robbers  hello-world  code-golf  cops-and-robbers  hello-world 

21
추가 사실!
수학에서 음수가 아닌 정수 n 의 계승으로 단축 된 "사실"은 n 으로 표시됩니다 ! , n 보다 작거나 같은 모든 양의 정수의 곱입니다 . 예를 들어 5! 이고 1 * 2 * 3 * 5 * 4 = 120 빈 제품에 대한 규칙에 따라 계승 0 은 1 입니다. 이것들은 …

25
간단한 패턴
입력 : 선택한 입력 형식의 두 개의 단일 자릿수 ( m및 n) 및 두 자릿수 ( a및 b)를 입력하십시오. 산출: 연습을 위해 척하십시오 m=2, n=5, a='a', b='b'. 출력은 4 개의 입력으로 구성된 문자열입니다. resultvalue를 사용 하여 문자열을 호출 해 봅시다 "". 첫째, CONCATENATE a위에 result m배, CONCATENATE 그래서 a위에 result …
17 code-golf  string  code-golf  arithmetic  code-golf  string  array-manipulation  rubiks-cube  code-golf  math  number  code-golf  tips  bash  code-golf  ascii-art  music  code-golf  arithmetic  code-golf  math  number  arithmetic  integer  code-golf  number  array-manipulation  code-golf  geometry  grid  set-partitions  code-golf  math  number  code-golf  combinatorics  code-golf  regular-expression  code-golf  permutations  code-golf  ascii-art  code-golf  number  array-manipulation  matrix  code-golf  kolmogorov-complexity  compile-time  cops-and-robbers  polyglot  cops-and-robbers  polyglot  code-golf  string  code-golf  string  ascii-art  matrix  animation  code-golf  ascii-art  code-golf  string  balanced-string  code-golf  integer  integer-partitions  expression-building 

15
확장 진실 기계
많은 사람들이 프로그래밍 의 진실 기계 가 무엇인지 알고 있습니다. 그러나 우리가 일을 시작하는 시간입니다. 확장 된 진실 기계를 소개합니다! 확장 된 진리 머신은 정수 n와 비어 있지 않은 문자열 두 가지를 입력으로받습니다 s. s n선택적인 후행 공백으로 시간을 출력 합니다. 그러나와 n같으면 프로그램을 수동으로 중지 할 때까지 0출력해야합니다 s. …

12
무료 점심과 같은 것은 없습니다
... 또는 있습니까? 귀하의 도전은 기본 가격, 팁, 할인, 쿠폰 및 추가 요금이 포함 된 내 점심 청구서를 구문 분석하고 내 점심이 $ 0 이하인지 확인하는 것 입니다. 이것이 입력 인 경우 : 12.34 15 tip 25 discount 1.5 extra 2 coupon 그러면 출력은입니다 false. 작동 방식은 다음과 같습니다. 12.34 …

21
pi에서 첫 번째로 자릿수 정렬
음수가 아닌 숫자가 주어지면 pi 에서 첫 번째로 n숫자를 정렬하십시오.n . 함수 cli 인수 또는 STDIN을 통해 입력하거나 문자열, char [] 또는 정수로 입력 할 수 있습니다. 리턴 값, 종료 상태 또는 STDOUT을 통해 출력 할 수 있습니다.
17 code-golf  number  sorting  pi 

10
최소한의 패딩으로 부호 변경, 루프 및 표시
입력: 두 개의 정수 : 하나의 음수, 하나의 양수. 산출: 첫 번째 라인에서 최저에서 최고로 출력합니다. 두 번째 줄에서 가장 높은 숫자와 가장 낮은 숫자를 제거하고 모든 개별 숫자를 부호 변경했습니다 . 세 번째 줄에서 가장 높은 숫자와 가장 낮은 숫자를 다시 제거하고 모든 개별 숫자를 다시 서명했습니다. 등 (아래 …

13
산술 테이블의 정수
도전: 입력을 기반으로 다음 6 개의 산술 테이블 중 하나의 '정수 숫자'를 출력합니다 .-더하기 ( +); -빼기 ( -); -곱셈 ( *); -구분 ( /); -지수화 ( ^); -모듈로 연산 ( %). 규칙 : 정확히 다음 중 하나입니다 산술 연산의 모든 결과 : 나는 '정수 숫자'로 정의하는 일 0, 1, …

8
유클리드 알고리즘 시각화
유클리드 알고리즘은 두 양의 정수의 최대 공약수 (GCD)를 계산하기 위해 널리 알려진 알고리즘입니다. 알고리즘 이 과제를 위해 알고리즘은 다음과 같이 설명됩니다. 특정 문자의 인접 라인으로 두 개의 입력 디스플레이 의 입력 예 3,4인접하는 선에 의해 표현 될 수 000및0000 첫 돌려 length(short_line)다른 문자로 긴 줄에 문자를 말하는 - 그 모습 …

23
세트로 자연수 구성
이 구성은 자연수를 나타내는 방법입니다. 이 표현에서 0은 빈 세트로 정의되며 다른 모든 숫자의 경우 n은 {0}과 {n-1}의 합집합입니다. 예를 들어 3을 구성하기 위해 알고리즘을 따를 수 있습니다. 3 = {ø, 2} = {ø, {ø, 1}} = {ø, {ø, {ø}}} 직무 짐작할 수 있듯이, 자연수 (0 포함)를 가져 와서 구성을 …

9
이것은 숫자입니까?
전주곡: 테스트 케이스 만들기를 훈련시키고 싶었으므로 쉽게 시도해 볼 것입니다. 도전: 주어진 (문자열) 입력 (보이는 ASCII 범위 내)을 가져 와서 숫자인지 추론하고 평가에 사용할 수있는 것을 출력하십시오. 규칙 : 숫자는 문자 만 포함합니다 -0123456789,. 답은 -1000000000에서 1000000000 사이의 숫자 만 인식하면되지만 임의로 큰 숫자를 인식 할 수 있습니다. 전체 프로그램이나 …

24
피보나치 교체
교류 피보나치 시퀀스를 먼저 시작 1하고 1평소와 같이. 그러나 다음 두 숫자를 얻기 위해 항상 마지막 두 값을 더하는 대신 더하기로 시작하고 다른 때마다 뺄 수 있습니다. 순서는 다음과 같이 시작됩니다. 1 1 2 # 1 + 1 -1 # 1 - 2 1 # 2 + -1 -2 # …

13
역 순열 인덱스
소개 n 개의 요소 를 가진리스트의 사전 식 순열은 0에서 n 까지 번호가 매겨 질 수 있습니다 ! -1. 예를 들어, 3! = 6 순열 (1,2,3)것 (1,2,3), (1,3,2), (2,1,3), (2,3,1), (3,1,2), (3,2,1). 순열이 목록에 적용되면 해당 요소는 순열의 숫자와 동일한 순서로 정렬됩니다. 예를 들어 순열 (2,3,1)을 l = (a,b,c)yields에 적용합니다 …
17 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 

8
Copeland–Erdős 상수 내에서 숫자 찾기
배경 코플랜드 - 에르 되시 상수는 "0"으로의 연결이고 소수의 기본 10 표현으로 순서대로. 그 가치는 0.23571113171923293137414... OEIS A033308 도 참조하십시오 . Copeland와 Erdős는 이것이 정상적인 숫자 임을 증명했습니다 . 이것은 모든 자연수가 Copeland-Erdős 상수의 십진 확장에서 어느 시점에서 발견 될 수 있음을 의미합니다. 도전 양의 정수가 주어지면 10을 밑으로 0으로 …

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