«arithmetic» 태그된 질문

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

24
매우 간단한 그리드 마크
양의 정수 W, H 및 N을 사용하는 프로그램 또는 함수를 작성하십시오. 일반 영어 읽기 순서의 .모든 N 번째 .가으로 대체 되는 WxH 격자를 인쇄하거나 반환하십시오 X. 예를 들어, W = 7, H = 3, N = 3 인 경우 그리드의 너비는 7 자, 높이는 3이며 왼쪽 상단에서 읽는 세 번째 …

30
청키 vs. 스무스 스트링
Peanut ButterN = 13 과 같이 길이가 N 인 문자열을 고려하십시오. 문자열에 N-1 쌍의 인접 문자가 있습니다. 들면 Peanut Butter12 쌍 제이며 Pe, 두 번째는 ea상기 마지막이다 er. 쌍이 대부분 다른 문자 인 경우 문자열의 품질은 다음과 같습니다 chUnky. 이러한 쌍이 대부분 같은 문자 인 경우 문자열의 품질이 매끄 럽습니다 …

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 

5
4 밴드 컬러 코딩 저항의 저항 계산
저항은 일반적으로 저항 으로 Ohms 에서 식별하는 데 사용되는 색상으로 구분 된 밴드 를 갖습니다 . 이 과제에서 우리는 일반적인 4 밴드, 황갈색 축 방향 리드 저항 만 고려할 것입니다. 우리는 그것들을 다음과 같이 표현할 것이다 : xyzt x첫 번째 유효 숫자의 첫 번째 밴드는 어디에 y있고 두 번째 유효 …


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 

30
정사각형 피라미드 숫자
A000330-OEIS 태스크 당신의 작업은 간단하고, 인덱스를 지정해, 그 시퀀스를 생성 i, 그 위치의 값 제곱의 합 내지 0개까지 i어디에 i >= 0. 예: Input: 0 Output: 0 (0^2) Input: 4 Output: 30 (0^2 + 1^2 + 2^2 + 3^2 + 4^2) Input: 5 Output: 55 (0^2 + 1^2 + 2^2 …

12
Terra Mystica : 사이클링 파워
보드 게임 Terra Mystica 는 주요 자원 중 하나 인 힘에 대한 매우 흥미로운 메커니즘을 가지고 있습니다. 각 플레이어는 은행에서 전력을 얻고 소비하는 대신, I, II 및 III으로 표시된 3 개의 "볼 (bowl)"에 분산 된 정확히 12 개의 전력으로 게임을 시작합니다. 그런 다음 전력을 얻고 소비하면 단순히 다음 그릇 사이에서 …


23
끈 거리
도전 모두 소문자 문자열 [a-z]을 입력하면 문자 사이의 총 거리를 출력합니다. 예 Input: golf Distance from g to o : 8 Distance from o to l : 3 Distance from l to f : 6 Output: 17 규칙 금지 된 표준 허점 이것은 코드 골프입니다 -가장 짧은 대답은 바이트입니다. 알파벳은 …

12
제로 배당
도전 설명 모든 양의 정수에 n대해, 그 형태를 갖는 111...10...000수, n즉 모든로 시작하고 모든로 1끝나는 10 진수 가 존재한다 0. 이것은 증명하기가 매우 쉽습니다. 만약 우리 n+1가 111...111(모두) 의 형태 로 다른 수 의 집합을 취한다면 1, 적어도 두 개는 n(비둘기 구멍 원리에 따라) 나눈 후 같은 나머지를 줄 것입니다 …

30
간단한 정수 연산 계산기
간단한 정수 연산 스크립트 가능 계산기를 구현하십시오. 개념 누산기는 0에서 시작하여 연산이 수행됩니다. 프로그램이 끝나면 누산기의 값이 출력됩니다. 운영 : +1누산기에 추가 -1누산기에서 빼기 * 누산기에 2 / 누산기를 다음과 같이 나눕니다. 2 샘플 스크립트 입력 ++**--/은 출력을 제공해야합니다 3. 구현 예 def calc(s) i = 0 s.chars.each do |o| …

30
디지털 합이 입력 인 입력보다 가장 작은 숫자 찾기
"디지털 합계"는 숫자의 모든 숫자의 합계를 나타냅니다. 예를 들면, 디지털 합 1324이다 10때문에 1+3+2+4 = 10. 문제는 디지털 합이 입력 인 입력보다 가장 작은 숫자를 계산하는 프로그램 / 기능을 작성하는 것입니다. 연습 예제 예를 들어, 숫자 9를 입력으로 사용하십시오. 9 = 1+8 -> 18 9 = 2+7 -> 27 9 …

23
디지털 삼각형으로 요약
글쎄요, 정말로 요약하십시오. 비어 있지 않은 십진 정수 (0-9) 목록을 가져 와서 맨 아래에있는 입력 목록과 함께 아래로 향하는 "삼각형"을 출력하는 프로그램 또는 함수를 작성하십시오. 그 위에 모듈로 10. 예를 들어, 입력 [7, 5, 0, 9]에 출력이 있습니다 7 5 0 9 2 5 9 7 4 1 때문에이 2있다 …


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