«polyglot» 태그된 질문

여러 프로그래밍 언어로 실행되는 코드 관련 문제.

25
간단한 패턴
입력 : 선택한 입력 형식의 두 개의 단일 자릿수 ( m및 n) 및 두 자릿수 ( a및 b)를 입력하십시오. 산출: 연습을 위해 척하십시오 m=2, n=5, a='a', b='b'. 출력은 4 개의 입력으로 구성된 문자열입니다. resultvalue를 사용 하여 문자열을 호출 해 봅시다 "". 첫째, CONCATENATE a위에 result m배, CONCATENATE 그래서 a위에 result …
17 code-golf  string  code-golf  arithmetic  code-golf  string  array-manipulation  rubiks-cube  code-golf  math  number  code-golf  tips  bash  code-golf  ascii-art  music  code-golf  arithmetic  code-golf  math  number  arithmetic  integer  code-golf  number  array-manipulation  code-golf  geometry  grid  set-partitions  code-golf  math  number  code-golf  combinatorics  code-golf  regular-expression  code-golf  permutations  code-golf  ascii-art  code-golf  number  array-manipulation  matrix  code-golf  kolmogorov-complexity  compile-time  cops-and-robbers  polyglot  cops-and-robbers  polyglot  code-golf  string  code-golf  string  ascii-art  matrix  animation  code-golf  ascii-art  code-golf  string  balanced-string  code-golf  integer  integer-partitions  expression-building 

10
오름차순 행렬
"오름차순 행렬"은 정수 (0 포함)의 무한 행렬로, 모든 요소가 해당 행과 열에서 이전에 사용되지 않은 가장 작은 사용 가능한 요소입니다. | 1 2 3 4 5 6 ... --+---------------- 1 | 0 1 2 3 4 5 ... 2 | 1 0 3 2 5 4 ... 3 | 2 …
17 code-golf  math  matrix  programming-puzzle  code-golf  music  code-challenge  programming-puzzle  code-golf  fastest-code  code-golf  number  game  code-golf  combinatorics  code-golf  math  sequence  restricted-complexity  code-golf  number  random  code-golf  array-manipulation  code-golf  math  matrix  code-golf  number  sequence  counting  code-golf  math  number  sequence  popularity-contest  number  sequence  code-golf  music  code-golf  number  code-golf  ascii-art  arithmetic  code-golf  code-golf  number  code-golf  code-challenge  array-manipulation  code-golf  grammars  code-challenge  polyglot  code-golf  game  math  python  programming-puzzle  code-challenge  king-of-the-hill  code-challenge  fastest-code  primes  number-theory  number-theory  primes  fastest-code  factoring  popularity-contest  compile-time  code-golf  math 

4
POSIX 및 Windows에서 실행되는 실행 가능한 스크립트 파일
도전 과제 : 임의의 Windows 관련 코드를 실행하기 위해 foo.cmd바닐라 Windows cmd.exe프롬프트 (PowerShell이 ​​아닌 관리자 모드가 아님)에서 호출 할 수 있는 단일 스크립트 파일 을 작성하십시오 ... > .\foo.cmd Hello Windows! ... 또한 쉘 전형적인 POSIX 호환 (리눅스 / OSX)에서 변경되지 않은 호출 할 프롬프트 ( bash, tcsh또는 zsh), 임의의 …

3
언어의 피라미드
가능한 한 많은 프로그래밍 언어로 실행 또는 컴파일되고 이전 및 현재 프로그래밍 언어의 줄 바꿈으로 구분 된 이름 목록을 인쇄하는 코드를 작성하십시오. 사용 된 모든 언어의 이름은 이전보다 1 자 더 길어야합니다. 전의. C#, C++, Ruby, Jelly, Python... 각 언어는 줄 바꿈으로 구분 된 언어 이름 목록을 길이별로 정렬해야합니다. 출력은 …

15
회문 폴리 글 로트
당신의 임무는 두 개의 다른 언어로 실행되는 프로그램을 작성하고 다음을 수행하는 것입니다. 한 언어에서, 주어진 문자열을 palindromize합니다. 끈을 가져 가라. abcde 줄을 바꾸십시오. edcba 첫 번째 문자를 제거하십시오. dcba 원래 끈에 붙입니다. abcdedcba 다른 언어에서는 주어진 문자열을 depalindromize합니다. 위의 방법으로 palidromized 문자열을 가져 가라. abcdedcba 처음부터 중간까지 문자를 가져옵니다. abcde …

8
Hello World를위한 폴리 글 로트 구축
"Hello World!"를 인쇄하는 텍스트 파일을 작성하십시오. 컴파일 / 해석 할 때 가능한 한 많은 프로그래밍 언어로 가능한 한 짧게 작성하십시오. 제출 점수는로 계산됩니다 C / 2 ^ ((L - 1) / 4). 여기서 "C"는 텍스트 파일의 문자 길이이며 "L"은 프로그램이 유효한 언어 수입니다. 물론 최저 점수가 승리합니다.

14
재귀 적으로 연결된 반복 누적 [N]과 M 반복
이 양 개의 정수를 타고 N와 M와의 연결된 누적 합계를 생성 [N]하여, M반복. 마지막 반복 결과를 출력합니다. 연결된 누적 합계의 정의 : 숫자로 시작 N하고 순서를 정의하십시오X = [N] X누적 합계에 추가X 2 단계를 반복하십시오 M. 벡터의 누적 합 X = [x1, x2, x3, x4]은 다음과 같습니다 [x1, x1+x2, x1+x2+x3, …
14 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 

2
Quine / Error Quine 폴리 글롯
귀하의 작업은 간단합니다 : 두 가지 언어로 실행할 수있는 프로그램을 작성하십시오. 언어 1의 일반 quine (자체 소스 코드를 인쇄 함)이어야하며 언어 2의 오류 quine (자체 소스 코드와 동일한 오류 메시지를 생성 함)이어야합니다. 이것은 code-golf 이므로 가장 짧은 유효한 제출 (바이트)이 이깁니다. 규칙 : 언어는 임의로 비슷할 수 있습니다. 수퍼 셋 …

12
플러스 또는 마이너스 폴리 글 로트!
제출시 숫자 목록 (언어가 지원하는 목록 형식 또는 여러 기능 / 명령 줄 매개 변수 사용) 또는 숫자가 아닌 문자로 구분 된 숫자 문자열을 가져와야합니다 0123456789. 한 언어에서는 모든 언어를 추가하고 합계를 출력해야합니다. 다른 언어에서는 순서대로 빼서 출력해야합니다 . 예: 12 5 7 2 한 언어에서는 출력해야 26하고 다른 언어에서는 …

1
커닝햄 체인 계산
소수는 항상 사람들을 매료 시켰습니다. 2300 년 전 Euclid는 그의 "요소"에 썼습니다. 소수는 단위로 측정되는 것입니다. 즉 소수는 1(또는 그 자체로) 나눌 수 있음을 의미합니다 . 사람들은 항상 소수 사이의 관계를 찾아 왔고, ( "흥미로운"과 같이) 아주 이상한 것들을 생각해 냈습니다. 예를 들어, 소피 제르맹 소수는 소수입니다 p있는 2*p+1도 소수. …

13
변장 프로그램 작성 [폐쇄]
닫은. 이 질문은 주제에 맞지 않습니다 . 현재 답변을받지 않습니다. 이 질문을 개선하고 싶습니까? Code Golf Stack Exchange에 대한 주제가 되도록 질문을 업데이트하십시오 . 휴일 2 년 전 . 문제는 다른 언어처럼 보이지만 HQ9 + 문제 중 하나 를 해결하는 프로그램을 만드는 것 입니다. 참고 : 이것은 골프 도전이 아닙니다. …

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 

5
다른 코드에서 Brainf *** 인사말 숨기기
목표는 Barney Stinson 의 최선의 규칙 을 인쇄하는 프로그램 (명시적인 brainfuck을 제외한 모든 것)을 작성하는 것입니다 . 새로운 것이 항상 좋습니다. 정상적으로 해석 될 때 레겐 .. 기다려 봐. Brainfuck 인터프리터로 처리 할 때. 가장 인기있는 형제가 이길 수 있습니다. 전설적인 시간이 72 시간입니다.

10
다국어 도전
결국 우리가 수개 국어로 했어 재미가 (에 도전 최근 어떻게 출력이 두 언어에있을 수있는 문제에 대해) 과거? 답은 부울 입력을 승인 b하고 텍스트 "true"또는을 출력해야합니다 "false". 동일한 코드가 다른 언어로 실행 출력에 필요 "waar"하거나 "onwaar"또는 다른 번역 true과 false. 입력 입력은 명확하게 구별되는 진실 / 거짓입니다. 실제 값 T / …

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