«integer» 태그된 질문

정수 조작과 관련된 문제.

8
파이 삼각형 그리기
설명 : 기본적으로이를 만들어야 합니다 오일러의 참을성있는 기능은 이름이 phi입니다. phi (8)를 계산해 봅시다 먼저 0을 포함하지 않고 8 이하의 모든 숫자를 나열하십시오. 8 7 6 5 4 3 2 1 이제 어떤 숫자가 8과 (1을 세지 않는) 요소를 공유하지 않는지를 찾아 #제자리에 배치하십시오. 8 # 6 # 4 # …

8
정수에서 가변 비트 수로의 형용사 매핑
가변 비트 수는 0 이상의 비트 배열입니다. 따라서 [0, 1]가변 개수의 비트들이지만 그렇다 []. 음이 아닌 정수가 주어지면 모든 정수가 배열과 일대일 (이승) 매핑을 갖도록 가변 비트 수를 리턴하는 함수 또는 프로그램을 작성하십시오. 그러한 매핑에는 무한한 양이 있으며 원하는대로 자유롭게 구성 할 수 있지만 일대일 이어야합니다 . 임의로 크기가 지정된 …

9
공간과 시간을 통해
소개: 세 개의 공간 차원을 위해 : 일반적으로 우리는 보통 4 차원의 이야기 x, y그리고 z; 그리고 한 번의 차원. 그러나이 도전을 위해, 우리는뿐만 아니라 세에 시간 차원을 나눌 수 있습니다 : past, present,와 future. 입력: 두 개의 입력 목록. 하나는 정수 x,y,z좌표를 포함 하고 다른 하나는 정수 연도를 포함합니다. …

7
누구의 이웃이 적대적인가?
소개 이러한 과제의 목적을 위해, 우리는 정의 할 이웃 하는 소자의 이자형EE 정사각형 행렬에 (되도록 E = I , J )의 엔트리 모두 같은 수평 또는 수직 대각선 바로 인접 E (즉, 그들은 감싸지 않고 "서라운드" E ).ㅏAA이자형= AI , JE=Ai,jE=A_{i,j}ㅏAA이자형EE 이자형EE 어린이의 경우 A i 이웃에 대한 공식적인 정의 …

6
만족스러운 숫자입니까?
이 대화에서 영감을 얻은 만족 수가 그 소수 표현 형태이며 수이고 abx다음 속성은 : x가장 긴 후행 반복 접미사이거나 끝 부분에 반복이없는 경우 마지막 숫자입니다 ( 123333-> 3333, 545656-> 5656, 123-> 3) bx( 123333-> 2, 55545656-> 4) 이전의 한 자리수입니다. a나머지 접두사입니다 ( 123333-> 1, 55545656-> 555). a == c**b( …

3
정수와 발음 가능한 단어 사이의 매핑
목적 이 아이디어는 32 비트 정수를 최대 9 자의 발음 할 수없는 단어와 매핑하는 데 필요한 코드를 제공하는 것입니다. 예를 들어 일련 번호를 더 쉽게 기억하거나 양식을 입력하는 데 유용 할 수 있습니다. 정수를 대응하는 단어로 번역하고 단어를 대응하는 정수로 다시 변환하는 방법이 모두 필요하다. 규칙 정수와 단어 사이에 일대일 …

6
N 개의 염기에서 회 문인 숫자
음수가 아닌 정수가 주어지면 정확히 다른 기저의 회 문인 n >= 0정수 시퀀스를 영원히 출력 합니다 .x_i >= 3nb2 <= b <= x_i-2 이것은 기본적으로 OEIS A126071 의 역수입니다 n. 이 시퀀스에서 어떤 인덱스에 값이 있는지 출력합니다 . 베이스를 무시하도록 변경했기 때문에 약간 다릅니다.베이스 b = x_i-1, x_i, x_i+1에 대한 …
10 code-golf  sequence  base-conversion  palindrome  code-golf  array-manipulation  matrix  code-golf  string  ascii-art  code-golf  ascii-art  physics  code-golf  number  sequence  fibonacci  code-golf  ascii-art  packing  code-golf  string  hexadecimal  code-challenge  restricted-source  decision-problem  binary  code-golf  code-golf  code-golf  stack-exchange-api  code-golf  string  parsing  generation  data-structures  code-golf  kolmogorov-complexity  graphical-output  code-golf  array-manipulation  integer  generation  data-structures  code-golf  number  random  probability-theory  king-of-the-hill  java  minesweeper  code-golf  string  kolmogorov-complexity  animation  code-golf  string  code-golf  code-golf  quine  code-golf  internet  code-golf  arithmetic  base-conversion 

25
상대 속도 계산
에서는 상대성 , 반대 방향으로 이동되는 다른 개체에 이동체의 속도는 수식에 의해 주어진다 : s=v+u1+vu/c2.s=v+u1+vu/c2.\begin{align}s = \frac{v+u}{1+vu/c^2}.\end{align} s = ( v + u ) / ( 1 + v * u / c ^ 2) 이 공식에서 vvv 와 uuu 는 물체의 속도의 크기이고 ccc 는 빛의 속도입니다 (약 3.0×108m/s3.0×108m/s3.0 …

24
곱셈 언 델타
값 의 "곱하기 델타" 를 정의합시다 는 다음과 같습니다.[a0,⋯aN,][a0,⋯aN,][\; a_0, \cdots a_N, \;] [a1/a0,⋯,ai+1/ai,⋯,aN/aN−1][a1/a0,⋯,ai+1/ai,⋯,aN/aN−1] [\; a_1 / a_0, \cdots, a_{i+1} / a_i, \cdots, a_N / a_{N-1} \;] 역 연산, 즉 "곱하기 곱하기" 는 위의 연산이 주어진 값이되도록 값을 반환합니다. 예 주어진 값 " multiplicative undelta "연산에 대한 일반적인 해결책 은 …

2
파우더 토이의 골프 팁
이것으로 재미있게, The Powder Toy 는 골프, 특히 filt Logic에서 흥미로운 도전입니다. TPT를 도전으로 만드는 것은 문제에 접근하는 많은 많은 방법입니다. Should I use Cellular Automaton rules, SWCH logic, Filt logic, subframe filt logic, and/or wall logic? 따라서 TPT 골프 팁을 얻을 수있는 위치가 도움이 될 것이므로이 질문 스레드를 만들었습니다. …
9 code-golf  tips  the-powder-toy  code-golf  number  array-manipulation  integer  code-golf  string  decision-problem  boggle  code-golf  array-manipulation  average  code-golf  math  code-golf  decision-problem  restricted-source  code-golf  code-golf  math  primes  code-golf  random  code-golf  tips  perl  code-golf  string  parsing  code-golf  math  number  decision-problem  code-golf  math  number  code-golf  string  alphabet  code-golf  math  geometry  code-golf  interpreter  brainfuck  code-golf  code-golf  decision-problem  boggle  code-golf  math  number  sequence  code-golf  math  code-golf  ascii-art  code-challenge  restricted-source  quine  code-golf  math  decision-problem  number-theory  primes  code-golf  ascii-art  code-golf  integer  graph-theory  chess  code-golf  math  interpreter  code-golf  code-golf  code-golf  ascii-art  code-golf  arithmetic  number-theory  code-golf  string  kolmogorov-complexity  code-golf  string  decision-problem  code-golf  primes  factoring  encode  code-golf  decision-problem  code-golf  geometry  grid  code-golf  quine  code-golf  matrix  code-golf  matrix  code-golf  code-golf  number  array-manipulation  code-golf  array-manipulation  sorting  code-golf  matrix  code-golf  brain-flak 

7
열차가 라벨이있는 다리를 건너
양의 정수의 숫자로 연결된 타일로 형성된 길이 B 의 브리지를 고려하십시오 . 예를 들어, B 가 41 인 경우 다음과 같습니다. ----------------------------------------- 12345678910111213141516171819202122232425 이제 다리를 건너는 길이 T 의 기차를 상상해보십시오 . 열차의 가장 왼쪽 지점은 X 위치 (1 인덱스) 에서 시작합니다 . 문제를 더 잘 이해하려면 B = 41, …

17
소인수 분해의 소인
나는 PPCG에서 또 다른 주요 도전이 오는 것을 보았고 , 나는 소수를 좋아합니다. 그런 다음 소개 텍스트를 잘못 읽고 창의적 두뇌가 무엇을 생각하는지 궁금했습니다. 제기 된 질문은 사소한 것으로 판명되었지만, 내가 읽은 질문에 대해서도 같은지 궁금합니다. 6은 2 ^ 1 * 3 ^ 1로 나타낼 수 있고 50은 2 ^ …

7
유사 프라임 골프!
소개 / 배경 A의 최근 논의 에서 크립토 채팅 I가와 / 도움을 논의하기 위해 도전했다 페르마 소수도 테스트 와 카 마이 클 번호. 이 테스트는 a^(p-1) mod p==1항상 소수 p에 대해서는 적용되지만 항상 복합 소수 에는 적용되지 않는 전제를 기반으로합니다 . 이제 카 마이클 숫자는 본질적으로 Fermat의 테스트 최악의 적입니다 …
9 code-golf  math  sequence  number-theory  primes  code-golf  string  code-golf  math  combinatorics  permutations  restricted-complexity  code-golf  array-manipulation  code-golf  number  sequence  code-golf  number  sequence  code-golf  binary-matrix  code-golf  math  tips  javascript  algorithm  code-golf  string  code-golf  number  sequence  code-golf  math  arithmetic  parsing  code-golf  number  sequence  primes  code-golf  string  ascii-art  geometry  integer  code-golf  geometry  code-golf  number  array-manipulation  code-golf  math  geometry  code-golf  number  sequence  arithmetic  integer  code-golf  string  kolmogorov-complexity  code-golf  number  code-golf  number  chess  code-golf  sequence  decision-problem  subsequence  code-golf  math  number  primes  code-golf  primes  permutations  code-golf  integer  probability-theory  statistics  code-golf  string  code-golf  sequence  decision-problem  parsing  board-game  code-golf  binary  graph-theory  code-golf  board-game  classification  tic-tac-toe  code-golf  ascii-art  polyglot  code-golf  date  code-golf  geometry 

13
비교 체인 확장
대부분의 언어와는 달리, 파이썬은 평가 a<b<c부울 비교에 반대가 실제로 세 개의 숫자를 비교, 수학에서 할 것처럼 a<b로를 c. 이것을 C (및 다른 많은 것)로 쓰는 올바른 방법은입니다 a<b && b<c. 이 도전에서, 당신의 임무는 파이썬 / 직관적 인 표현에서 다른 언어로 쓰여지는 방법으로 임의 길이의 비교 체인을 확장하는 것입니다. 명세서 …
9 code-golf  parsing  conversion  syntax  code-golf  sequence  primes  code-challenge  geometry  optimization  code-golf  graph-theory  code-golf  number-theory  primes  integer  code-golf  source-layout  cops-and-robbers  code-golf  source-layout  cops-and-robbers  code-golf  sequence  primes  integer  code-golf  math  number-theory  primes  rational-numbers  code-golf  math  sequence  number-theory  primes  code-golf  string  code-golf  math  combinatorics  permutations  restricted-complexity  code-golf  array-manipulation  code-golf  number  sequence  code-golf  number  sequence  code-golf  binary-matrix  code-golf  math  tips  javascript  algorithm  code-golf  string  code-golf  number  sequence  code-golf  math  arithmetic  parsing  code-golf  number  sequence  primes  code-golf  string  ascii-art  geometry  integer  code-golf  geometry  code-golf  number  array-manipulation  code-golf  math  geometry  code-golf  number  sequence  arithmetic  integer  code-golf  string  kolmogorov-complexity  code-golf  number  code-golf  number  chess  code-golf  sequence  decision-problem  subsequence  code-golf  math  number  primes  code-golf  primes  permutations  code-golf  integer  probability-theory  statistics  code-golf  string  code-golf  sequence  decision-problem  parsing  board-game  code-golf  binary  graph-theory  code-golf  board-game  classification  tic-tac-toe  code-golf  ascii-art  polyglot  code-golf  date  code-golf  geometry 

30
int 입력 n이 주어지면 n * reversed (n)을 출력하십시오.
정수가 주어지면 n출력하십시오.n * reversed(n) reversed(n)reverse의 자릿수 일 때 얻는 숫자입니다 n. reverse(512) = 215 reverse(1) = 1 reverse(101) = 101 >>>>>>>> func(5) = 5*5 = 25 func(12) = 12*21 = 252 func(11) = 11*11 = 121 func(659) = 659*956 = 630004 최단 코드 승리! 리더 보드 코드 스 니펫 …
9 code-golf  math  arithmetic  code-golf  math  integer  code-golf  arithmetic  integer  code-golf  sequence  base-conversion  palindrome  code-golf  math  primes  integer  code-golf  parsing  conversion  syntax  code-golf  sequence  primes  code-challenge  geometry  optimization  code-golf  graph-theory  code-golf  number-theory  primes  integer  code-golf  source-layout  cops-and-robbers  code-golf  source-layout  cops-and-robbers  code-golf  sequence  primes  integer  code-golf  math  number-theory  primes  rational-numbers  code-golf  math  sequence  number-theory  primes  code-golf  string  code-golf  math  combinatorics  permutations  restricted-complexity  code-golf  array-manipulation  code-golf  number  sequence  code-golf  number  sequence  code-golf  binary-matrix  code-golf  math  tips  javascript  algorithm  code-golf  string  code-golf  number  sequence  code-golf  math  arithmetic  parsing  code-golf  number  sequence  primes  code-golf  string  ascii-art  geometry  integer  code-golf  geometry  code-golf  number  array-manipulation  code-golf  math  geometry  code-golf  number  sequence  arithmetic  integer  code-golf  string  kolmogorov-complexity  code-golf  number  code-golf  number  chess  code-golf  sequence  decision-problem  subsequence  code-golf  math  number  primes  code-golf  primes  permutations  code-golf  integer  probability-theory  statistics  code-golf  string  code-golf  sequence  decision-problem  parsing  board-game  code-golf  binary  graph-theory  code-golf  board-game  classification  tic-tac-toe  code-golf  ascii-art  polyglot  code-golf  date  code-golf  geometry 

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