«arithmetic» 태그된 질문

초등학교 산술과 관련된 도전.

8
전 방향 계산기 만들기
영감. 역. 주어진 옴니 픽스 표현식을 평가하십시오. Omnifix는 일반적인 수학의 접두사 표기법과 비슷하지만 인수를 둘러싼 각 기호의 추가 사본이 있습니다. 외부 기호는 괄호 대신 사용되므로 추가 괄호가 필요하지 않습니다. 귀하 -0-n-의 언어에 알맞은 범위 내에서 덧셈, 뺄셈, 곱셈, 나눗셈 및 양의 실수 (쓰기 가능 )를 지원해야합니다. 플러스와 마이너스해야 +하고 -,하지만 …

30
백분율을 찾으십시오
우리는 한동안 훌륭하고 쉬운 과제를 겪지 않았으므로 여기로갑니다. 각각 보다 큰 정수 목록 과 입력으로서 색인 이 주어지면, 목록의 총계의 주어진 색인에서 항목의 백분율을 출력하십시오.000 플로트 / 정수를 자연스럽게 표현한 언어 (단일, 10 진수, 교회 숫자 등)로 출력해야합니다. 당신이 어떤 방법으로 출력을 반올림하도록 선택하는 경우, 그것은 (때 합리적인. 최소 2 …

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 

19
드문 요인 번호
채팅 메시지를 기반으로 도전 입력 숫자가 주어지면 n > 9선행 0을 무시하고 역수를 구성하십시오. 그런 다음 숫자와 그 반대의 공통점 이없는 모든 주요 요인의 목록을 구성하십시오 . 해당 요인을 곱하여 입력 의 흔하지 않은 요인 번호 를 만듭니다 . 경우 : 또는, 다른 방법을 넣어 rev(n)나타냅니다 정수의 진수 반전 n의 …

30
앵무새 프로그램 만들기
입력이 주어지면 그 입력 다음에 줄 바꿈이 끝없이 출력됩니다. 입력은 인쇄 가능한 ASCII 문자 ( 0x20-0x7E)와 줄 바꿈 ( 0x0A) 만으로 구성된 문자열 입니다. 입력이 길이 0이면 끝없이 줄 바꿈을 출력합니다. 이것은 코드 골프 이므로 각 언어에서 가장 적은 바이트 가 이깁니다!
15 code-golf  string  sequence  combinatorics  fastest-code  number  code-challenge  restricted-source  rosetta-stone  code-golf  arithmetic  decision-problem  integer  factorial  code-golf  arithmetic  decision-problem  integer  bitwise  code-golf  kolmogorov-complexity  code-golf  tips  vim  code-golf  quine  code-generation  code-golf  string  restricted-source  code-golf  string  random  unicode  code-golf  audio  code-golf  ascii-art  code-golf  decision-problem  code-golf  puzzle-solver  code-golf  restricted-source  code-golf  kolmogorov-complexity  permutations  hexagonal-grid  code-golf  string  math  combinatorics  fastest-code  code-golf  restricted-source  code-golf  string  code-golf  arithmetic  code-golf  math  number  code-golf  string  decision-problem  balanced-string  code-golf  binary  code-golf  string  number  code-challenge  restricted-source  code-golf  ascii-art  printable-ascii  interactive  code-golf  string  ascii-art  code-challenge  restricted-source  source-layout  code-golf  arithmetic  tips  functional-programming  golfing-language  code-golf  binary  encryption 

7
거의 완벽한 번호판 감지
참고 : 이것은 @Willbeing 이이 질문에서 영감을 얻었습니다 . 작업은 특정 길이의 완벽한 판 수를 계산하는 것이지만 약간 다릅니다. 우리는 텍스트가 다음 조건을 만족 하는 완벽한 번호판 이라고 부릅니다 . 대문자 ( [A-Z]) 또는 숫자 ( [0-9]) 일 수있는 문자로 구성됩니다. 영어 알파벳에서 문자의 위치를 ​​합하면 1- 인덱스 (예 A=1,B=2,...,Z=26:)는 …

2
최소한의 성냥개비로 수학 만들기
메타 배경 이것은 Puzzling에 대한 질문 으로 설정되었으며 즉각적인 반응은 "글쎄, 누군가는 컴퓨터로 그것을 해결할 것입니다". 이를 해결하기위한 프로그램이 얼마나 복잡해야하는지에 대한 논쟁이있었습니다. "이 프로그램은 얼마나 복잡해야 합니까? "는 code-golf 의 정의와 거의 비슷 하므로 PPCG가 문제를 해결할 수 있을까요? 배경 성냥 방정식 의 숫자 및 작업자가 테이블 상에 배치하여 …

22
적은 숫자의 사단
양의 정수에 걸리는 프로그램이나 함수를 작성 a, b및 c, 및 인쇄 또는 반환 a/b에 c소수점, + 작업을 사용하여 - 양의 정수에 [는 조절 추가, 빼기, 곱하기, 나누기] * / % : 당신은 모두를 사용할 수 귀하의 언어는 부동 소수점 숫자를 허용하지만 허용하지는 않습니다. a, b, c의 범위는 사용자 언어에서 부호없는 …

3
스택 기반 언어 토큰 화
나는 작업을했습니다 다른 호출 스택 기반의 골프 언어 Stackgoat . 이 과제에서는 Stackgoat (또는 실제로는 일반적인 스택 기반 언어) 용 Tokenizer를 작성하게됩니다. 예 "PPCG"23+ ["PPCG", '23', '+'] 'a "bc" + ['"a"', '"bc"', '+'] 12 34+-"abc\"de'fg\\" ['12', '34', '+', '-', '"abc\"de'fg\\"'] "foo ['"foo"'] (empty input) [] ' "" ['" "', '""'] …
15 code-golf  parsing  code-golf  hexagonal-grid  code-golf  string  code-golf  string  code-golf  combinatorics  code-golf  ascii-art  code-golf  string  game  counting  code-golf  arithmetic  complex-numbers  code-golf  string  code-golf  decision-problem  hexagonal-grid  code-golf  string  sequence  code-golf  number  arithmetic  code-golf  ascii-art  code-golf  ascii-art  code-golf  string  arithmetic  code-golf  number  simulation  code-golf  number  arithmetic  code-golf  string  sequence  unicode  code-golf  string  ascii-art  balanced-string  code-golf  number  clock  code-golf  ascii-art  number  code-golf  math  number  sequence  code-golf  string  ascii-art  balanced-string  code-golf  math  string  popularity-contest  graphical-output  image-processing  code-golf  string  permutations  code-golf  string  code-golf  random  code-golf  string  cryptography  palindrome  code-golf  chess  code-golf  math  array-manipulation  topology  code-golf  math  sequence  code-golf  keyboard  classification  code-golf  string  sequence  code-golf  natural-language  code-golf  math  number  sequence  sorting  code-golf  sequence  combinatorics  grid  tic-tac-toe  code-golf  geometry  code-golf  number  restricted-source  new-years  expression-building 

16
간단한 작업 해결 3 회
한 언어로 3 개의 프로그램 및 / 또는 기능을 작성해야합니다. 이러한 프로그램은 모두 동일한 작업을 해결해야하지만 서로 다른 (그러나 유효한) 출력을 제공해야합니다. (즉, 모든 프로그램 쌍마다 서로 다른 (그러나 유효한) 출력 번호 세트를 생성하는 입력이어야합니다.) 작업 n1보다 큰 정수가 제공됩니다. n 별개의 양의 정수를 반환하거나 출력 해야하며 그 중 어느 …

7
각도의 평균
이야기, 또는 왜 우리가 이것을하고 있는지. 없음 이 운동은 스티븐 호킹 이 아니라면 완전히 무의미 합니다. 도전 각도 목록이 주어지면 해당 각도의 평균을 찾으십시오. 예를 들어 평균 91도 및 -91 도는 180 도입니다. 이를 위해 프로그램이나 기능을 사용할 수 있습니다. 입력 각도 측정 값을 나타내는 차수 값 목록입니다. 그것들은 정수라고 …

5
가장 가까운 시계 바늘 찾기
도전 자정을지나 몇 초가 지나면 가능한 한 적은 바이트를 사용하여 시계 모드에서 두 손 사이의 가장 작은 각도를 출력하십시오. 초 수는 항상 86400 미만이라고 가정 할 수 있습니다. 각도는도 또는 라디안으로 표시 될 수 있습니다. 참조 솔루션은 http://ideone.com/eVdgC0에 있습니다. 테스트 사례 (도 단위의 결과) 0 -> 0 60 -> 0.5 …

30
사업부 구현
정수 나누기를 처리하는 자주 사용하는 언어로 나누기 알고리즘을 구현하십시오. 양수 만 처리하면되지만 음수와 혼합 부호 나누기를 처리하는 경우 보너스 포인트도 필요합니다. 분수 결과의 경우 결과가 반올림됩니다. 프로그램 /에 \, div또는 유사한 연산자가 포함되어 있지 않을 수 있습니다 . 언어의 고유 분할 기능을 사용하지 않는 루틴이어야합니다. 최대 32 비트 나누기 만 …

30
두 단계 앞으로 그리고 한 단계 뒤로
목적지에서 10 걸음 떨어진 곳에 있다고 가정하겠습니다. 나는 "두 걸음 앞으로 한 걸음 뒤로"라는 옛말에 따라 거기를 걷습니다. 목적지에 정확히 서있을 때까지 한 걸음 뒤로 두 단계 앞으로 나아갑니다. (여기에는 목적지를 건너서 돌아 오는 것이 포함될 수 있습니다). 몇 걸음 걸었습니까? 물론, 나는 10 걸음 떨어져 있지 않을 수도 있습니다. …

5
이진 컨벌루션
이진 컨벌루션은 숫자로 설명되며 숫자 M에 적용됩니다 N. 의 이진 표현에서 각 비트에 대해 M, 비트가 설정되면 ( 1), 출력의 대응하는 비트는 대응하는 비트에 인접한 2 개의 비트를 XOR 링함으로써 N(필요할 때 랩핑 ) 주어진다 . 비트가 설정되지 않은 경우 ( 0), 출력의 해당 비트는 해당 비트 in로 제공 N됩니다. …
15 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 

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