Câu hỏi được gắn thẻ «combinatorics»

Đối với những thách thức liên quan đến tổ hợp.

20
Phân hủy một con số!
Nhiệm vụ của bạn là phân tách một số bằng định dạng bên dưới. Điều này tương tự như chuyển đổi cơ sở, ngoại trừ việc thay vì liệt kê digitstrong cơ sở, bạn liệt kê danh sách values, sao cho danh sách thêm vào đầu vào. Nếu cơ sở …
16 code-golf  number  sequence  number-theory  base-conversion  code-golf  bitwise  hashing  code-golf  string  ascii-art  whitespace  code-golf  math  code-golf  code-golf  image-processing  counting  code-golf  math  arithmetic  checksum  code-golf  code-golf  math  arithmetic  number-theory  code-golf  array-manipulation  random  code-golf  string  code-golf  math  ascii-art  base-conversion  code-golf  graphical-output  geometry  3d  code-golf  math  linear-algebra  matrix  code-golf  math  number  sequence  code-golf  array-manipulation  code-golf  math  matrix  linear-algebra  code-golf  number  sequence  counting  code-golf  string  code-golf  string  restricted-source  quine  sorting  code-golf  string  geometry  code-golf  string  code-golf  networking  code-golf  base-conversion  code-golf  math  matrix  code-golf  arithmetic  linear-algebra  matrix  code-golf  number  arithmetic  grid  code-golf  number  source-layout  code-golf  string  bitwise  checksum  code-golf  array-manipulation  code-golf  string  probability-theory  code-golf  tips  code-golf  sequence  code-golf  string  math  sequence  calculus  code-golf  string  palindrome  bioinformatics  code-golf  math  combinatorics  counting  permutations  code-golf  parsing  logic-gates  code-golf  arithmetic  number-theory  combinatorics  code-golf  math  sequence  polynomials  integer  code-golf  string  ascii-art  chess  code-golf  string  code-golf  number  code-golf  string  ascii-art  parsing  code-golf  code-golf  number  natural-language  conversion  code-golf  arithmetic  code-golf  string  code-golf  ascii-art  decision-problem 

8
Vẽ một dãy các dãy núi
Lấy cảm hứng từ ốp lát Fibino domino , vấn đề này là về việc tạo ra nghệ thuật ASCII đại diện cho một chuỗi tổ hợp nổi tiếng khác. Một sơ đồ núi n bước là một bản vẽ của một dãy núi, sử dụng chính xác n '/' …

4
Hình dung sự phân chia dài với nghệ thuật ASCII
Viết một chương trình trực quan hóa sự phân chia dài với nghệ thuật ASCII. Đầu vào bao gồm hai số nguyên, tử số và mẫu số, sử dụng định dạng đầu vào mà bạn chọn. Ví dụ: 1234 56: 22 ---- 56|1234 112 --- 114 112 --- 2 1002012 …

7
Bình đẳng dao động
Chúng ta có các đối tượng dao động giữa hai điểm nguyên [l, r], với tốc độ một đơn vị trên một đơn vị thời gian, bắt đầu từ lngày t=0. Bạn có thể giả định l < r. Ví dụ: nếu một đối tượng dao động [3, 6], thì …
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 

30
Tạo một chương trình vẹt
Đưa ra một đầu vào, đầu ra mà đầu vào theo sau là một dòng mới vô tận. Đầu vào sẽ là một chuỗi chỉ bao gồm các ký tự ASCII có thể in ( 0x20-0x7E) và dòng mới ( 0x0A). Nếu đầu vào là 0, đầu ra mới vô …
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 

3
Trình tạo thẻ Dobble / SpotIt
Giới thiệu Dobble / SpotIt là một trò chơi bài, trong đó mọi người phải phát hiện cùng một biểu tượng trên cặp thẻ trong thời gian ngắn nhất, chỉ ra nó và chuyển sang cặp tiếp theo. Mỗi thẻ có nhiều ký hiệu (8 trong phiên bản bình thường), …


3
Mã hóa ngôn ngữ dựa trên ngăn xếp
Tôi đã làm việc trên một ngôn ngữ chơi gôn dựa trên ngăn xếp khác gọi là Stackgoat . Trong thử thách này, bạn sẽ viết Tokenizer cho Stackgoat (hoặc thực sự là bất kỳ ngôn ngữ dựa trên ngăn xếp chung nào). Ví dụ "PPCG"23+ ["PPCG", '23', '+'] 'a …
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 


11
Tìm các bộ tiền
Tôi rất thích đọc trang web này; đây là câu hỏi đầu tiên của tôi Chỉnh sửa được chào đón. Cho các số nguyên dương n và m , tính toán tất cả các phân vùng có thứ tự của m thành chính xác n phần nguyên dương và in …

4
Đặt 40 que
Chúng tôi có 40 thanh có cùng chiều rộng nhưng chiều cao khác nhau. Có bao nhiêu cách sắp xếp có thể đặt chúng cạnh nhau để khi chúng ta nhìn từ bên phải chúng ta thấy 10 cây gậy và khi chúng ta nhìn từ bên trái, chúng ta …

6
Phân rã hoán vị thành chu kỳ
Có một định lý nổi tiếng rằng bất kỳ hoán vị nào cũng có thể bị phân hủy thành một tập hợp các chu kỳ . Công việc của bạn là viết chương trình ngắn nhất có thể để làm như vậy. Đầu vào: Hai dòng. Số thứ nhất chứa …

5
Kết luận nhị phân
Một tích chập nhị phân được mô tả bởi một số Mvà được áp dụng cho một số N. Đối với mỗi bit trong biểu diễn nhị phân của M, nếu bit được đặt ( 1), bit tương ứng trong đầu ra được đưa ra bằng cách XOR hai bit …
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 



Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookieChính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.