«quine» 태그된 질문

quine은 소스를 출력으로 생성하는 프로그램입니다. 이 태그는 챌린지가 퀴네와 관련되어 있음을 나타냅니다.

11
자체 수정에 의한 곱셈
... 적어도 "자체 수정"의 일부 정의에 대해서는 작업 이 문제에서, 당신의 작업은 세 개의 문자열을 작성하는 것입니다 A, B그리고 C그 다음 속성을 만족시킨다. 문자열의 B길이는 1 이상입니다. 모든 n ≥ 0경우에, 문자열 은 선택한 프로그래밍 언어의 유효한 프로그램 (전체 실행 가능한 프로그램 또는 함수 정의를 의미 함)입니다. 첨자를 나타낸다 반복이 …

20
폴리 퀸 작성
폴리 퀸은 quine과 polyglot입니다. 1 최소한 두 개의 다른 언어로 유효한 quine을 작성해야합니다. 이것은 코드 골프이므로 가장 짧은 대답 (바이트)이 이깁니다. 1 나는 그것을 만들었다. 또는 오히려 Geobits는 . 그러나 그는 첫 번째 사람도 아니었다 . Quines에 대한 규칙 만 사실 quines 허용됩니다. 즉, 당신은 STDOUT에 그대로 전체 소스 코드를 …

6
Tarzan의 올림픽 덩굴 스윙 루틴 점수
올림픽 덩굴 스윙 어는 표준 나무에서 일상을 수행합니다. 특히 표준 트리 n에는 0이 아닌 각 정점 을 그 아래 정점 에 연결하는 0위쪽 n-1및 모서리 a정점이 n % a있습니다. 예를 들어 표준 트리 5는 다음과 같습니다. 3 | 2 4 \ / 1 | 0 5를 3으로 나눈 나머지는 2이고, …
32 code-golf  math  number  number-theory  code-golf  code-golf  restricted-source  programming-puzzle  css  code-golf  parsing  code-golf  random  encryption  code-golf  ascii-art  fractal  code-golf  math  code-golf  sorting  graph-theory  path-finding  permutations  code-golf  tetris  code-golf  card-games  code-golf  math  sequence  rational-numbers  code-golf  chess  code-golf  string  geometry  grid  code-golf  ascii-art  grid  code-golf  sequence  integer  code-golf  math  number-theory  packing  polyomino  code-golf  math  code-golf  string  quine  permutations  code-golf  math  code-golf  image-processing  optical-char-recognition  code-golf  string  kolmogorov-complexity  sequence  integer  code-golf  number  permutations  palindrome  code-golf  kolmogorov-complexity  code-golf  number  sequence  string  fewest-operations  code-golf  string  kolmogorov-complexity  sequence  primes  code-golf  string  ascii-art  code-golf  string  number  alphabet  code-golf  counting  code-golf  number  sequence  number-theory  primes  code-golf  subsequence  word-search 

7
3 개의 폴리 글 로트, 2 개의주기 2 퀴인 및 1 개의 코드 골프 챌린지
언어 A로 실행하면 프로그램 B가 생성되고 언어 B로 프로그램 A를 실행하면 프로그램 C가 생성되도록 프로그램 A를 생성하십시오. 언어 B에서 실행될 때 프로그램 B는 프로그램 A를 생성하고 언어 A에서 프로그램 B를 실행하면 프로그램 C가 생성됩니다. 언어 A 또는 언어 B 로 실행될 때 프로그램 C 는 "잘못된 언어!"를 인쇄합니다. Program | …

7
재귀 Quines에 의한 뉴턴 방법
당신의 임무는 약간의 비틀림과 함께 뉴턴의 방법을 사용하여 2의 제곱근을 계산하는 것입니다. 귀하의 프로그램은 Newton의 방법을 사용하여 반복을 계산하고 다음 반복에 대한 소스 코드를 출력합니다 (동일하게 수행 할 수 있어야 함). 뉴턴의 방법은 Wikipedia 에 상당히 철저하게 설명되어 있습니다. 뉴턴 방법을 사용하여 제곱근 2를 계산하려면 다음을 수행하십시오. 밝히다 f(x) = …
32 code-golf  math  quine 

6
거울 퀴네 (또는 내 머리가 아파)
나는 읽고 있었다 코드를 역전 퀴인 인쇄 그리고 나는 역행 코드도 실행 가능 하다면 더 흥미로울 것이라고 생각했다 . 따라서이 과제는 다른 규칙과 요구 사항을 모두 갖지만, 같은 언어 또는 다른 언어로 되돌려도 소스가 뒤로 인쇄되는 유효한 소스 여야합니다. 리버스 퀴네 챌린지의 모든 규칙과 점수가 적용되므로이 질문에 대한 모든 답변이 …
32 code-golf  quine 

6
당신이 할 수있는 가장 큰 무한대를 만드십시오!
서수 시스템은 무한 수있는 시스템입니다. 무한한 숫자가 많습니다. 문자 그대로 자체 무한대를 나타내는 무한대가없는 무한한 숫자가 너무 많습니다. 위의 이미지는 작동 방식에 대한 약간의 아이디어를 제공합니다. 서수 ( Von Neumann construction )는 이전 서수 세트입니다. 예를 들어, 0은 빈 세트, 1은 {0} 세트, 2는 {0, 1} 세트 등입니다. 그런 다음 …

1
중지 문제를 해결하려는 나의 시도를 혼란스럽게한다
참고 : 특성상이 문제에 대한 사양은 이해하기 어렵습니다. 아마도 계산 이론 또는 동등한 배경 읽기에 대한 신입생 과정이 필요합니다. 또한 도전 자체는 다소 어렵습니다. 응답하려면 선택한 언어의 일부 하위 집합에 대해 전체 통역사를 작성해야하며 통역사는 퀴네와 같은 형식이어야합니다. 귀하의 답변이이 모든 것을 수행하지 않는다면 사양을 충족시키지 않는 것이 거의 확실합니다. …

14
Quine에 고양이 2 마리
도전 동일한 언어의 고양이 프로그램 인 A와 B의 두 프로그램을 만드십시오. 연결될 때, AB (동일한 언어로도)는 quine이어야합니다. 예를 들어, 가정 hello및 world언어 XYZ 모두 고양이 프로그램입니다. 해당 helloworld언어로 된 퀴즈 인 경우 솔루션이 유효합니다. 고양이와 quines에 익숙하지 않은 사람들을 위해, 고양이 프로그램은 stdin을 통해 주어진 것을 정확하게 인쇄하는 프로그램이며 quine은 …
30 code-golf  quine 

17
일종의 퀴
string이 주어지면 소스 코드의 표시 순서에 따라 x문자를 x정렬 하여 출력하십시오 . 예 Source: ThisIs A Test Input: Is it a Test? Output: TissI etta? Source: Harry - yer a wizard. Input: I'm a what? Output: aa wh'?Imt Source: Mr. H. Potter, The Floor, Hut-on-the-Rock, The Sea Input: Output: 규칙 …

12
Quine Suite 작성
우리는 많은 quine 도전을 받았지만 많은 quine 형식은 비슷하며 quine에 약간의 차이를 만들 수 있습니다. 귀하의 작업은 동일한 언어 (최소 2 개)로 선택한 프로그램을 작성하는 것입니다.이 프로그램은 모두 자체 소스 코드를 출력하지만이 프로그램 중 어느 것도 문자를 공유 할 수 없습니다. 예를 들어 다음을 사용하여 프로그램을 만드는 경우 : printf+qw(printf+qw(%s)x2)x2 …

7
느리게 성장하는 Quine
Quine를 만드십시오. 쉬운 것 같아? 음,이 quine은 그 자체에 첫 번째 문자를 더한 다음, 그 자체에 두 번째 문자를 더해 출력해야합니다. 이런 식으로 quine은 여러 세대에 걸쳐 두 개의 사본을 출력해야합니다. 예 : 코드가되게하십시오 x. 실행하면 출력 x + x[:1]됩니다. 결과 프로그램을 실행하면 다음 x + x[:2]과 같이 출력 됩니다. …
30 code-golf  quine 

7
퀴네 작성을위한 팁
quine는 프로그램의 소스 코드의 동일한 출력을 생성하는 프로그램이다. 이 웹 사이트에서 우리는 일반적으로 적절한 quines 에 대해서만 관심을 갖습니다 (작성 당시 현재 정의는 "출력의 일부는 프로그램의 다른 부분에 의해 인코딩됩니다"). 적절한 quine을 작성하거나 quine와 유사한 속성을 가진 프로그램에 대해 어떤 조언이 있습니까? 평소와 같이 각 팁은 다른 답변으로 작성해야합니다.
30 tips  quine 

30
ASCII 삼각형
당신의 임무는 ASCII 삼각형을 인쇄하는 프로그램이나 함수를 작성하는 것입니다. 그들은 다음과 같이 보입니다 : |\ | \ | \ ---- 프로그램은 n제약 조건 이있는 단일 숫자 입력을 0 <= n <= 1000받습니다. 위 삼각형의 값은 n=3입니다. ASCII 삼각형에는 n백 슬래시 ( \) 및 세로 막대 ( |), n+1선 및 대시 …
30 code-golf  ascii-art  code-golf  rubiks-cube  code-golf  path-finding  maze  regular-expression  code-golf  math  rational-numbers  code-golf  kolmogorov-complexity  graphical-output  code-golf  tips  code-golf  string  permutations  code-golf  sorting  base-conversion  binary  code-golf  tips  basic  code-golf  number  number-theory  fibonacci  code-golf  date  code-golf  restricted-source  quine  file-system  code-golf  code-golf  math  code-golf  ascii-art  code-golf  math  primes  code-golf  code-golf  math  matrix  code-golf  string  math  logic  factorial  code-golf  palindrome  code-golf  quine  stateful  code-golf  interactive  code-golf  board-game  code-golf  math  arithmetic  code-golf  string  code-golf  math  matrix  code-golf  math  abstract-algebra  polynomials  code-golf  date  code-golf  string  array-manipulation  sorting  code-golf  game  code-golf  string  code-golf  ascii-art  decision-problem  code-golf  number  sequence  code-golf  code-golf  code-golf  sequence  fibonacci  code-golf  math  geometry  random  code-golf  code-golf  math  decision-problem  fractal  rational-numbers  code-golf  number  number-theory  code-golf  combinatorics  permutations  card-games  code-golf  math  sequence  array-manipulation  fibonacci  code-golf  sequence  decision-problem  graph-theory  code-golf  ascii-art  parsing  lisp  code-golf  string  math  natural-language  logic  code-golf  math  logic  code-golf  string  alphabet  code-golf  string  code-golf  string 

8
깨지기 쉬운 Quine
깨지기 쉬운 Quine 깨지기 쉬운 퀴는 평가할 때 단일 문자를 제거하여 만든 각 하위 문자열을 갖는 속성을 만족시키는 퀴니로, 오류가 발생합니다. 예를 들어. 프로그램 asdf이 퀴인 경우 프로그램 이 깨지기 쉬운 경우 다음 프로그램에서 오류가 발생해야합니다. sdf adf asf asd 프로그램과 모든 하위 문자열은 완전히 결정적이어야하며 동일한 언어 여야합니다. 결국 …
30 code-golf  quine  code-golf  date  code-golf  sequence  code-golf  sorting  file-system  code-golf  code-golf  ascii-art  hexagonal-grid  code-golf  string  arithmetic  code-golf  code-golf  code-challenge  source-layout  code-golf  ascii-art  cellular-automata  code-golf  string  arithmetic  balanced-string  code-golf  number  primes  code-golf  ascii-art  hexagonal-grid  code-golf  string  code-golf  string  code-golf  sequence  code-golf  ascii-art  code-golf  conversion  hexadecimal  code-challenge  restricted-source  code-golf  math  grid  code-golf  string  ascii-art  code-golf  random  minesweeper  code-golf  ascii-art  kolmogorov-complexity  board-game  scrabble  code-golf  ascii-art  code-golf  math  number-theory  decision-problem  code-golf  string  code-golf  natural-language  code-golf  internet  stack-exchange-api  code-golf  code-golf  conversion  code-golf  string  code-golf  math  arithmetic  code-golf  string  whitespace  code-golf  graphical-output  internet  code-golf  string  code-golf  string  random  permutations  code-golf  string  code-golf  string 

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