«code-challenge» 태그된 질문

코드 챌린지는 다른 스코어링 태그 (예 : 코드 골프)에서 다루지 않는 객관적인 승리 기준으로 프로그래밍 퍼즐을 해결하는 창의적인 방법을 놓고 경쟁합니다.

30
프로그램의 ASCII 코드의 합을 인쇄하는 프로그램 작성
당신의 임무는 프로그램 자체의 문자의 ASCII 코드의 합계를 인쇄하는 프로그램을 작성하는 것입니다. 파일을 열 수 없습니다 (명령 줄 인수, 표준 입력 또는 파일과 같은 입력은 금지됨). 가장 낮은 숫자를 인쇄하는 프로그램 (즉, 가장 낮은 ASCII 코드 합계를 가진 프로그램)이 승리합니다. 다음은 C로 작성된 그러한 프로그램의 예입니다 (가장 짧지 않음). #include …

2
압축률이 가장 낮은 사진 만들기
"그림은 천 단어의 가치가있다"– 그래서 오래된 말은 계속된다. 평균 단어 길이는 약 4 자이므로 그림은 4kB의 정보를 전달합니다. 그러나 그림보다는 정보가 얼마나 많은 엔트로피를 전달할 수 있습니까? 당신의 임무는 가능한 최대 엔트로피로 정확히 4,000 바이트 크기의 이미지를 생성하는 것입니다. 선택한 언어, 라이브러리 또는 이미지 형식을 사용할 수 있으며 여기에 이미지를 …

7
최소 개수의 고유 문자를 사용하여 정수 래더 생성 (C ++)
나는 코드 골프의 스포츠를 처음 사용합니다. C ++에서 가장 적은 수의 고유 문자를 사용하여 정수 래더를 생성하려고합니다. 정수 4가 주어 졌다고 가정 해 봅시다. 다음 사다리를 생성합니다. 11 2 1 3 1 2 3 4 요컨대, 내 프로그램은 stdin에서 양의 정수를 읽고이 사다리를 출력에 인쇄합니다. 가장 적은 수의 고유 문자로 …

15
논리 게이트 수동
기본 논리 게이트를 시뮬레이트하는 프로그램을 작성하십시오. 입력 : 모두 대문자로 된 단어 다음에 공백으로 구분 된 2 자리 숫자 2 진수 (예 :) OR 1 0. 게이트는 OR, AND, NOR, NAND, XOR, 및이 XNOR요구된다. 출력 : 입력 된 논리 게이트의 출력에 1 또는 0의 두 숫자가 제공됩니다. 예 :이 AND …
13 code-golf  logic-gates  hashing  code-golf  code-golf  number  array-manipulation  integer  code-golf  string  unicode  text-processing  cops-and-robbers  boggle  cops-and-robbers  boggle  code-golf  ascii-art  code-golf  word-puzzle  king-of-the-hill  python  code-golf  sequence  kolmogorov-complexity  code-golf  source-layout  code-golf  string  kolmogorov-complexity  math  number  code-golf  date  code-golf  combinatorics  recursion  game  king-of-the-hill  javascript  code-golf  array-manipulation  code-golf  radiation-hardening  self-referential  code-golf  integer  code-golf  number  code-golf  set-theory  code-golf  sequence  code-golf  string  sorting  natural-language  code-golf  decision-problem  number-theory  primes  code-golf  code-golf  ascii-art  code-challenge  array-manipulation  sorting  rubiks-cube  regular-expression  code-golf  counting  file-system  recursion  code-golf  string  kolmogorov-complexity  color  code-golf  game  code-challenge  permutations  encode  restricted-time  decode  code-golf  math  decision-problem  matrix  integer  palindrome  code-golf  matrix  statistics  king-of-the-hill  king-of-the-hill  python  card-games  code-golf  string  natural-language  code-golf  sequence  number-theory 

30
프라임 파워에서 프라임 복구
정의 : 소수 는 자연수이며 p n 형식으로 표현할 수있는 자연수입니다. 여기서 p는 소수이고 n은 자연수입니다. 작업 : 프라임 전력 p n > 1이 주어지면 프라임 p를 반환합니다. 테스트 케이스 : input output 9 3 16 2 343 7 2687 2687 59049 3 채점 : 이것은 code-golf 입니다. 바이트 단위의 …
13 code-golf  arithmetic  primes  king-of-the-hill  python  board-game  code-golf  number  subsequence  code-golf  ascii-art  code-golf  array-manipulation  decision-problem  grid  fastest-algorithm  logic-gates  logic  code-golf  cards  code-golf  rational-numbers  code-golf  math  number  sequence  code-golf  array-manipulation  integer  code-golf  number  array-manipulation  code-golf  number  sequence  decision-problem  code-golf  ascii-art  number  code-challenge  sequence  arithmetic  sorting  code-golf  date  fastest-algorithm  code-golf  string  number  random  combinatorics  code-golf  combinatorics  code-golf  ascii-art  base-conversion  code-golf  array-manipulation  code-golf  string  code-golf  string  number  arithmetic  code-golf  kolmogorov-complexity  code-golf  string  array-manipulation  json  code-golf  puzzle-solver  code-golf  binary  graph-theory  code-golf  arithmetic  haskell  code-golf  string  cipher  code-golf  code-golf  string  parsing  alphabet  code-golf  string  code-golf  ascii-art  code-golf  string  number  code-golf  string  balanced-string 

6
브레인 플락에게 보내는 텍스트
당신의 도전은 입력 텍스트를 텍스트를 출력 할 뇌-플래그 코드로 바꾸는 것입니다. 여기 에서 권한을 가지고 여기 에서 가져온 튜토리얼 Brain-Flak에는 '왼쪽'과 '오른쪽'으로 알려진 두 개의 스택이 있습니다. 활성 스택은 왼쪽에서 시작합니다. 빈 스택이 튀어 나오면 0을 반환합니다. 그게 다입니다. 다른 변수는 없습니다. 프로그램이 시작되면 각 명령 행 인수가 활성 스택으로 …

2
당신의 죽음을 피하십시오!
소개 "무 후후 하하하!" 미친 과학자가 웃었다. "당신은 내 작은 게임에 갇혀있다!" 당신 앞에는 치명적인 뱀이 있으며, 뒤에는 밑이없는 틈이 있습니다. 탈출구가 없습니다, 당신은 붙어있다! "당신 앞에 두 발자국이 뱀 구덩이이고, 뒤에 두 발자국이 틈이 있습니다. 그러나! 이동하기 전에 반드시 일련의 발걸음, 앞뒤로 적어 두어야합니다. 그러나 나는! 'm 비트 느낌 …

11
느슨한 범위 해석
느슨한 범위 해석 ListSharp 는 많은 기능을 가진 해석 된 프로그래밍 언어입니다. 이러한 기능 중 하나는 다음과 같은 1 인덱스 기반 범위 작성자입니다. 범위를 정의 (INT) TO (INT)하거나 (INT)둘 다 또는 단일 int가 min에서 max int32 값으로 갈 수있는 곳을 정의하십시오. 그런 다음 해당 범위를 사용하여 배열의 경계를 넘길 염려없이 …
13 code-golf  array-manipulation  parsing  code-golf  string  ascii-art  kolmogorov-complexity  code-challenge  code-golf  sequence  code-golf  number  array-manipulation  sorting  code-golf  string  function  code-golf  arithmetic  code-golf  math  sequence  number-theory  primes  restricted-source  javascript  code-challenge  polyglot  rosetta-stone  code-golf  code-golf  regular-expression  code-golf  math  code-golf  math  primes  code-golf  ascii-art  kolmogorov-complexity  binary  code-golf  math  sequence  code-golf  sequence  subsequence  code-golf  string  code-golf  parsing  music  code-golf  grid  game  path-finding  board-game  code-golf  string  binary  code-golf  array-manipulation  balanced-string  code-golf  code-golf  algorithm  code-golf  string  number  arithmetic  array-manipulation  code-golf  array-manipulation  binary-tree  tree-traversal  code-golf  code-golf  tips  code-golf  string  base-conversion  code-golf  tips  s.i.l.o.s  code-golf  string  ascii-art  code-golf  code-challenge  code-golf  game 

4
Getters 받기
작업 모두가 자동 코드 생성을 좋아하고 작업하는 동안 시간을 ​​절약한다고 생각합니다. 낮에는 많은 클래스와 멤버를 만들어야하며 모든 클래스와 멤버를 getters수동으로 만들고 싶지는 않습니다 . 작업은 getters모든 클래스 멤버를 위해 자동으로 생성되는 프로그램 또는 함수를 작성하는 것입니다. 입력 우리의 언어에서 객체는 매우 간단합니다. 클래스와 멤버의 이름은 [a-zA-Z]문자로 시작해야 하며 문자 만 …
13 code-golf  string  syntax  code-golf  math  primes  rational-numbers  code-golf  graphical-output  image-processing  code-golf  kolmogorov-complexity  music  audio  code-golf  string  code-golf  math  geometry  code-golf  math  sequence  combinatorics  code-golf  game  grid  board-game  code-golf  restricted-source  array-manipulation  source-layout  code-golf  base-conversion  binary  code-golf  math  physics  code-golf  math  number  date  expression-building  code-golf  array-manipulation  graph-theory  decision-problem  popularity-contest  error-correction  code-golf  kolmogorov-complexity  geometry  grid  code-challenge  arithmetic  combinatorics  set-partitions  code-golf  kolmogorov-complexity  sequence  fibonacci  code-golf  restricted-source  pristine-programming  code-golf  code-golf  string  kolmogorov-complexity  code-golf  arithmetic  code-golf  string  parsing  code-golf  code-golf  sorting  counting  permutations  3d  code-golf  code-golf  ascii-art  music  code-golf  string  code-golf  string  ascii-art  code-golf  string  code-golf  quine  polyglot  code-golf  math  string  code-golf  internet 

11
프로그램을 인쇄하는 프로그램
도전 당신의 목표는 다른 프로그램을 인쇄하는 프로그램을 작성하는 것입니다. 인쇄 된 프로그램은 다른 프로그램을 인쇄해야하며 새 프로그램은 끝날 때까지 다른 프로그램을 인쇄해야합니다. 규칙 각 프로그램은 256 바이트 미만이어야합니다. (이것을 변경해야 할 경우 의견을 남겨주세요) 마지막 프로그램은 빈 프로그램이어야합니다. 한정된 수의 프로그램이 있어야하므로 프로그램은 엉망이 될 수 없습니다. 프로그램은 모두 같은 …

6
결정적인 최적화 문제
모든 엔트리가 0 또는 1 인 30 x 30 Toeplitz 행렬을 고려하십시오 . 입력 없음 출력 A 30 x 30 Toeplitz 행렬의 모든 항목이 결정자와 함께 0 또는 1입니다. 점수 출력하는 행렬의 결정 요인입니다. 두 사람이 같은 점수를 얻으면 첫 번째 대답이 이깁니다. 지금까지 선두 항목 Nick Alger의 Matlab 에서 …

1
테트리스 탄 그램
소개 탄 그램 은 블록을 다양한 모양으로 배열 / 맞춤하는 고전 퍼즐입니다. 중국어에서 From-문자 그대로 "일곱 기술 보드"를 의미합니다. 이 아이디어를 가지고 7 개의 Tetrominos 조각을 사용하여 격자를 채우자. 도전 그리드 좌표 배열을 입력으로 받아 지정된 좌표를 제외하고 Tetris 조각으로 채워진 10 x 20 그리드를 출력하는 함수 또는 프로그램을 작성하십시오. …

3
컴퓨터 : 당신은 수학을
이 과제는 부분적으로 알고리즘 과제이며 일부 수학과 관련이 있으며 부분적으로 가장 빠른 코드 과제입니다. 양의 정수의 경우 n, 길이 가 일정한 임의의 1s 및 0s 문자열을 고려하여 n호출하십시오 A. 이제도 길이의 제 균일 선택된 임의의 문자열을 고려 n하는 값이다를 -1, 0,또는 1이를 호출 B_pre. 지금 할 B수 B_pre+ B_pre. 그것은 …

1
택배
택배 프로그램은 모든 문자열을 입력으로 받아들이고 Courier에서 입력 문자열을 보여주는 픽셀 이미지를 출력해야합니다. abdegopqABDPQR검은 색 픽셀로 둘러싸인 '구멍'(예 : 등) 이 포함 된 모든 문자 도 검은 색으로 채워야합니다. 입력 프로그램은 ASCII 문자열을 입력으로 승인 할 수 있어야합니다. 다른 입력을 수용하기 위해 프로그램 코드 자체를 변경할 필요가없는 한 입력은 원하는 …

1
불꽃 놀이 융합
개요 불꽃 놀이 a-z와 시간 목록이 주어지면 3-78퓨즈를 사용하여 올바른 시간에 모든 조명을 켜십시오. 입력 줄은 공백으로 구분 된 문자와 숫자로 제공됩니다. a 3 b 6 c 6 d 8 e 9 f 9 즉, 예를 들어 프로그램이 불꽃 a시 광 필요성 3, b및 c모두에서 6, d시 8와 e그리고 f모두에서 …

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