«integer» 태그된 질문

정수 조작과 관련된 문제.

20
숫자를 분해하십시오!
당신의 임무는 아래 형식을 사용하여 숫자를 분해하는 것입니다. 이것은 기본 변환과 유사, 대신을 나열하는 것을 제외시켰다 digits기본에, 당신은 목록 values목록 입력까지 추가하도록. 주어진베이스 인 경우 n, 다음 목록의 각 수의 형식이어야합니다 k*(n**m), 0<=k<n그리고 m목록에서 고유합니다. 명세서 합리적인 입 / 출력 형식 프로그램 / 기능은 2 개의 입력을 받아서 목록을 출력합니다. …
16 code-golf  number  sequence  number-theory  base-conversion  code-golf  bitwise  hashing  code-golf  string  ascii-art  whitespace  code-golf  math  code-golf  code-golf  image-processing  counting  code-golf  math  arithmetic  checksum  code-golf  code-golf  math  arithmetic  number-theory  code-golf  array-manipulation  random  code-golf  string  code-golf  math  ascii-art  base-conversion  code-golf  graphical-output  geometry  3d  code-golf  math  linear-algebra  matrix  code-golf  math  number  sequence  code-golf  array-manipulation  code-golf  math  matrix  linear-algebra  code-golf  number  sequence  counting  code-golf  string  code-golf  string  restricted-source  quine  sorting  code-golf  string  geometry  code-golf  string  code-golf  networking  code-golf  base-conversion  code-golf  math  matrix  code-golf  arithmetic  linear-algebra  matrix  code-golf  number  arithmetic  grid  code-golf  number  source-layout  code-golf  string  bitwise  checksum  code-golf  array-manipulation  code-golf  string  probability-theory  code-golf  tips  code-golf  sequence  code-golf  string  math  sequence  calculus  code-golf  string  palindrome  bioinformatics  code-golf  math  combinatorics  counting  permutations  code-golf  parsing  logic-gates  code-golf  arithmetic  number-theory  combinatorics  code-golf  math  sequence  polynomials  integer  code-golf  string  ascii-art  chess  code-golf  string  code-golf  number  code-golf  string  ascii-art  parsing  code-golf  code-golf  number  natural-language  conversion  code-golf  arithmetic  code-golf  string  code-golf  ascii-art  decision-problem 

30
잃어버린 숫자를 인쇄하십시오
잃어버린 TV 시리즈 의 열렬한 팬으로서 , 나는 에피소드에 반복적으로 나타나는 일련의 숫자에 항상 흥미를 느꼈습니다. 이 숫자는 다음과 같습니다. 4 , 8 , 15 , 16 , 23 , 424,8,15,16,23,42 4, 8, 15, 16, 23, 42 ( A104101 ) 프로그래밍 언어를 사용하여 이러한 숫자를 출력하는 코드를 작성하십시오. 채점 : …

16
UTF-8 바이트 시퀀스의 길이
첫 번째 바이트가 주어진 UTF-8 바이트 시퀀스의 길이를 결정하십시오. 다음 표는 가능한 각 길이에 매핑되는 범위를 보여줍니다. Range Length --------- ------ 0x00-0x7F 1 0xC2-0xDF 2 0xE0-0xEF 3 0xF0-0xF4 4 표의 간격에 대한 참고 사항 : 0x80-0xBF는 연속 바이트이며 0xC0-0xC1은 너무 길고 잘못된 시퀀스를 시작하며 0xF5-0xFF는 유니 코드 최대 값을 초과하는 …

9
스 태거, 스택, 합계
이 스택 오버플로 질문에서 영감을 얻었습니다 . 도전 입력 음이 아닌 정수를 포함하는 제곱 행렬의 배열입니다. 산출 다음과 같이 입력 행렬로 구성된 정사각 행렬입니다. 하자 각 입력 행렬의 크기 및 수 입력 행렬의 수.엔× N엔×엔N \times N피피P 명확성을 위해 다음 예제 입력 행렬 ( 엔= 2엔=2N=2 , 피= 3피=삼P=3 )을 …

21
중복 범위를 채우십시오
하자 특별한 순서와 양의 정수의 목록, 그리고 중복되는 포함 할 수 있습니다. 양의 정수 (순서가 중요하지 않은) 의 목록을 출력하는 프로그램이나 함수를 작성 하여 과 을 병합 하면 동일한 범위의 정수 로 완전히 분할 될 수있는 가장 작은 목록이됩니다 . 여기서 는 에서 가장 큰 요소M L M [ 1 …

19
첫 번째 'n'숫자에서 0으로 만들기
도전 문제는 양의 정수 'n'을 입력으로 사용하고 1에서 n까지의 숫자를 쓸 수있는 모든 가능한 방법을 표시하는 코드를 작성하는 것입니다. 0과 같습니다. 더하기 또는 빼기 만 사용할 수 있습니다. 예를 들어, 입력이 3이면 합계를 0으로 만드는 두 가지 방법이 있습니다. 1+2-3=0 -1-2+3=0 숫자는 1부터 n까지 (이 경우 3) 순서대로 정렬됩니다. 예제에서 …

7
진동 평등
on [l, r]에서 시작하여 시간 단위당 하나의 단위 속도로 두 개의 정수 포인트 사이에서 진동하는 객체가 있습니다. 당신은 가정 할 수 있습니다 . 예를 들어 객체가 진동 하면 다음과 같은 결과가 나타납니다.lt=0l < r[3, 6] t=0 -> 3 t=1 -> 4 t=2 -> 5 t=3 -> 6 t=4 -> 5 …
15 code-golf  array-manipulation  decision-problem  code-golf  math  number-theory  palindrome  integer-partitions  code-golf  math  decision-problem  geometry  code-golf  string  random  code-golf  ascii-art  code-golf  kolmogorov-complexity  primes  code-golf  kolmogorov-complexity  code-golf  graphical-output  code-golf  number-theory  primes  integer  factoring  code-golf  sequence  array-manipulation  integer  code-golf  array-manipulation  matrix  code-golf  sequence  binary  code-golf  game  cellular-automata  game-of-life  binary-matrix  code-golf  string  ascii-art  code-golf  random  generation  logic  code-golf  string  code-golf  code-golf  sequence  array-manipulation  random  apl  code-golf  code-golf  sequence  primes  code-golf  math  sequence  integer  code-golf  number  arithmetic  array-manipulation  decision-problem  code-golf  ascii-art  number  code-golf  restricted-source  quine  code-golf  chess  board-game  code-golf  math  sequence  code-golf  number  sequence  kolmogorov-complexity  code-golf  number  sequence  arithmetic  code-golf  math  number  alphabet  code-golf  ascii-art  classification  statistics  apl  code-golf  array-manipulation  matrix  code-golf  string  kolmogorov-complexity  code-golf  sequence  binary  base-conversion  binary-matrix  code-golf  string  classification  code-golf  tips  python  code-golf  combinatorics  binary  subsequence  restricted-time  code-golf  number  number-theory  code-golf  math  number  complex-numbers  code-golf  string  code-golf  string  code-golf  string  random  game  king-of-the-hill  python  code-golf  number  sequence  code-golf  number  sequence  code-golf  code-golf  math  number  array-manipulation  code-golf  array-manipulation  decision-problem  code-golf  string  code-golf  sequence  integer 

17
3D 공간에서 선형 거리를 기준으로 점 정렬
명세서 x,y,z크기가 S정수 단위 인 입방체 3D 공간 이 있습니다 ( 예 :) 0 <= x,y,z <= S. 당신은에서 얻을 기본 입력 방법 포인트의 배열 P로 표현 x,y,z당신이 원하는대로 예를 들어, 합리적인 형식으로, 정수 좌표를 : [x1,y1,z1],[x2,y2,z2],[x3,y3,z3] ... [xn,yn,zn]. 모든 P값은 상기와 같은 상기 입방 3D 공간에있을 0 <= x,y,z …


10
100까지 가장 적은 작업
개요 자릿수 목록이 주어지면 100을 만드는 가장 적은 연산을 찾으십시오. 입력 숫자 순서 일 수도 있고 아닐 수도있는 숫자 문자열. 숫자의 순서는 변경할 수 없지만 더하기 (+) 또는 빼기 (-) 연산자를 사이에 더하여 총 합이 100이되도록 할 수 있습니다. 산출 추가 된 연산자 수와 전체 숫자 및 연산자 순서가 뒤 …

30
앵무새 프로그램 만들기
입력이 주어지면 그 입력 다음에 줄 바꿈이 끝없이 출력됩니다. 입력은 인쇄 가능한 ASCII 문자 ( 0x20-0x7E)와 줄 바꿈 ( 0x0A) 만으로 구성된 문자열 입니다. 입력이 길이 0이면 끝없이 줄 바꿈을 출력합니다. 이것은 코드 골프 이므로 각 언어에서 가장 적은 바이트 가 이깁니다!
15 code-golf  string  sequence  combinatorics  fastest-code  number  code-challenge  restricted-source  rosetta-stone  code-golf  arithmetic  decision-problem  integer  factorial  code-golf  arithmetic  decision-problem  integer  bitwise  code-golf  kolmogorov-complexity  code-golf  tips  vim  code-golf  quine  code-generation  code-golf  string  restricted-source  code-golf  string  random  unicode  code-golf  audio  code-golf  ascii-art  code-golf  decision-problem  code-golf  puzzle-solver  code-golf  restricted-source  code-golf  kolmogorov-complexity  permutations  hexagonal-grid  code-golf  string  math  combinatorics  fastest-code  code-golf  restricted-source  code-golf  string  code-golf  arithmetic  code-golf  math  number  code-golf  string  decision-problem  balanced-string  code-golf  binary  code-golf  string  number  code-challenge  restricted-source  code-golf  ascii-art  printable-ascii  interactive  code-golf  string  ascii-art  code-challenge  restricted-source  source-layout  code-golf  arithmetic  tips  functional-programming  golfing-language  code-golf  binary  encryption 

8
숫자를 삼각형으로 분해
정수 n이 주어지면 다음 과 같이 최대 삼각 수의 합으로 분해합니다 (여기서 T m 은 m 번째 삼각 수 또는 1에서 m 사이의 정수의 합을 나타냄). n> 0 인 동안 가장 큰 가능한 삼각형 번호 찾기 T의 m을 하도록 T의 m ≤ N . n 의 삼각 분해 표현에 m …

9
모든 제노 드롬
소개 베이스에 xenodrome N은 기지국에서의 모든 숫자의 정수이고 , n은 다르다. 다음 은 xenodrome의 일부 OEIS 시퀀스입니다. 예를 들어, 기지국 (16)에서 FACE, 42및 FEDCBA9876543210(일부 xenodromes있다 64206, 66그리고 18364758544493064720베이스 (10)에서), 그러나 11및 DEFACED하지가. 도전 입력 기수 n이 주어지면 기수 10에서 해당 염기 에 대한 모든 이종 체가 출력됩니다 . 출력은 최소에서 …

20
y의 거듭 제곱이 x로 나눌 수있는 가장 작은 양수
직무 정수 x와 y둘 다가 주어지면 -제곱을 나눌 2수있는 가장 작은 양수를 찾으십시오 .yx 예 주어 x=96와 y=2출력이어야 24때문에 24작은 양수 n만족 n^2 is divisible by 96. 테스트 케이스 x y output 26 2 26 96 2 24 32 3 4 64 9 2 27 3 3 채점 이것은 code-golf …

30
별도의 알파벳과 숫자
텍스트 단락에는 숫자와 알파벳 문자가 혼합되어 있습니다. 당신의 임무는 각 줄의 같은 순서로 왼쪽에 숫자와 오른쪽에 알파벳 문자를 분리하는 것입니다. 규칙 : 숫자는 일반 정수입니다. 소수점이없고 음수 / 양수 부호가 없습니다. 숫자는 연속적이거나 인접하지 않을 수 있지만, 어떤 경우이든 관계없이 동일한 순서로 왼쪽으로 밀어야합니다. 단어 사이에 숫자가 나타날 수 있습니다. …

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