«number» 태그된 질문

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

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

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 

27
한 목록에서 다른 값으로 된 값의 인덱스 찾기
양의 정수 목록을 입력으로 가져와야 합니다. 이 n 과 m을 호출하겠습니다 . 다음과 같이 가정 할 수 있습니다. n의 모든 정수 는 m의 일부입니다 m의 모든 정수 는 고유합니다 목록이 비어 있지 않습니다 도전 과제 : n 에서 m을 구한 위치의 지수를 구하십시오 . 혼란 스러울 수 있지만 테스트 사례를 …
21 code-golf  number 

8
골롬의 흔들리는 순서
OEIS 는 Golomb의 시퀀스 에 변형 (A111439)이 있습니다. Golomb의 시퀀스에서와 A(n)같이 시퀀스에 얼마나 자주 n나타나는지 설명합니다 . 그러나 두 개의 연속 된 숫자가 동일하지 않을 수도 있습니다. 시퀀스를 구축하는 동안 A(n)항상이 두 속성을 위반하지 않는 가장 작은 양의 정수로 선택됩니다. 연속 된 동일한 숫자가 허용되지 않기 때문에 시리즈는 자라면서 약간 …

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)() ## …

30
숫자를 인쇄하는 데 걸린 시간
개요 어떤 입력도받지 않는 프로그램이나 함수를 작성하고 -1000에서 1000 사이의 모든 정수를 오름차순으로 stdout에 한 줄에 하나씩 출력합니다. -1000 -999 -998 -997 ... 그런 다음이 숫자를 인쇄하는 데 걸리는 시간 또는 프로그램 실행 시작 시간을 밀리 초 단위로 인쇄해야합니다 (필요한 경우 시간이 걸리는 시간 : xxxms는 괜찮습니다). 부동 소수점 또는 …
21 code-golf  number  date 

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 

14
ALONED 번호를 출력
최대 6까지의 자연 시퀀스를 고려하십시오 (1 무시) . 2,3,4,5,6 왼쪽 (이 경우 2)에서 스캔을 시작하고 2 (여기 4)로 나눌 수있는 숫자를 검색 한 다음 목록에서 두 숫자 (여기서는 2 & 4)를 제거하여 목록을 다음과 같이 줄입니다. 3,5,6 우리는 동일한 과정을 계속합니다. 여기에서 가장 왼쪽은 3이므로 3으로 나눌 수있는 숫자를 검색합니다. …
21 code-golf  number 

10
주요 요인 친구
정수가 주어지면 N > 1소수 분해가 소수 분해와 같은 자릿수를 갖는 다른 모든 숫자를 출력하십시오 N. 예를 들어이면 N = 117출력은이어야합니다 [279, 939, 993, 3313, 3331]. 117 = 3 × 3 × 13 따라서 가능한 숫자는 1, 3, 3그리고 3우리는이 279 = 3 × 3 × 31 939 = 3 …

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

30
주어진 너비로 #의 빈 사각형을 그립니다.
Codingame 에서이 도전을 받았으며 내 것보다 더 나은 솔루션이 궁금합니다. 표준 입력을 통한 너비가 주어지면 주어진 너비와 길이로 빈 사각형 '#'을 그립니다. 예: 5 결과 ##### # # # # # # ##### 나는 이것을 사용하여 파이썬을 사용하여 다른 파이썬 코드에 특히 관심이 있습니다. 그러나 원하는 언어로 솔루션을 게시하십시오.
21 code-golf  string  ascii-art  number  code-golf  grid  code-golf  string  ascii-art  code-golf  alphabet  cipher  code-golf  math  number  code-golf  quine  code-golf  palindrome  polyglot  code-golf  number  array-manipulation  counting  logic  code-golf  string  primes  binary  decision-problem  code-golf  ascii-art  kolmogorov-complexity  popularity-contest  code-golf  probability-theory  code-golf  string  code-golf  python  polyglot  programming-puzzle  c++  code-golf  math  code-golf  binary  integer  bitwise  code-golf  rational-numbers  code-golf  string  palindrome  code-golf  ascii-art  code-golf  code-golf  string  fibonacci  code-golf  math  sequence  code-golf  code-golf  string  palindrome  code-golf  string  code-golf  math  primes  source-layout  code-golf  sequence  binary  integer  code-golf  math  arithmetic  game  code-golf  restricted-source  palindrome  code-golf  restricted-source  palindrome  code-golf  combinatorics  binary  code-golf  string  math  code-golf  ascii-art  number  code-golf  cipher  code-golf  base-conversion  counting  code-golf  sequence  random  classification  code-golf  string  subsequence  code-golf  permutations  code-golf  string  code-golf  string  cipher  code-golf  kolmogorov-complexity  arithmetic  integer  code-golf  quine  markov-chain  code-golf  string  code-golf  code-golf  ascii-art  maze 

30
“Fit”숫자 출력
"맞춤 번호" 샘은 압축에 대한 "화려한"아이디어를 가지고 있습니다! 도울 수 있니? 다음은 Sam의 압축 체계에 대한 요약입니다. 먼저 2 ^ 16보다 엄격하게 작은 자연수의 밑이 10 인 표현을 취하여 앞에 0이없는 2 진 문자열로 작성하십시오. 1-> 1 9-> 1001 15-> 1111 13-> 1101 16-> 10000 17-> 10001 65535-> 111111111111111 이제 …

14
최소 잔여 시퀀스 생성
모든 숫자는 무한히 긴 나머지 시퀀스를 사용하여 표현할 수 있습니다. 우리가 숫자 7을하고, 수행하는 경우 예를 들어 7mod2, 다음 7mod3, 다음 7mod4, 등등, 우리가 얻을 1,1,3,2,1,0,7,7,7,7,..... 그러나 모든 하위 수와 구별하기 위해 여전히 사용할 수 있는 가장 짧은 나머지 하위 시퀀스 가 필요합니다 . [1,1,3]이전의 모든 하위 시퀀스가 ​​다음으로 시작하지 …

30
ILD의 합계를 계산
입력: 정수 산출: 입력 자체의 합 + 입력 길이 + 입력의 각 개별 숫자. nr + nr-length + {sum of digits} = output 예 : 입력 : 99 출력 : 99(nr) + 2(nr-length) + (9 + 9)(digits) →119 입력 : 123 출력 : 123 + 3 + (1 + 2 …

9
1에서 7까지의 자릿수
도전 N28 이상의 양의 정수 가 주어지면 N각 숫자 1를 7정확히 한 번만 사용하여 합산되는 숫자 목록을 출력하십시오 . 프로그램이나 기능으로 줄 수 있습니다. 반복하지 않고 각 숫자를 한 번만 사용하는 한 숫자는 저절로 표시되거나 연결될 수 있습니다. 예를 들어, and [12, 34, 56, 7]는 유효 하지만 or 는 유효 …
21 code-golf  math  number 

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