«logic» 태그된 질문

수학적 논리와 부울 대수와 관련된 문제.

30
부울 배열 반전
좋은 간단한 것 입력 부울 배열 (또는 허용 가능한 대안)이 주어지면 배열의 길이가 32 요소를 넘지 않는다고 가정 할 수 있습니다. [false, false, true, false, false] 산출 배열의 모든 요소를 ​​뒤집어 출력합니다. [true, true, false, true, true] 규칙 당신은 전체 프로그램이나 함수를 작성할 수 있습니다 표준 허점 적용 언어별로 가장 …


2
진리표가 주어지면 그것을 만족시키는 Stackylogic 프로그램을 출력하십시오.
Stackylogic은 이전 과제에서 작성한 프로그래밍 언어입니다 : Run Stackylogic . 자세한 내용과 예를 보려면 해당 게시물을 읽으십시오. Stackylogic 소요 0의과 1입력의 단일 출력 0 또는 1시 완료. 프로그램은 문자 만 포함 하는 행과 한 행의 끝에 01?정확히 한 <행으로 구성됩니다. 라인은 비워 둘 수 없습니다 수 있으며, 함께 라인은 <적어도 …

2
논리 게이트를 사용한 Gerrymandering
대다수 함수는 3 개의 부울 입력을 가져 와서 가장 일반적인 부울 함수입니다. 예를 들어 maj(x,y,z)대다수 함수가 Ttrue이고 true를 F나타내는 경우 : maj(T,T,T) = T maj(T,T,F) = T maj(T,F,F) = F maj(F,F,F) = F 이 질문은 부울 함수를 대다수 함수의 구성으로 작성하는 것과 관련이 있습니다. 대다수 함수의 5 진 구성 예는 …

7
진동 평등
on [l, r]에서 시작하여 시간 단위당 하나의 단위 속도로 두 개의 정수 포인트 사이에서 진동하는 객체가 있습니다. 당신은 가정 할 수 있습니다 . 예를 들어 객체가 진동 하면 다음과 같은 결과가 나타납니다.lt=0l < r[3, 6] t=0 -> 3 t=1 -> 4 t=2 -> 5 t=3 -> 6 t=4 -> 5 …
15 code-golf  array-manipulation  decision-problem  code-golf  math  number-theory  palindrome  integer-partitions  code-golf  math  decision-problem  geometry  code-golf  string  random  code-golf  ascii-art  code-golf  kolmogorov-complexity  primes  code-golf  kolmogorov-complexity  code-golf  graphical-output  code-golf  number-theory  primes  integer  factoring  code-golf  sequence  array-manipulation  integer  code-golf  array-manipulation  matrix  code-golf  sequence  binary  code-golf  game  cellular-automata  game-of-life  binary-matrix  code-golf  string  ascii-art  code-golf  random  generation  logic  code-golf  string  code-golf  code-golf  sequence  array-manipulation  random  apl  code-golf  code-golf  sequence  primes  code-golf  math  sequence  integer  code-golf  number  arithmetic  array-manipulation  decision-problem  code-golf  ascii-art  number  code-golf  restricted-source  quine  code-golf  chess  board-game  code-golf  math  sequence  code-golf  number  sequence  kolmogorov-complexity  code-golf  number  sequence  arithmetic  code-golf  math  number  alphabet  code-golf  ascii-art  classification  statistics  apl  code-golf  array-manipulation  matrix  code-golf  string  kolmogorov-complexity  code-golf  sequence  binary  base-conversion  binary-matrix  code-golf  string  classification  code-golf  tips  python  code-golf  combinatorics  binary  subsequence  restricted-time  code-golf  number  number-theory  code-golf  math  number  complex-numbers  code-golf  string  code-golf  string  code-golf  string  random  game  king-of-the-hill  python  code-golf  number  sequence  code-golf  number  sequence  code-golf  code-golf  math  number  array-manipulation  code-golf  array-manipulation  decision-problem  code-golf  string  code-golf  sequence  integer 

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 

3
수수께끼!
소개 : 조합 논리 조합 논리 (CL)는 기본적으로 기능인 결합 자라는 것을 기반 으로합니다. 두 가지 기본 "내장"콤비 네이터가 S있으며 K, 이에 대해서는 나중에 설명합니다. 왼쪽 연관성 CL은 왼쪽 연관 입니다. 즉, 포함 된 다른 괄호 쌍의 가장 왼쪽에있는 괄호 (물건 포함)는 제거 할 수 있습니다. 예를 들면 다음과 같습니다. …

2
Kipple을 해석하십시오!
소개 Kipple 은 2003 년 3 월 Rune Berg가 발명 한 스택 기반의 난해한 프로그래밍 언어입니다. Kipple에는 27 개의 스택, 4 개의 연산자 및 제어 구조가 있습니다. 스택 스택은 이름이 지정됩니다 a- z및 32 비트 부호있는 정수가 포함되어 있습니다. @숫자를보다 편리하게 출력 할 수 있도록 특수 스택이 있습니다 . 숫자를로 …
12 code-golf  interpreter  code-golf  string  code-golf  math  string  code-golf  ascii-art  path-finding  code-golf  string  ascii-art  code-golf  interpreter  binary  logic-gates  logic  code-golf  ascii-art  code-golf  graph-theory  code-golf  string  code-golf  number  sorting  code-golf  number-theory  random  cryptography  polynomials  code-golf  number  code-golf  math  number  sequence  code-golf  quine  code-generation  code-golf  arithmetic  set-theory  code-golf  sequence  code-golf  code-golf  string  math  fastest-code  optimization  code-golf  code-golf  internet  stack-exchange-api  code-golf  array-manipulation  code-golf  string  internet  string  code-challenge  internet  test-battery  code-golf  math  pi  code-golf  arithmetic  primes  code-golf  array-manipulation  code-golf  string  code-golf  string  palindrome  code-golf  sequence  number-theory  fastest-algorithm  code-golf  math  number  base-conversion  code-golf  number-theory  sorting  subsequence  search  code-golf  permutations  code-challenge  popularity-contest  code-generation 

3
논리식을 결합 형 정규 형식으로 변환
골: 명제 논리 (이후 논리식 또는 식이 라고 함) 의 공식을 취해 그 공식을 결부 정규 형식으로 출력 하는 완전한 프로그램 또는 함수를 작성하십시오 . 두 가지 상수는, ⊤및 ⊥단항 연산자, 참과 거짓을 나타내는 ¬부정을 나타내는 이진 연산자 ⇒, ⇔, ∧, 그리고 ∨의미, 동등한 결합 및 분리를 나타내는 각각 어떤 …
10 code-golf  math  logic 
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.