«number» 태그된 질문

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

8
고유 한 합계 만들기
정수를 입력으로 수신하고 출력하거나 합계가 첫 번째 정수인 두 정수를 리턴하는 프로그램 또는 함수를 작성해야합니다. 하나의 추가 요구 사항 이 있습니다 . 두 개의 다른 입력에 대한 출력의 일부가 될 수 없습니다 . 세부 최소한 범위에 대한 입력을 처리 할 수 ​​있어야합니다 -32768 .. 32767(포함). 데이터 유형이 임의의 정수를 처리 …
10 code-golf  number 

2
지하 감옥을 파고 자리
편집 : 질문 끝에 보너스 퍼즐 의 첫 번째 해결사 에게 100 명성의 보상 을 수여합니다 ! 이 현상금에 마감일이없는 답변이 표시되는 경우에만 현상금을 질문에 추가합니다. 감소하지 않는 한 자리 양의 정수 목록이 주어지면, 숫자가 얼마나 깊은 지하 감옥을 파낼 것인지 결정해야합니다. ███ ███ A dungeon with 5 blocks removed …

12
배당 역설
주어진: 자연수 S . 1에 해당하는 N 개의 합리적 가중치 W 의 목록 . N이 아닌 음수가 아닌 정수 의 목록 L 을 반환 합니다. (1) sum(L) = S (2) sum((S⋅W_i - L_i)^2) is minimal 즉, S⋅W_i가능한 정수에 가까운 s를 근사 합니다. 예 : 1 [0.4 0.3 0.3] = [1 …

5
t9와 같은 기능 구현
오늘날의 과제는 t9 와 유사한 기능 을 구현하는 것입니다. 2 개의 매개 변수 만있는 함수를 구현합니다. 문자열로 된 전화 번호 1 개와 단어 목록이 포함 된 텍스트 파일의 내용을받습니다 (특정 줄 바꿈 스타일을 가정하지 않음). https://raw.githubusercontent.com/eneko/data-repository/master/data/words.txt 링크를 사용하여 기능을 테스트하거나 다음을 사용하십시오 ( 자세한 내용은 [닫힌] 단어 목록이있는 텍스트 파일 …

18
숫자 축소
입력은 (적어도 3, 최대 20) 다른 정수의 배열입니다. 각 정수는 -1000보다 크고 1000보다 작습니다. 당신의 작업은에서 "선형 매핑"그들에 의해 숫자를 축소하는 것입니다 0.0에 1.0. 이는 배열에서 가장 작은 숫자가 0.0에, 가장 큰 1.0에 매핑됨을 의미합니다. 배열을 매개 변수 (함수 내부) 또는 stdin / program 인수 (선택 가능)로 가져옵니다. 결과를 형식으로 …

16
교체없이 무작위 샘플링
범위에서 그려진 고유 한 난수 세트를 출력하는 함수를 만듭니다. 세트의 요소 순서는 중요하지 않지만 (정렬 될 수도 있음), 함수가 호출 될 때마다 세트의 내용이 다를 수 있어야합니다. 이 함수는 원하는 순서대로 3 개의 매개 변수를받습니다. 출력 세트의 수 하한 (포함) 상한 (포함) 모든 숫자가 0 (포함)에서 2 31 (제외) 범위의 …

2
프라임 그리드 게임
나는 이것을 해결하는 것을 즐겼다. 그래서 나는이 골프 도전을 제안한다. 이 골프 의 목적은 주어진 지침을 사용하여 구성 할 수있는 가장 큰 소수를 찾는 것입니다. 한 자릿수의 3x3 격자를 입력으로 받아 들여야합니다. (어떻게하고 싶은지는 당신에게 달려 있지만 프로그램에서 지정하십시오.) 그리드를 따라 직각 (왼쪽, 오른쪽, 위 또는 아래)으로 이동할 수 있으며 …

9
임의 자료 변환 [폐쇄]
닫은. 이 질문은 주제에 맞지 않습니다 . 현재 답변을받지 않습니다. 이 질문을 개선하고 싶습니까? Code Golf Stack Exchange에 대한 주제가 되도록 질문을 업데이트하십시오 . 휴일 육년 전 . 하나의 숫자 기본 시스템에서 블록 배열을 취하는 루틴을 작성하고 다른 숫자 기본 시스템에서 블록 배열로 변환하십시오. 시작 및 종료 시스템은 모두 임의적이며 …

17
영숫자 선과 곡선 계산
입력 문자열이 주어지면, 줄과 곡선의 총 수를 출력하는 프로그램을 작성하십시오. 도전 에서 입력 STDIN하거나 다른 입력 방법을 사용하십시오. 출력 STDOUT또는 다른 출력에있어서, 직선과 곡선의 총 수는, 문자열에 포함되는 순서로 코드 조각의 표에 기초하여. 영숫자가 아닌 문자는 무시해야합니다. 표준 허점 은 금지되어 있습니다. 이것은 코드 골프가장 짧은 코드가 승리합니다. 설명 선과 …

7
코드-골프 : 패 레이 시퀀스 (I)
도전 이 작업에서는 정수 N (10 ^ 5 미만)이 주어지고 순서 N 의 Farey 시퀀스 를 출력합니다 . 입력 N은 한 줄로 주어지며 입력은 EOF로 종료됩니다. 입력 4 3 1 2 산출 F4 = {0/1, 1/4, 1/3, 1/2, 2/3, 3/4, 1/1} F3 = {0/1, 1/3, 1/2, 2/3, 1/1} F1 = …
10 code-golf  math  code-golf  math  code-golf  number  number-theory  code-golf  math  arithmetic  repeated-transformation  code-golf  geometry  popularity-contest  code-golf  code-golf  tips  haskell  math  fastest-algorithm  code-golf  combinatorics  code-golf  math  polynomials  rational-numbers  code-golf  code-golf  popularity-contest  javascript  code-golf  kolmogorov-complexity  code-golf  code-golf  math  combinatorics  permutations  code-challenge  restricted-source  random  array-manipulation  code-challenge  generation  code-golf  code-golf  ascii-art  arithmetic  division  code-challenge  number  code-golf  math  number  binary  code-golf  ascii-art  code-golf  interpreter  stack  code-golf  internet  networking  code-golf  math  code-golf  ascii-art  code-golf  math  sequence  code-golf  hello-world  restricted-source  code-golf  ascii-art  code-golf  geometry  code-golf  kolmogorov-complexity  pi  code-golf  math  combinatorics  permutations  code-golf  math  code-challenge  ascii-art  code-golf  string  code-golf  quine  code-golf  math  floating-point  golfscript  code-golf  string  code-golf  sliding-puzzle  code-challenge  arithmetic  code-golf  math  code-golf  geometry  optimized-output 

6
Codegolf Rainbow : 리플렉션을 사용한 색상 정렬
소개: : 나는 두 개의 무지개 관련 문제에 게시 한 후 Codegolf 레인보우 : 정수 배열 재미 (1) 및 Codegolf 무지개 : 블랙 앤 화이트에 그리기 2 , 다음 주석에 의해 만들어진 @ChrisM 아스키에 ( 블랙 앤 화이트에 그리기 ) 도전 : 어쩌면 당신은 이것을 알고 있으며 의도적으로 설계된 것입니다 …

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 

22
가장 낮은 값을 사용하여 줄입니다
도전 숫자 배열을 가져 와서 다른 요소에서 아직 빼지 않은 배열에서 가장 낮은 요소를 각 요소에서 빼는 함수를 만듭니다. 가장 낮은 값을 사용한 후에는 다시 사용할 수 없습니다. 배열의 숫자는 10 진수이며 반드시 정수일 필요는 없습니다. 예: Input: [6, 4, 7, 8, 9, 2, 1, 4] Next lowest value: Output: …

6
벡터의 모든 뚜렷한 순열을 출력합니다
도전: 잠재적으로 긴 양의 정수 목록의 모든 고유 순열을 출력합니다. 테스트 할 때 벡터에 1,000 개 미만의 숫자가 있다고 가정 할 수 있지만 이론적으로 크기에 관계없이 숫자가 둘 이상인 모든 벡터에 대해 프로세스가 작동해야합니다. 제한 사항 : 메모리 사용량을 O (n ^ 2) 로 제한해야합니다 . 여기서 n 은 입력 …

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 

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