«arithmetic» 태그된 질문

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

15
안 돼요 2
때로는 직교 좌표 (x,y)를 극좌표 로 변환하는 것이 실제로 어려운 일 (r,phi)입니다. 당신은 계산할 수 있지만 r = sqrt(x^2+y^2)아주 쉽게 각도를 계산할 때, 당신은 종종의 경우 약간의 구별이 필요 phi하기 때문에를 arcsin, arccos그리고 arctan다른 모든 삼각 함수가 공동 도메인 각 단 경간이이 반 원을. 많은 언어에는 직사각형을 극좌표로 변환하거나 최소한 …
18 code-golf  math  geometry  trigonometry  code-golf  number-theory  fibonacci  code-golf  math  sequence  fibonacci  code-golf  string  code-golf  math  graphical-output  geometry  code-golf  string  code-golf  math  geometry  code-golf  math  bitwise  number  popularity-contest  graphical-output  image-processing  fractal  code-golf  number-theory  code-golf  date  multi-threading  code-golf  math  code-golf  math  number  sequence  code-golf  math  number  sequence  arithmetic  code-golf  decision-problem  logic-gates  code-golf  decision-problem  balanced-string  code-golf  math  arithmetic  combinatorics  code-golf  expression-building  code-golf  physics  code-golf  abstract-algebra  code-golf  number  arithmetic  integer  code-golf  ascii-art  number  code-golf  number-theory  primes  code-golf  arithmetic  grid  code-golf  code-golf  sequence  code-golf  kolmogorov-complexity  compression  code-golf  math  number  arithmetic  array-manipulation  code-golf  primes  hexagonal-grid  complex-numbers  code-golf  number  counting  code-golf  math  number  arithmetic 

27
카운트 업, 교체, 반복!
정의 CURR 시퀀스 의 n 번째 배열을 다음과 같이 정의하십시오 . 싱글 톤 배열 A = [n]로 시작하십시오 . 각 정수를 들어 K 에서 , 엔트리 교체 K 와 K 로부터 계산, 자연 숫자 1 을 케이 . 이전 단계 n-1을 더 반복하십시오. 예를 들어, n = 3 이면 배열 …

12
물체의 부피 계산
주어진 치수 세트를 기반으로 객체의 부피를 결정할 수 있습니다. 구의 부피는 단일 숫자, 반경 ( r)을 사용하여 결정할 수 있습니다 실린더의 부피는 반경 ( r)과 높이 ( h)의 두 숫자를 사용하여 결정할 수 있습니다. 상자의 부피는 길이 ( l), 너비 ( w) 및 높이 ( h)의 세 가지 숫자를 사용하여 …

4
압축 요일
요일 목록을 입력하면 목록의 가장 짧은 정렬 된 표현을 출력합니다. 입력 형식은 하나 또는 두 문자 문자열 더 구성된 문자열 Su(일) Mo(월), Tu(등), We, Th, Fr, 및 Sa. 입력이 반드시 정렬 된 순서로 제공 될 필요는 없습니다. 입력을 출력 형식으로 변환하려면 일요일부터 시작하여 요일별로 입력을 정렬하십시오 (예 : ThMoSaSuFrTuWe-> SuMoTuWeThFrSa). …

9
지속 시간 합계
도전 stdin에 나타나는 모든 지속 시간을 합할 수있는 가장 짧은 코드를 작성하십시오. 프로그램은 다음 패턴 중 하나와 일치하는 문자열 만 고려하고 나머지는 무시하십시오. HH:MM:SS (it will be interpreted as HH hours, MM minutes and SS seconds) H:MM:SS (it will be interpreted as H hours, MM minutes and SS seconds) MM:SS …

21
그들로부터 시작
엄격하게 양의 정수 n이 주어지면 다음 단계를 수행하십시오. n 1 s 의 배열 A 를 만듭니다 . A 에 하나의 요소 만있는 경우 종료하십시오. 그렇지 않으면 첫 번째 요소부터 A의 각 쌍을 합계로 바꾸고 A 의 길이가 홀수 인 것처럼 마지막 요소를 그대로 두고이 단계를 반복하십시오. 출력은 첫 단계에서 마지막 …

14
값이 중복 된 모든 (반대) 대각을 발견
도전: 행렬 입력이 주어지면 숫자가 중복 된 대각선 및 대각 대각선의 양을 결정하십시오. 따라서 다음과 같은 행렬이 있다면 : [[aa,ab,ac,ad,ae,af], [ba,bb,bc,bd,be,bf], [ca,cb,cc,cd,ce,cf], [da,db,dc,dd,de,df]] 모든 대각선과 대각 대각선은 다음과 같습니다. [[aa],[ab,ba],[ac,bb,ca],[ad,bc,cb,da],[ae,bd,cc,db],[af,be,cd,dc],[bf,ce,dd],[cf,de],[df], [af],[ae,bf],[ad,be,cf],[ac,bd,ce,df],[ab,bc,cd,de],[aa,bb,cc,dd],[ba,cb,dc],[ca,db],[da]] 예: [[1,2,1,2,1,2], [1,2,3,4,5,6], [6,5,4,3,2,1], [2,1,2,1,2,1]] 모든 대각선과 대각 대각선은 다음과 같습니다. [[1],[2,1],[1,2,6],[2,3,5,2],[1,4,4,1],[2,5,3,2],[6,2,1],[1,2],[1], [2],[1,6],[2,5,1],[1,4,2,1],[2,3,3,2],[1,2,4,1],[1,5,2],[6,1],[2]] 고유 번호 만 포함하는 모든 대각선 …

19
서면 숫자 시퀀스
다음은 Online Encyclopedia of Integer Sequences에 없는 합리적으로 사소한 시퀀스입니다 . 빈 시퀀스로 시작한 다음 각 항을 공백없이 영어로 시퀀스의 모든 자리를 쓰는 데 필요한 문자 수로 정의합니다. * 참고로 영어로 된 모든 (기본 10) 자릿수의 문자 수는 다음과 같습니다. zero one two three four five six seven eight nine …

3
덧셈에 대한 곱셈
두 정수 사이의 곱셈은 일련의 덧셈으로 줄일 수 있습니다. 3 * 5 = 3 + 3 + 3 + 3 + 3 = 5 + 5 + 5 지수 ( a 를 거듭 제곱 b )는 일련의 곱셈으로 줄일 수도 있습니다. 5 ^ 3 = 5 * 5 * 5 …

14
주어진 요인의 곱으로서 최소 정수
최근 프라임 / 프라임 인수 분해 관련 문제가 많이 있었으므로 다른 방식으로 진행하는 것이 재미있을 것이라고 생각했습니다. 주어진: 양의 정수 n, 및 비어 있지 않은 양의 정수 목록 f 전체 프로그램 또는 정수 작은을 찾을 수있는 기능을 작성 i하도록 i >= n하고 i있는 요소의 음이 아닌 정수 능력의 산물입니다 f. …

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 

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 

15
확장 진실 기계
많은 사람들이 프로그래밍 의 진실 기계 가 무엇인지 알고 있습니다. 그러나 우리가 일을 시작하는 시간입니다. 확장 된 진실 기계를 소개합니다! 확장 된 진리 머신은 정수 n와 비어 있지 않은 문자열 두 가지를 입력으로받습니다 s. s n선택적인 후행 공백으로 시간을 출력 합니다. 그러나와 n같으면 프로그램을 수동으로 중지 할 때까지 0출력해야합니다 s. …

13
산술 테이블의 정수
도전: 입력을 기반으로 다음 6 개의 산술 테이블 중 하나의 '정수 숫자'를 출력합니다 .-더하기 ( +); -빼기 ( -); -곱셈 ( *); -구분 ( /); -지수화 ( ^); -모듈로 연산 ( %). 규칙 : 정확히 다음 중 하나입니다 산술 연산의 모든 결과 : 나는 '정수 숫자'로 정의하는 일 0, 1, …

13
역 순열 인덱스
소개 n 개의 요소 를 가진리스트의 사전 식 순열은 0에서 n 까지 번호가 매겨 질 수 있습니다 ! -1. 예를 들어, 3! = 6 순열 (1,2,3)것 (1,2,3), (1,3,2), (2,1,3), (2,3,1), (3,1,2), (3,2,1). 순열이 목록에 적용되면 해당 요소는 순열의 숫자와 동일한 순서로 정렬됩니다. 예를 들어 순열 (2,3,1)을 l = (a,b,c)yields에 적용합니다 …
17 code-golf  combinatorics  permutations  code-golf  image-processing  brainfuck  encode  steganography  code-golf  ascii-art  code-golf  ascii-art  kolmogorov-complexity  code-golf  ascii-art  fibonacci  code-golf  string  code-golf  sorting  popularity-contest  statistics  code-golf  ascii-art  kolmogorov-complexity  code-golf  code-golf  ascii-art  tic-tac-toe  code-golf  string  code-challenge  classification  test-battery  binary-matrix  code-golf  math  arithmetic  code-golf  ascii-art  random  code-golf  string  code-golf  number  binary  bitwise  code-golf  number  arithmetic  code-golf  math  ascii-art  code-golf  string  ascii-art  code-golf  string  ascii-art  code-golf  string  code-golf  counting  code-golf  number  binary  bitwise  decision-problem  code-golf  array-manipulation  code-golf  tips  brain-flak  code-challenge  quine  source-layout  code-generation  code-golf  linear-algebra  matrix  abstract-algebra  binary-matrix  code-golf  string  palindrome  code-golf  puzzle-solver  sudoku  code-golf  ascii-art  code-golf  graphical-output  internet  code-golf  ascii-art  kolmogorov-complexity  code-golf  math  code-golf  clock 

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