«integer» 태그된 질문

정수 조작과 관련된 문제.

18
관련없는 번호 찾기
음수가 아닌 정수 2 개를 입력으로 받으면 2 개의 입력에서 수학 연산자를 통해 생성 할 수없는 음이 아닌 정수를 출력합니다. 예를 들어, 입력을 부여 2하고 3, 6, 0, 5, 1, 9, 8, 23, 2모든 출력은 무효이다. 고려해야 할 작업은 다음과 같습니다. Addition (a + b) Subtraction (a - b) and …

7
숫자 패드 단어 검색
1에서 999까지의 정수가 주어지면 표준 숫자 키패드 에서 1-9의 3x3 제곱 자릿수의 어느 곳에서든 가로, 세로 또는 대각선으로 앞뒤로 나타나는 경우 정확한 값을 출력하십시오 . 789 456 123 숫자가 나타나지 않으면 잘못된 값을 출력하십시오. 진실을 출력하는 데 필요한 정확한 65 개의 숫자는 다음과 같습니다. 1 2 3 4 5 6 …

11
Emirps를 찾아라!
emirp는 A는 비 상동 , 반대 경우도 소수 소수. 기본 10 emirps 목록은 OEIS 에서 찾을 수 있습니다 . 처음 6 개는 다음과 같습니다. 13, 17, 31, 37, 71, 73 그러나 반전 규칙으로 인해 각베이스마다 emirps가 다릅니다. 예를 들어 처음 6 개의 이진 emirps는 다음과 같습니다. Bin | 1011, 1101, …

27
* 통역사 작성
작업은 간단합니다. 언어에 대한 통역사를 작성하십시오 * . 다음은 위키에 대한 더 큰 링크입니다. 유효한 * 프로그램은 세 가지뿐입니다. * "Hello World"인쇄 * 0과 2,147,483,647 사이의 난수를 인쇄합니다 *+* 영원히 실행됩니다. 세 번째 경우는 이 질문 의 사양에 따라 무한 루프 여야합니다 입력: 입력은 표준 I / O 규칙에 따라 …
20 code-golf  interpreter  code-golf  array-manipulation  sorting  code-golf  halting-problem  code-golf  javascript  code-golf  algorithm  code-golf  arithmetic  code-golf  math  counting  code-golf  math  code-golf  decision-problem  radiation-hardening  code-golf  conversion  bitwise  code-golf  number  decision-problem  code-golf  string  decision-problem  code-golf  random  game  code-golf  ascii-art  graphical-output  code-golf  decision-problem  binary-tree  tree-traversal  code-challenge  array-manipulation  code-challenge  graphical-output  path-finding  test-battery  algorithm  code-golf  integer  factorial  code-golf  binary-tree  code-golf  grid  graph-theory  code-golf  regular-expression  quine  code-golf  encoding  code-golf  king-of-the-hill  javascript 

25
가장 높은 주사위
도전: 시퀀스의 처음 100 개 항목이 있습니다. 6,5,4,3,2,1,66,65,64,63,62,61,56,55,54,53,52,51,46,45,44,43,42,41,36,35,34,33,32,31,26,25,24,23,22,21,16,15,14,13,12,11,666,665,664,663,662,661,656,655,654,653,652,651,646,645,644,643,642,641,636,635,634,633,632,631,626,625,624,623,622,621,616,615,614,613,612,611,566,565,564,563,562,561,556,555,554,553,552,551,546,545,544,543,542,541,536,535,534,533,... 이 순서는 어떻게 형성됩니까? 우리는 먼저 범위 내에서 숫자를 갖습니다 [6, 1](높은 것에서 가장 낮은 것까지 단일 다이의 가능한 모든 값). 그런 다음 숫자를 갖습니다 [66..61, 56..51, 46..41, 36..31, 26..21, 16..11](두 개의 주사위가 가능한 가장 높은 값부터 가장 낮은 값까지). 기타 이것은 …

8
나선형 이웃
자연수를 취해 시계 반대 방향으로 나선형으로 올리면 다음과 같은 무한한 나선형으로 끝납니다. ....--57--56 | 36--35--34--33--32--31--30 55 | | | 37 16--15--14--13--12 29 54 | | | | | 38 17 4---3---2 11 28 53 | | | | | | | 39 18 5 0---1 10 27 52 | | …

19
삼각법 프로그램을 유효하게하십시오
Triangularity 는 Mr. Xcoder 가 개발 한 새로운 esolang 으로 코드 구조는 매우 특정한 패턴을 따라야합니다. 세 n번째 코드 줄 2n-1에는 프로그램의 문자 가 정확히 있어야 합니다. 이로 인해 삼각형 / 피라미드 모양이 발생합니다. 첫 번째 줄에는 문자가 하나만 있고 나머지는 2 씩 증가합니다. 각 줄은 .왼쪽과 오른쪽에 s 로 …
19 code-golf  string  code-golf  combinatorics  code-golf  math  number  code-golf  matrix  code-golf  string  decision-problem  code-golf  internet  code-golf  number  number-theory  integer  expression-building  code-challenge  primes  cops-and-robbers  obfuscation  code-challenge  primes  cops-and-robbers  obfuscation  code-golf  string  balanced-string  code-golf  quine  code-generation  code-golf  matrix  code-golf  tips  c#  code-golf  ascii-art  code-golf  ascii-art  source-layout  code-golf  quine  source-layout  popularity-contest  language-design  code-golf  array-manipulation  subsequence  code-golf  matrix  math  code-challenge  game  graph-theory  atomic-code-golf  code-golf  number  integer  polynomials  equation  code-golf  array-manipulation  sorting 

17
다항식의 근본을 구합니다
도전 문제는 n도 다항식의 계수를 입력으로 취하고 방정식이 참인 x 의 정수 값을 반환하는 프로그램을 작성하는 것입니다. 계수는 전력을 줄이거 나 늘리는 순서대로 입력으로 제공됩니다. 모든 계수를 정수로 가정 할 수 있습니다 . 입력과 출력 입력 값은 전력의 차수를 줄이거 나 늘리는 식의 계수입니다. 방정식의 정도, 즉 x의 최대 거듭 …

23
배열의 단일 스왑
에서 영감 에서 촬영 스택 오버플로에서 질문 . 도전 정수가 주어지면 n>1배열에서 정확히 두 항목을 교환하여 얻을 수있는 모든 배열을 출력합니다 [1, 2, ..., n]. 어레이는 임의의 순서로 제조 될 수있다. (1 [0, 1, ..., n-1]기반) 대신 (0 기반)을 일관되게 사용할 수 있습니다 [1, 2, ..., n]. 추가 규칙 입력과 …

6
수신 거부 시퀀스
시퀀스를 정의하자. 우리는 말할 것이다 가장 작은 수입니다 에는 다음과 같은 속성이 있습니다 :a ( n )ㅏ(엔)a(n)엑스엑스x 엑스엑스x 와 은 공동 프라임입니다.엔엔n 엑스엑스x 는 시퀀스의 초기에 나타나지 않습니다 | n-x | >1|엔−엑스|>1|n - x| > 1 대부분의 시퀀스와 달리 시퀀스의 도메인과 범위는 1 보다 큰 정수 입니다. 처음 몇 항을 …

8
역 삽입 정렬
객관적인 삽입 정렬 이 정렬 을 수행 하는 동작에서 원래 스크램블 목록을 생성하십시오 . 원본 목록 에는 입력의 크기 인 모든 숫자가 포함 0됩니다 N-1(포함) N. 입력 목록을 정렬하는 데 필요한 이동이 포함 된 목록입니다. 각 값은 원래 (스크램블 된) 숫자로 대체 된 슬롯의 양이 올바른 위치에 있음을 나타냅니다.이 프로세스는 …
19 code-golf  array-manipulation  code-golf  code-golf  animation  code-golf  restricted-source  code-golf  java  code-golf  decision-problem  graph-theory  code-golf  conversion  electrical-engineering  code-golf  ascii-art  code-golf  string  substitution  code-golf  math  code-golf  string  set-theory  code-golf  code-golf  compile-time  code-golf  kolmogorov-complexity  binary  code-golf  sequence  cops-and-robbers  code-golf  subsequence  card-games  code-golf  sequence  primes  code-golf  code-golf  number  graphical-output  music  code-golf  ascii-art  code-golf  string  lambda-calculus  code-golf  string  code-generation  code-golf  unicode  code-golf  math  combinatorics  code-golf  balanced-string  code-golf  sequence  cops-and-robbers  code-golf  sequence  cops-and-robbers  code-challenge  fastest-code  chess  code-golf  math  graphical-output  code-golf  string  hello-world  animation  code-golf  number  arithmetic  code-golf  integer  code-golf  code-golf  combinatorics  code-golf  kolmogorov-complexity  graphical-output  code-golf  string  code-golf  code-golf  game  code-golf  math  combinatorics  code-golf  ascii-art  popularity-contest  random  code-golf  arithmetic  number-theory  integer  code-golf  tips  underload  code-golf  math  sequence  primes  code-golf  math  path-finding  code-golf  ascii-art  primes  code-golf  kolmogorov-complexity  alphabet 

8
피곤하고 가난하고 네가 숨 쉬고 싶어하는 사람들
청동 플라크 의 받침대에있는 자유의 여신상 시 "표시 새로운 거상 읽고 일부가 엠마 나사로에 의해을" 피곤하고 가난한 사람들, 숨 쉬고 싶어하는 당신의 뭉친 사람들, 끔찍한 해안을 거부하십시오. 집없는 노숙자에게 보내십시오, 나는 황금 문 옆에 램프를 들어 올립니다! 이 과제에 대한시의이 섹션을 단순화하기 위해 모든 대문자를 만들고 /쉼표와 기타 문장 부호를 …

12
아나그램 요소
QI 의 최근 에피소드에서 142857의 처음 5 배는 원래 숫자의 아나그램으로 설명되었습니다. 물론, 그 숫자에 대한 지식을 넘어서는 사람은 그 숫자가 단지 아나그램이 아니라 주기적이라는 것을 알게 될 것입니다. 그러나 그것은 나를 생각하게했다. 6 자 이하 자릿수를 모두 출력하는 프로그램이나 함수를 작성하십시오. 목록은 다음 숫자로 시작해야합니다. 3105 (divisible by 1035) …

7
정수를 알파벳순으로
정수를 알파벳순으로 주어진 숫자 집합에 대해 철자가 표시 될 때 알파벳 순서로 나열하십시오 (예 : 1 : 1, 2 : 2, 90 : 90, 19 : 19). 코드가 범위에서 작동해야합니다 [-999999, 999999]. 출력은 숫자 사이에 구분 기호가 있어야합니다. 아래 예에 표시된 것처럼 공백과 쉼표와 마찬가지로 공백이 작동합니다. 입력은 정수 배열, …

5
더 단단한 물체 또는 부드러운 물체가 있습니까
What-If 책의 개봉에서 영감을 얻었습니다. 입력은 #내부에 객체가있는 문자열, 문자열 목록 등의 공백 사각형입니다 . ######## # # ######## ### #### ### #### ### 개체는 항상 교차하지 않고 비 터치 사각형입니다. 부드러운 객체는 #중간에의으로 채워지지 않고 경계 일 뿐인 객체로 정의되며 , 단단한 객체는 채워진 객체입니다. 폭이나 높이를 가진 물체 …
19 code-golf  ascii-art  counting  code-golf  number  grid  decision-problem  chess  code-golf  grid  graph-theory  chess  code-golf  math  geometry  code-golf  arithmetic  roman-numerals  fastest-code  code-golf  math  geometry  code-golf  string  cryptography  code-golf  number  sequence  decision-problem  code-golf  string  parsing  c  code-golf  sorting  integer  code-golf  number  sequence  rational-numbers  graphical-output  atomic-code-golf  assembly  box-256  code-golf  geometry  tips  python  code-golf  number  sequence  arithmetic  number-theory  code-golf  ascii-art  kolmogorov-complexity  geometry  code-golf  graphical-output  code-golf  math  code-golf  grid  cellular-automata  game-of-life  code-golf  string  subsequence  code-golf  arithmetic  rational-numbers  code-golf  tips  dc  code-golf  ascii-art  kolmogorov-complexity  date  code-golf  string  primes  code-golf  string  natural-language  conversion  code-golf  sequence  code-golf  number-theory  primes  base-conversion  code-golf  math  primes  base-conversion  code-golf  ascii-art  fractal  code-golf  matrix  code-golf  math  tips  geometry  python  string  code-challenge  keyboard  code-golf  graphical-output  code-golf  string  code-golf  number  sequence  cops-and-robbers  number  sequence  cops-and-robbers 

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