«counting» 태그된 질문

일부 특성의 발생 횟수를 계산하는 것과 관련된 문제.

30
똑똑한 사람의 신기루
옛날 옛적에, 나는 Quora 에서이 질문 / 답변을 읽고있었습니다. FizzBuzz 테스트를 통과 할 수없는 컴퓨터 공학 학위를 가진 프로그래머가 있습니까? 이 코드는 명백한 답변으로 제공됩니다 for i in range(1, 100): if i % 3 == 0 and i % 5 == 0: print "FizzBuzz" elif i % 3 == 0: …
29 popularity-contest  code-challenge  word  popularity-contest  string  grid  language-design  code-golf  source-layout  math  fastest-algorithm  assembly  code-golf  json  code-golf  arithmetic  array-manipulation  code-golf  ascii-art  code-golf  crossword  code-golf  string  restricted-complexity  code-golf  ascii-art  kolmogorov-complexity  code-golf  string  decision-problem  balanced-string  syntax  code-golf  grid  puzzle-solver  hexagonal-grid  code-golf  math  number  sequence  code-golf  string  decision-problem  code-golf  cryptography  king-of-the-hill  code-challenge  fastest-code  code-golf  number  code-golf  code-golf  string  code-golf  cryptography  king-of-the-hill  java  code-golf  number-theory  base-conversion  code-golf  code-golf  array-manipulation  code-golf  array-manipulation  sorting  code-challenge  restricted-source  quine  code-golf  tips  python  king-of-the-hill  code-golf  source-layout  fractal  code-golf  tips  game  king-of-the-hill  path-finding  grid  code-golf  kolmogorov-complexity  natural-language  code-golf  tips  python  code-golf  number  arithmetic  sequence  array-manipulation  code-golf  number  combinatorics  random  integer-partitions  code-golf  string  code-golf  vim  comment  code-golf  combinatorics  counting  code-challenge  rosetta-stone  code-golf  combinatorics  sequence  subsequence  code-golf  code-challenge  restricted-source  primes  printable-ascii  popularity-contest  graphical-output  image-processing 

6
도움! 계산기가 오작동합니다!
소개 계산기가 이상하게 작동합니다. 때로는 내가 입력하면가 8표시됩니다 2. 때로는 입력하면 a 6가 표시됩니다 +. 일부 버튼이 섞여 있습니다! 아무도 나를 결정하는 데 도움을 줄 수 있습니까? 도전: 입력 : 올바른 결과 가있는 잘못된 방정식 목록 . 출력 : 교체 된 두 개의 버튼. 예를 들면 다음과 같습니다 . 입력은 …
28 code-golf  number  arithmetic  integer  code-golf  math  number  geometry  code-golf  grid  code-golf  math  number  sequence  primes  code-golf  sequence  kolmogorov-complexity  code-golf  string  ascii-art  alphabet  code-golf  math  sequence  integer  code-golf  number-theory  integer  natural-language  code-golf  date  code-golf  function  code-golf  ascii-art  code-golf  math  number-theory  primes  classification  code-golf  array-manipulation  decision-problem  matrix  code-golf  number  code-golf  code-golf  ascii-art  matrix  code-golf  string  code-golf  sequence  base-conversion  code-golf  code-golf  math  number-theory  combinatorics  integer-partitions  code-golf  integer  binary  base-conversion  code-golf  integer  base-conversion  palindrome  code-golf  code-golf  integer-partitions  code-golf  math  ascii-art  matrix  code-golf  number  sequence  number-theory  matrix  code-golf  interpreter  code-golf  graph-theory  code-golf  ascii-art  decision-problem  code-golf  division  code-golf  array-manipulation  primes  code-golf  string  ascii-art  code-golf  primes  counting  code-golf  matrix  unicode  code-golf  source-layout  code-golf  grammars  code-golf  string  cops-and-robbers  regular-expression  obfuscation  string  code-challenge  cops-and-robbers  regular-expression  code-golf  kolmogorov-complexity  game  card-games  code-golf  kolmogorov-complexity  code-golf  array-manipulation  matrix  code-challenge  cops-and-robbers  code-challenge  decision-problem  cops-and-robbers  code-golf  permutations 

9
"추가 철탑을 건설해야합니다!"
소개 전략 게임 Starcraft 2에는 Terran, Zerg 및 Protoss의 세 가지 "레이스"가 있습니다. 이 도전에서 우리는 프로토스와 상징적 인 문구 인 "추가 철탑을 건설해야합니다!"에 중점을 둘 것입니다. 이 메시지는 군대를 건설하기 위해 공급이 부족할 때 언급됩니다. 따라서 스타 크래프트 커뮤니티를 돕기 위해 플레이어에게 필요한 철탑 수를 정확히 알려주는 프로그램이나 기능을 …

12
7- 세그먼트 차이
나는 여기에있는 대부분의 사람들이 숫자에 대한 7 세그먼트 디스플레이가 무엇인지 알고 있다고 생각합니다. _ _ _ _ _ _ _ _ | | | _| _| |_| |_ |_ | |_| |_| |_| | |_ _| | _| |_| | |_| _| 두 자리 사이 의 7- 세그먼트 차이 (7SD) …

9
번호 사물함!
양의 정수 <100 (1과 99를 포함하여 1과 99 포함)이 주어지면 많은 로커를 출력합니다. 사물함은 다음과 같이 정의됩니다. +----+ | | | | | | | nn | +----+ 여기서, nn한 자리 숫자가있는 경우, 기지국 (10)에서, 그 앞에 0 로커 숫자로 표현된다. 예를 들어, 로커 번호 2는 번호를 표시합니다 02. 사물함은 …

21
지미 다양성의 장면
아시다시피, 최근 에 여러 가지 멋진 지미 도전이 나타 났습니다. 이 도전에서, 당신은 우리의 사랑하는 친구의 곡예 기술에 도전했습니다. 이제 우리에게는 다른 도전이 있습니다. 오늘 당신은 지미의 다른 유형을 식별 할 것입니다! 설명 지미에는 3 가지 종류가 있습니다 : 난쟁이, 곡예사, 보디 빌더. This is dwarf Jimmy: o This is …

28
세고 다시 두 배로
세어 보자 ... 2까지 세고 1 까지 다시 4까지 세고 1 까지 다시 6까지 세고 1까지 ... ... 알았어 ... 이 모든 것을 합치면 다음과 같은 순서를 얻을 수 있습니다 {1,2,1,2,3,4,3,2,1,2,3,4,5,6,5,4,3,2,1,2,3,4,5,6,7,8,7,6,5,4,3,2,1,2,3...} Challenge 1- 인덱싱 (또는 0- 인덱싱)에 정수 n>0가 주어지면 n>=0이 시퀀스의 n 번째 항을 출력합니다 테스트 사례 Input->Output 1->1 …

30
더빙을 함께하세요
4chan에서는 인기있는 게임이 제공됩니다. 사이트의 모든 게시물은 순차적 게시물 ID를받습니다. 영향을 미치거나 결정할 수 없기 때문에 사람들은 일반적으로 처음 몇 자리 숫자 인 자신의 게시물 번호를 추측하려고합니다 (적어도 일부). 다른 버전의 게임을 더빙이라고하며, 목표는 숫자 끝에 반복되는 숫자를 얻는 것입니다 (예 : 1234555). 당신의 임무는 그것을 받아들이고 싶다면 포스트 ID를 …

30
고유하지 않은 요소
부호있는 정수 배열의 고유하지 않은 요소를 찾는 프로그램을 작성하십시오. 결과 배열은 임의의 순서로있을 수 있습니다. 귀하의 답변은 입력이 변수에 저장되는 것으로 가정 d하고 올바른 결과로 평가 되는 스 니펫 일 수 있습니다 . 테스트 사례 각 테스트 케이스는 형식이 한 줄입니다 input => output. 출력의 다른 순열도 유효합니다. [] => …


25
유예 기간에 대한 편집 횟수 계산
SE에서 게시물을 편집하면 5 분의 유예 기간 내에 추가로 편집 한 내용이 병합됩니다. 게시물을 편집 한 시간 목록이 있으면 유예 기간이 아닌 편집 내용을 계산합니다. 분 단위로 수정한다고 가정 해 보겠습니다 [0,3,4,7,9,10,11,12]. 그 결과 [0,7,12]유예 기간에 나머지가 발생하는 시간이 3 번 수정됩니다 . 0: [3,4] 7: [9,10,11] 12: [] 첫 …

10
최단 고유 식별 하위 문자열
문자열 목록이 주어지면, 각 문자열을 목록에있는 다른 문자열의 하위 문자열이 아닌 비어 있지 않은 하위 문자열 중 하나로 대체하십시오. 예 목록을 감안할 때 ["hello","hallo","hola"], "hello"바로 교체해야합니다 "e"이 문자열이 포함되어 있지으로 "hallo"하고 "hola"있으며 가능한 한 짧게이다. "hallo"중 하나에 의해 대체 될 수 "ha"또는 "al"과 "hola"의 의해 "ho", "ol"또는 "la". 규칙 문자열이 …
23 code-golf  string  code-golf  string  code-golf  array-manipulation  code-golf  quine  code-golf  array-manipulation  integer  matrix  classification  code-golf  quine  code-golf  string  matrix  conversion  code-golf  string  number  code-golf  string  code-golf  number  sequence  integer  code-golf  decision-problem  matrix  code-golf  string  code-golf  math  code-golf  math  array-manipulation  combinatorics  code-golf  random  code-golf  code-golf  alphabet  code-golf  python  c  code-golf  base-conversion  code-golf  string  counting  code-challenge  code-generation  fastest-code  code-golf  kolmogorov-complexity  matrix  code-golf  string  code-golf  array-manipulation  decision-problem  random  sudoku  code-golf  chess  code-golf  card-games  encode  code-golf  decision-problem  code-golf  code-golf  math  array-manipulation  matrix 

5
당신의 땅은 얼마나 큽니까?
이 도전에서, 당신은 당신의 땅이 얼마나 큰지를 계산할 것입니다. 당신이 지은 벽이 주어지면, 땅의 크기를 계산하는 프로그램이나 함수를 작성하십시오. "위", "아래", "왼쪽"및 "오른쪽"의 4 가지 방향을 나타내는 4 개의 고유 한 문자 세트를 포함하는 비어 있지 않은 입력 문자열 ^ v < >이 제공됩니다 (이 과제에서 사용 하겠습니다). 180도 회전 …

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 

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