«polyglot» 태그된 질문

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

24
Polyglot Anagrams 강도 스레드
이것은 이 도전 의 강도 스레드입니다 경찰은 OEIS 시퀀스 를 선택하고 STDIN을 통해 n이 주어지면 시퀀스에서 해당 n 번째 항목을 생성하는 두 개의 다른 언어로 두 개의 전체 프로그램 을 작성합니다. 두 프로그램은 서로에 대한 아나그램이어야합니다. 즉, 서로의 문자에서 재 배열 될 수 있습니다. 그들은 OEIS 번호에 대한 소스 코드의 …

4
여러 프로그램 Quinecatenate!
당신의 임무는 세 가지 언어 A, B, C를 제공하고 두 가지 다른 프로그램 P와 Q를 작성하는 것입니다 P는 언어 A의 퀴닌이지만 B 나 C의 퀴닌은 아닙니다. Q는 언어 B에서는 퀴네이지만 A 나 C에서는 퀴네가 아닙니다. 과 P 다음에 연결된 Q (새 문자 사이에 추가되지 않은)는 언어 C에서는 퀴지만 B 나 …

28
진실을 뒤집다
다음과 같은 프로그램이나 기능을 작성하십시오. stdio 또는 인수에서 문자열을받습니다. 모든 항목 대체 true와 false와 false와를true 그것을 반전,하지만 반대하지 않습니다 true및false 결과를 반환하거나 인쇄합니다 예 (왼쪽이 입력 됨) : "true" "false" "2false" "true2" "true is false" "true si false" "false,true,undefined" "denifednu,false,true" "stressed-false" "true-desserts" "falstrue" "falseslaf" "true false true x" "x false …

16
하나 더 프로그램하고 나왔습니다!
양의 정수 중첩 수준을 감안할 때 n문자열 s인쇄 가능한 ASCII 문자 (의 에 ~같은 언어로 실행하면, 프로그램을 출력하는 프로그램을 출력하고, 출력하는 프로그램... 문자열을 출력합니다 s. 총 n프로그램이 생성되어야하며, 모든 프로그램은 답변과 동일한 언어로 실행되어야합니다. 참고 : 기본적으로 제출로 허용되는 모든 프로그램 또는 기능을 출력 할 수 있습니다. s이스케이프 문자로 입력 …
21 code-golf  recursion  code-golf  kolmogorov-complexity  board-game  code-golf  number-theory  polynomials  code-golf  code-golf  array-manipulation  polyglot  alphabet  answer-chaining  code-golf  sequence  math  atomic-code-golf  abstract-algebra  proof-golf  code-golf  internet  code-golf  internet  code-golf  ascii-art  kolmogorov-complexity  code-golf  math  ascii-art  number  integer  code-golf  decision-problem  binary-matrix  code-golf  number  sequence  number-theory  code-golf  math  decision-problem  matrix  abstract-algebra  code-golf  string  keyboard  code-golf  fractal  code-golf  math  sequence  combinatorics  hello-world  vim  code-golf  sequence  code-golf  graphical-output  image-processing  code-golf  decision-problem  matrix  linear-algebra  code-golf  ascii-art  code-golf  math  code-golf  ascii-art  graphical-output  code-golf  string  code-golf  string  substitution  code-golf  string  ascii-art  code-golf  arithmetic  code-golf  number  array-manipulation  decision-problem  code-golf  kolmogorov-complexity  code-generation  fractal  code-golf  ascii-art  kolmogorov-complexity  code-golf  ascii-art  code-golf  string  array-manipulation  code-golf  music  code-golf  array-manipulation  code-golf  internet  stack-exchange-api  math  fastest-algorithm  code-golf  binary  bitwise  code-golf  date  code-golf  string  code-golf  sequence  integer  code-golf  arithmetic  number-theory  code-golf  string  random 

30
주어진 너비로 #의 빈 사각형을 그립니다.
Codingame 에서이 도전을 받았으며 내 것보다 더 나은 솔루션이 궁금합니다. 표준 입력을 통한 너비가 주어지면 주어진 너비와 길이로 빈 사각형 '#'을 그립니다. 예: 5 결과 ##### # # # # # # ##### 나는 이것을 사용하여 파이썬을 사용하여 다른 파이썬 코드에 특히 관심이 있습니다. 그러나 원하는 언어로 솔루션을 게시하십시오.
21 code-golf  string  ascii-art  number  code-golf  grid  code-golf  string  ascii-art  code-golf  alphabet  cipher  code-golf  math  number  code-golf  quine  code-golf  palindrome  polyglot  code-golf  number  array-manipulation  counting  logic  code-golf  string  primes  binary  decision-problem  code-golf  ascii-art  kolmogorov-complexity  popularity-contest  code-golf  probability-theory  code-golf  string  code-golf  python  polyglot  programming-puzzle  c++  code-golf  math  code-golf  binary  integer  bitwise  code-golf  rational-numbers  code-golf  string  palindrome  code-golf  ascii-art  code-golf  code-golf  string  fibonacci  code-golf  math  sequence  code-golf  code-golf  string  palindrome  code-golf  string  code-golf  math  primes  source-layout  code-golf  sequence  binary  integer  code-golf  math  arithmetic  game  code-golf  restricted-source  palindrome  code-golf  restricted-source  palindrome  code-golf  combinatorics  binary  code-golf  string  math  code-golf  ascii-art  number  code-golf  cipher  code-golf  base-conversion  counting  code-golf  sequence  random  classification  code-golf  string  subsequence  code-golf  permutations  code-golf  string  code-golf  string  cipher  code-golf  kolmogorov-complexity  arithmetic  integer  code-golf  quine  markov-chain  code-golf  string  code-golf  code-golf  ascii-art  maze 

11
제한된 폴리 글롯
폴리 글 로트는 여러 프로그래밍 언어에서 동시에 유효한 프로그램입니다. 이러한 폴리 글 로트 대부분은 한 언어의 특정 구문이 다른 언어의 주석으로 해석되는 방식으로 작성됩니다 (예 : #defineC에서 여러 스크립팅 언어의 주석으로 해석 됨). 주석이 포함되지 않은 사소한 폴리 글 로트를 만들 수 있는지 여부가 궁금하지만 공백이 아닌 문자를 제거하면 즉시 …

6
아나 글롯 폴리그램
직무 각각 1에서 n까지의 고유 한 숫자를 출력하는 n 개의 다른 언어로 n 개의 다른 프로그램으로 재 배열 될 수있는 코드를 작성하십시오. 두 언어가 같을 수는 없지만 주 버전 번호가 다른 한 "같은 언어"의 다른 버전은 별도의 언어로 간주됩니다. 이러한 과제를 해결하기 위해 REPL 환경은 부모 언어와 다르지 않지만 여전히 …

6
모순 폴리 글 로트
글쎄, 모두 Polyglots를 좋아 합니다. 표준 입력 형식으로 두 개의 정수가 제공됩니다 (하드 코딩 없음). 귀하의 작업은 언어 의 최소값과 다른 언어의 두 숫자 사이의 최대 값을 찾아 다음 작업을 수행하는 폴리 글 로트 를 작성하는 것입니다 . 최대 값을 찾는 코드도 합계를 계산해야합니다. 최소값을 찾는 프로그램도 빼기 결과를 계산해야합니다 …

1
정규식 폴리 글 로트 만들기
최소 2 개의 정규 표현식 (또는 버전)에서 작동하는 정규 표현식을 작성하고 실행중인 각 버전 (또는 버전)에서 다른 문자열과 일치시킵니다. 이 챌린지에서 일치시킬 문자열은 아래 나열된 Ubuntu 코드 이름의 첫 단어입니다. 정규식이 목록의 맨 위에서 일치해야합니다. 즉, 3 개 맛에 정규식 작동하는 경우가 일치해야 Warty Hoary하고 Breezy다른 사람을, 그리고. Warty Hoary …

11
제곱 차이를 최대화
의 정수 값의 순열 고려 1에를 N. 예를 들면 다음과 N = 4같습니다. [1, 3, 4, 2] 우리는이 목록이 순환 그러한이라고 생각합니다 1및 2인접으로 처리됩니다. 이러한 목록에 대해 계산할 수있는 수량은 인접 값의 총 제곱 차이입니다. (1-3)² + (3-4)² + (4-2)² + (2-1)² = 10 당신의 임무는 양의 정수가 주어지면이 …
19 code-golf  array-manipulation  permutations  restricted-complexity  code-golf  geometry  grid  code-golf  string  sorting  code-golf  simulation  code-golf  string  code-golf  arithmetic  code-golf  sorting  code-golf  string  code-golf  sorting  code-golf  interpreter  code-golf  number  kolmogorov-complexity  natural-language  conversion  code-golf  random  internet  code-golf  board-game  code-golf  number  sequence  code-golf  math  number  code-challenge  image-processing  classification  test-battery  code-golf  ascii-art  code-golf  tips  code-golf  arithmetic  code-golf  tips  code-golf  tips  javascript  code-golf  array-manipulation  code-golf  ascii-art  code-golf  string  binary  code-golf  arithmetic  linear-algebra  matrix  code-golf  sequence  code-golf  math  number  arithmetic  code-golf  primes  code-golf  math  code-golf  array-manipulation  counting  code-golf  arithmetic  code-golf  quine  code-generation  polyglot  code-golf  math  kolmogorov-complexity  trigonometry  code-golf  string  encryption 

9
메타 폴리 글로 퀘인
PPCG를 사용하는 동안, 나는 quine 문제와 polyglot 문제가 매우 인기가 있음을 알게되었습니다. 또한 문제에 대한 메타 솔루션, 즉 문제에 대한 솔루션 인 프로그램을 생성하는 스크립트는 커뮤니티로부터 많은 긍정적 인 피드백을받는 경향이 있습니다. 따라서이 세 가지 아이디어를 구현하는이 과제를 만들었습니다. 그러면 독자와 코드 골프 애호가는 가능한 한 두 언어 A와 B로 …

4
실제 숫자 계산
정의 양의 정수 n는 실제 숫자입니다 (OEIS 시퀀스 A005153 ). 모든 작은 양의 정수는 별개의 제수의 합으로 표시 될 수 있습니다 n. 예를 들어, 18실제 숫자입니다. 제수는 1, 2, 3, 6, 9 및 18이며 ​​18보다 작은 양의 정수는 다음과 같이 형성 할 수 있습니다. 4 = 1 + 3 5 …
18 code-golf  sequence  number-theory  code-golf  code-challenge  sorting  c  code-golf  restricted-source  code-golf  natural-language  code-golf  tree-traversal  file-system  popularity-contest  pi  polyglot  code-golf  game  sliding-puzzle  code-golf  game  minesweeper  code-challenge  ascii-art  code-challenge  popularity-contest  graphical-output  code-challenge  popularity-contest  hello-world  underhanded  obfuscation  code-golf  code-golf  function  code-golf  code-golf  code-golf  popularity-contest  rosetta-stone  code-golf  primes  code-golf  restricted-source  popularity-contest  number  sequence  code-golf  restricted-source  popularity-contest  graphical-output  code-golf  popularity-contest  code-golf  primes  code-golf  game  code-golf  math  popularity-contest  popularity-contest  code-generation  popularity-contest  code-bowling  code-golf  popularity-contest  underhanded  code-golf  metagolf 

1
더블 퀸으로 골프를 즐기세요!
안녕하세요, 신사 숙녀 여러분. 오늘 밤-코드 도전이 있습니다. 점수의 양 (라소 스테로이드)이 아니라 단순히 그것을 끝낼 수 있는지 (라 젤다)로 정의되는 경쟁 그리고 비교를 위해 바이트의 양 (어 ...하지만 당신은 말했다 ...). 귀하의 과제는 WhiteSpace 와 선택한 다른 언어로 컴파일되는 단일 quine을 작성하는 것 입니다. 두 퀴인은 모두 동일한 출력을 …

30
폴리 글롯에 egaugnaL 추가
이것은 답변 연쇄 질문이므로 모든 답변은 이전 답변의 영향을받습니다. 작업 N 이 질문에 번째 대답은 이전 답변에 존재하는 모든 언어로 실행해야합니다. 순서대로 실행할 필요는 없지만 현재 실행중인 언어의 이름을 반대로 인쇄해야합니다 . 추가 규칙 언어는 두 번 사용할 수 없습니다. 오류없이 프로그램을 실행해야합니다. 오류를 사용하여 언어 이름을 기록하는 것은 허용되지 …

30
사라지는 요소
문자열 S과 인덱스 목록이 제공 되면의 결과를 새 값으로 사용하면서의 각 인덱스에서 요소를 제거하여 X수정 S하십시오 .SS 예를 들어 given S = 'codegolf'및 X = [1, 4, 4, 0, 2], 0 1 2 3 4 5 6 7 | c o d e g o l f | Remove 1 …
17 code-golf  string  array-manipulation  code-golf  string  ascii-art  code-golf  number  sequence  pi  code-golf  number  array-manipulation  code-golf  string  ascii-art  code-golf  math  number  game  code-golf  math  sequence  polynomials  recursion  code-golf  math  number  sequence  number-theory  code-golf  permutations  balanced-string  code-golf  string  ascii-art  integer  code-golf  decision-problem  hexagonal-grid  code-golf  ascii-art  kolmogorov-complexity  code-golf  number  code-golf  matrix  binary-matrix  code-golf  math  statistics  code-golf  string  polyglot  code-golf  random  lost  code-golf  date  path-finding  code-golf  string  code-golf  math  number  arithmetic  number-theory  code-golf  tetris  binary-matrix  code-golf  array-manipulation  sorting  code-golf  number  code-golf  array-manipulation  rubiks-cube  cubically  code-golf  grid  optimization  code-golf  math  function  code-golf  string  quine  code-golf  ascii-art  grid  code-golf  decision-problem  grid  simulation  code-golf  math  sequence  code-golf  path-finding  code-golf  ascii-art  grid  simulation  code-golf  number  whitespace  code-golf  sequence  code-golf  sequence  code-golf  sequence  integer  code-golf  math  game  code-golf  internet  stack-exchange-api  code-golf  sequence  code-golf  internet  stack-exchange-api  code-golf  math  factoring  code-challenge  sequence  polyglot  rosetta-stone  code-golf  string  browser  code-golf  date  code-golf  base-conversion  code-challenge  cops-and-robbers  hello-world  code-golf  cops-and-robbers  hello-world 

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