«number» 태그된 질문

이 문제는 사용, 조작, 입력으로 수락 또는 숫자 값을 출력하여 해결하기위한 것입니다.

10
매우 복합적인 숫자
매우 합성 수는 임의의 작은 양의 정수 약수 가지고 이상을 갖는 양의 정수이다. 이다 OEIS 순서 A002182 . 처음 20 개의 용어는 1, 2, 4, 6, 12, 24, 36, 48, 60, 120, 180, 240, 360, 720, 840, 1260, 1680, 2520, 5040, 7560 예를 들어, 43 개의 제수 (즉, 1, 2, …

30
전기 콘센트
이것은 NCPC 2005 의 문제입니다 . Roy에는 단 하나의 전기 콘센트가있는 아파트가 있지만 전원 스트립이 많이 있습니다. 그가 가지고있는 멀티탭을 사용할 수있는 최대 콘센트 수를 계산하십시오. 파워 스트립 당 콘센트 수는 입력으로 제공됩니다. 스트립의 출구 수가 각각 피1, p2, … , p엔p1,p2,…,pnp_1, p_2, \dots, p_n 콘센트의 수는 .1 − n …


21
앞으로 다른 길
정수의 목록 주어진 생산 앞으로의 차이 지정된 주문 / 깊이를. 정수 목록 : (10, 18, -12, 4, 8, -3, -5, 67, 9, 14) 다양한 주문 / 깊이에서의 차액 차이는 다음과 같습니다. 0 10, 18, -12, 4, 8, -3, -5, 67, 9, 14 1 8, -30, 16, 4, -11, -2, 72, …

14
새해 재활용
2015 년의 좋은 해결책은 더 지속 가능하게 사는 것입니다. 재활용부터 시작하겠습니다. 재활용 코드, 즉! 당신의 작업은 2015후행 줄 바꿈이 있거나없는 STDOUT에 번호를 인쇄하는 것입니다 (그리고 그 만 ). 그러나 PPCG에서 일부 오래된 코드를 재활용 하여 그렇게해야합니다 . 작동 방식은 다음과 같습니다. 2014-12-16 00 : 00 : 00Z (샌드 박스에 게시 …

8
프랑스어로 숫자 철자
숫자를 영어로 숫자로 변환하는 데 어려움이 있었지만 너무 간단했습니다. 숫자 0–100이 주어지면 해당 숫자를 프랑스어로 출력해야합니다. 프랑스의 숫자 체계는 영어와 비교할 때 더 복잡한 논리를 가지고 있습니다. 숫자 숫자 --------------- 0 제로 (강세 표시) 1 개 2 개 3 개 트로이 4 쿼트 5 cinq 6 6 9 월 7 …

30
전화 번호의 문자
문제: 예를 들어, 사람들이 특수 전화 번호를 입력 할 수있는 새 전화를 만들고 있으며 , 이전 1-800-program전화 번호와 같이 사용 가능한 전화 번호로 자동 변환됩니다 1-800-7764726. 숫자, 문자 및 대시가있는 길이가 있으면 프로그램이 문자열을 수신하고 모든 문자를 해당 숫자로 변환합니다. 다음은 참조 용 키패드입니다. 규칙 : 프로그램은 문자열을 받게됩니다 그것을 …
23 code-golf  number 

27
시퀀스 재정렬
소개 다음 순서 (음수가 아닌 정수)를 살펴 보겠습니다. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, ... 예를 들어 처음 세 숫자를 봅시다 . 이들은입니다 0, 1, 2. 이 순서에 사용 된 숫자는 6 가지 방법 으로 주문할 수 있습니다 . 012 120 …

23
ASCII 아트 팔각형
입력 integer가 주어지면 문자 n > 1로 구성된 측면 길이를 가진 ASCII 아트 팔각형을 출력하십시오 n. 아래 예를 참조하십시오. n=2 ## # # # # ## n=3 ### # # # # # # # # # # ### n=4 #### # # # # # # # # # …
22 code-golf  ascii-art  code-golf  geometry  code-golf  balanced-string  code-golf  cops-and-robbers  code-challenge  cops-and-robbers  code-golf  code-golf  random  cryptography  code-golf  array-manipulation  number  code-challenge  integer  code-golf  math  integer  code-golf  math  math  parsing  image-processing  test-battery  math  number  combinatorics  fastest-code  code-golf  code-golf  math  number-theory  rational-numbers  polynomials  code-golf  math  geometry  code-golf  code-golf  number-theory  primes  factoring  code-golf  restricted-source  code-golf  string  decision-problem  counting  code-golf  math  sequence  fibonacci  code-golf  array-manipulation  counting  code-golf  array-manipulation  number-theory  code-golf  array-manipulation  code-golf  random  code-golf  string  hexadecimal  code-golf  string  code-challenge  sorting  code-golf  number  floating-point  code-golf  sorting  code-golf  decision-problem  fibonacci  code-golf  number  combinatorics  code-golf  string  code-golf  math  code-golf  electrical-engineering  code-golf  javascript  code-golf  base-conversion  code-golf  array-manipulation  matrix  binary-matrix  code-golf  kolmogorov-complexity  python  perl  ruby  code-golf  number  code-golf  optimization  integer-partitions  code-golf  string  code-golf  ascii-art 

28
간단한 단어 래퍼 만들기
(참고 : 이것은 처음으로 코드 골프 질문이지만, 내가 알 수있는 한, 아무도 정확히 이것을하지 않았으므로 좋을 것입니다.) 당신의 임무는 문자열 s과 정수 를 취하고 n그 텍스트를 여러 줄로 감싸서 반환하거나 출력 하는 프로그램이나 함수를 만드는 것 입니다. 각 단어는 한 줄에 있어야합니다. 즉, 단어가 중간에 쪼개지지 않습니다. 각 줄은 더 …
22 code-golf  string  code-golf  string  parsing  apl  math  primes  integer  fastest-code  code-golf  math  primes  integer  code-golf  ascii-art  kolmogorov-complexity  code-golf  string  array-manipulation  code-golf  number  code-golf  sequence  code-golf  math  arithmetic  code-golf  date  conversion  code-golf  geometry  combinatorics  grid  code-golf  string  code-golf  counting  java  code-golf  chess  code-golf  path-finding  conversion  atomic-code-golf  logic-gates  code-golf  fibonacci  code-golf  ascii-art  fractal  code-golf  quine  code-golf  string  code-golf  array-manipulation  decision-problem  code-golf  quine  code-golf  code-challenge  array-manipulation  code-challenge  word-search  code-golf  binary  conversion  code-golf  code-golf  restricted-source  code-golf  kolmogorov-complexity  restricted-source  code-golf  kolmogorov-complexity  random  animation 

24
ogl-edocf 도전
입력 범위의 ASCII 문자로 구성된 비어 있지 않은 섞인 문자열 입니다.[ 32..126 ][32..126][32..126] 산출 입력 문자열에 연속적인 회전을 적용하여 출력을 얻습니다. [a-zA-Z]입력 문자열의 각 문자 ( )에 대해 왼쪽에서 오른쪽으로 : 문자가 대문자 인 경우 모든 문자를 왼쪽으로 한 위치 씩 회전 문자가 소문자 인 경우 오른쪽 앞의 한 위치 …
22 code-golf  string  code-golf  string  code-golf  string  parsing  brainfuck  code-challenge  python  hello-world  error-message  code-golf  string  code-golf  number  integer  counting  subsequence  code-golf  string  cipher  code-golf  array-manipulation  arithmetic  integer  matrix  code-golf  math  sequence  code-golf  restricted-source  pi  popularity-contest  cops-and-robbers  polyglot  popularity-contest  cops-and-robbers  polyglot  code-golf  file-system  king-of-the-hill  code-golf  number  sequence  integer  rational-numbers  string  code-challenge  source-layout  code-golf  ascii-art  king-of-the-hill  code-golf  array-manipulation  sorting  code-golf  string  code-golf  restricted-source  source-layout  tips  math  code-challenge  permutations  logic-gates  code-golf  number  random  integer  code-golf  math  code-golf  math  number  decision-problem  king-of-the-hill  python  board-game  code-challenge  brainfuck  busy-beaver  code-golf  number  cops-and-robbers  polyglot  obfuscation  answer-chaining  code-golf  number  integer  conversion  code-golf  string  parsing  code-golf  ascii-art  number  king-of-the-hill  javascript  code-golf  source-layout  radiation-hardening  code-golf  array-manipulation  matrix  code-golf  string  graph-theory  code-golf  array-manipulation  decision-problem  code-golf  string  ascii-art  code-golf  string  code-golf  array-manipulation 

23
최소 동력 뿌리
숫자 n 의 최소 전력 반복 은 다음과 같이 정의됩니다.nnn MPI(n):=nmin(digits(n))MPI(n):=nmin(digits(n))\text{MPI}(n):=n^{\text{min}(\text{digits}(n))} 즉, nnn 은 n 의 가장 낮은 자릿수로 nnn . 예를 들어, MPI(32)=322=1024MPI(32)=322=1024\text{MPI}(32)=32^2=1024 및 MPI(1234)=12341=1234MPI(1234)=12341=1234\text{MPI}(1234)=1234^1=1234 입니다. 숫자 n 의 최소 제곱근 은 고정 점이 발견 될 때까지 MPI 를 반복적으로 적용하여 얻은 수로 정의됩니다 . 다음은 1에서 25 사이의 …

18
숫자의 RTA (Reverse-Then-Add) 근
RTA (reverse-then-add) 시퀀스는 숫자를 역방향에 추가하고 결과에 대해 프로세스를 반복하여 얻은 시퀀스입니다. 예를 들어 5+5=10⇒10+01=11⇒11+11=22⇒22+22=44⇒ ...5+5=10⇒10+01=11⇒11+11=22⇒22+22=44⇒ ... 5 + 5 = 10 \Rightarrow 10 + 01 = 11 \Rightarrow 11 + 11 = 22 \Rightarrow 22 + 22 = 44 \Rightarrow\text{ }... 따라서, 5의 RTA 서열은 10, 11, 22, 44, …
22 code-golf  math  number 

10
원자 이온화 에너지 압축
이것은 다른 유형의 압축 문제입니다. 일반적인 kolmogorov 복잡성 문제에서는 목록을 정확하게 다시 작성해야합니다. 여기에서 원하는 방식으로 값을 반올림 할 수 있습니다. 캐치는 무엇입니까? 당신의 점수는 당신의 결과가 얼마나 잘못되었는지에 따라 불이익을받습니다. 이 질문의 맨 아래에는 첫 번째 108 요소에 대한 첫 번째 이온화 에너지 목록이 있습니다. 프로그램 실행시이 목록의 합리적으로 …

12
삼항 삼각형
이것의 아이디어는 주로 BIO 2017 q1 에서 나온 것 입니다. 많은 사람들이 그것을 좋아하는 것처럼 보이기 때문에 이진 시퀀스 도전 에서이 도전을 게시 할 아이디어를 얻었 습니다. 또한 이것은 샌드 박스에 게시하지 않고 게시 한 첫 번째 과제입니다. 아무도 좋아하지 않으면 삭제하겠습니다. 규칙 3 진 (기수 3)으로 일련의 자릿수를 취하십시오. …

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