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

Thử thách này liên quan đến việc tạo hoặc phân tích hình ảnh bằng cách sử dụng các ký tự văn bản làm màu vẽ. Thông thường, điều này chỉ sử dụng 95 ký tự có thể in (trong tổng số 128) ký tự được xác định bởi Tiêu chuẩn ASCII từ năm 1963.


4
Hình dung một bảng Nim như một chuyên gia
Lý lịch Trong trò chơi của Nim , người chơi luân phiên tháo "đá" từ "đống": trên mỗi lượt, người chơi phải loại bỏ từ một đến tất cả các đá từ một đơn cọc. Mục tiêu của Nim là lấy viên đá cuối cùng hoặc, trong biến thể sai …

7
Code-Golf: Trình tự Farey (I)
Thử thách Trong tác vụ này, bạn sẽ được cấp một số nguyên N (nhỏ hơn 10 ^ 5), xuất chuỗi Farey theo thứ tự N. Đầu vào N được cho trong một dòng duy nhất, đầu vào được kết thúc bằng EOF. Đầu vào 4 3 1 2 Đầu …
10 code-golf  math  code-golf  math  code-golf  number  number-theory  code-golf  math  arithmetic  repeated-transformation  code-golf  geometry  popularity-contest  code-golf  code-golf  tips  haskell  math  fastest-algorithm  code-golf  combinatorics  code-golf  math  polynomials  rational-numbers  code-golf  code-golf  popularity-contest  javascript  code-golf  kolmogorov-complexity  code-golf  code-golf  math  combinatorics  permutations  code-challenge  restricted-source  random  array-manipulation  code-challenge  generation  code-golf  code-golf  ascii-art  arithmetic  division  code-challenge  number  code-golf  math  number  binary  code-golf  ascii-art  code-golf  interpreter  stack  code-golf  internet  networking  code-golf  math  code-golf  ascii-art  code-golf  math  sequence  code-golf  hello-world  restricted-source  code-golf  ascii-art  code-golf  geometry  code-golf  kolmogorov-complexity  pi  code-golf  math  combinatorics  permutations  code-golf  math  code-challenge  ascii-art  code-golf  string  code-golf  quine  code-golf  math  floating-point  golfscript  code-golf  string  code-golf  sliding-puzzle  code-challenge  arithmetic  code-golf  math  code-golf  geometry  optimized-output 

2
Nén mê cung ASCII
Thử thách Thiết kế một thuật toán nén chuyên dùng để nén mê cung ASCII. Bạn sẽ cần tạo cả thuật toán nén và thuật toán giải nén. Điểm của bạn sẽ được dựa trên kích thước của mê cung nén của bạn. Mazes Những mê cung được thực hiện …

6
Giúp Notwen mô phỏng trọng lực!
Notwen muốn nghiên cứu động học của các vật thể ném từ độ cao lớn trong trường hấp dẫn đồng đều, nhưng thật không may, anh ta không có khả năng kỹ thuật để đi đến những nơi đủ cao và quan sát các vật thể trong khi rơi. Nhưng …

4
Cây nghệ thuật ASCII
Một cây H là một cấu trúc cây fractal mà bắt đầu với một đường thẳng. Trong mỗi lần lặp, các nhánh T được thêm vào tất cả các điểm cuối. Trong thử thách này, bạn phải tạo một đại diện ASCII cho mỗi cấp độ cây H thứ hai …

2
Lời khuyên cho việc chơi golf trong The Powder Toy
Hãy vui vẻ với điều này, The Powder Toy là một thử thách thú vị cho golf, đặc biệt là với logic lọc. Điều khiến TPT trở thành một thách thức là rất nhiều cách để tiếp cận một vấn đề: Should I use Cellular Automaton rules, SWCH logic, Filt …
9 code-golf  tips  the-powder-toy  code-golf  number  array-manipulation  integer  code-golf  string  decision-problem  boggle  code-golf  array-manipulation  average  code-golf  math  code-golf  decision-problem  restricted-source  code-golf  code-golf  math  primes  code-golf  random  code-golf  tips  perl  code-golf  string  parsing  code-golf  math  number  decision-problem  code-golf  math  number  code-golf  string  alphabet  code-golf  math  geometry  code-golf  interpreter  brainfuck  code-golf  code-golf  decision-problem  boggle  code-golf  math  number  sequence  code-golf  math  code-golf  ascii-art  code-challenge  restricted-source  quine  code-golf  math  decision-problem  number-theory  primes  code-golf  ascii-art  code-golf  integer  graph-theory  chess  code-golf  math  interpreter  code-golf  code-golf  code-golf  ascii-art  code-golf  arithmetic  number-theory  code-golf  string  kolmogorov-complexity  code-golf  string  decision-problem  code-golf  primes  factoring  encode  code-golf  decision-problem  code-golf  geometry  grid  code-golf  quine  code-golf  matrix  code-golf  matrix  code-golf  code-golf  number  array-manipulation  code-golf  array-manipulation  sorting  code-golf  matrix  code-golf  brain-flak 

12
Dấu hoa thị
Với một số nguyên dương N ("virality"), chương trình của bạn sẽ tạo ra một bản vẽ nghệ thuật ASCII của một cây với hai nhánh có chiều dài N kéo dài xuống dưới và / hoặc phải từ góc trên bên trái. Hướng được thực hiện bởi mỗi nhánh …

13
Mở rộng chuỗi so sánh
Không giống như hầu hết các ngôn ngữ, Python đánh giá a<b<cnhư nó sẽ được thực hiện trong toán học, thực sự so sánh ba số, trái ngược với việc so sánh boolean a<bvới c. Cách chính xác để viết điều này trong C (và nhiều người khác) sẽ là …
9 code-golf  parsing  conversion  syntax  code-golf  sequence  primes  code-challenge  geometry  optimization  code-golf  graph-theory  code-golf  number-theory  primes  integer  code-golf  source-layout  cops-and-robbers  code-golf  source-layout  cops-and-robbers  code-golf  sequence  primes  integer  code-golf  math  number-theory  primes  rational-numbers  code-golf  math  sequence  number-theory  primes  code-golf  string  code-golf  math  combinatorics  permutations  restricted-complexity  code-golf  array-manipulation  code-golf  number  sequence  code-golf  number  sequence  code-golf  binary-matrix  code-golf  math  tips  javascript  algorithm  code-golf  string  code-golf  number  sequence  code-golf  math  arithmetic  parsing  code-golf  number  sequence  primes  code-golf  string  ascii-art  geometry  integer  code-golf  geometry  code-golf  number  array-manipulation  code-golf  math  geometry  code-golf  number  sequence  arithmetic  integer  code-golf  string  kolmogorov-complexity  code-golf  number  code-golf  number  chess  code-golf  sequence  decision-problem  subsequence  code-golf  math  number  primes  code-golf  primes  permutations  code-golf  integer  probability-theory  statistics  code-golf  string  code-golf  sequence  decision-problem  parsing  board-game  code-golf  binary  graph-theory  code-golf  board-game  classification  tic-tac-toe  code-golf  ascii-art  polyglot  code-golf  date  code-golf  geometry 

7
Chơi golf giả!
Giới thiệu / Bối cảnh Trong một cuộc thảo luận gần đây trong cuộc trò chuyện về tiền điện tử, tôi đã được thử thách thảo luận / trợ giúp với bài kiểm tra tính nguyên thủy của Fermat và các số của Carmichael. Bài kiểm tra này dựa trên …
9 code-golf  math  sequence  number-theory  primes  code-golf  string  code-golf  math  combinatorics  permutations  restricted-complexity  code-golf  array-manipulation  code-golf  number  sequence  code-golf  number  sequence  code-golf  binary-matrix  code-golf  math  tips  javascript  algorithm  code-golf  string  code-golf  number  sequence  code-golf  math  arithmetic  parsing  code-golf  number  sequence  primes  code-golf  string  ascii-art  geometry  integer  code-golf  geometry  code-golf  number  array-manipulation  code-golf  math  geometry  code-golf  number  sequence  arithmetic  integer  code-golf  string  kolmogorov-complexity  code-golf  number  code-golf  number  chess  code-golf  sequence  decision-problem  subsequence  code-golf  math  number  primes  code-golf  primes  permutations  code-golf  integer  probability-theory  statistics  code-golf  string  code-golf  sequence  decision-problem  parsing  board-game  code-golf  binary  graph-theory  code-golf  board-game  classification  tic-tac-toe  code-golf  ascii-art  polyglot  code-golf  date  code-golf  geometry 

30
Cho đầu vào int n, in ra n * đảo ngược (n)
Cho một số nguyên n, in ran * reversed(n) reversed(n)là số bạn nhận được khi bạn reversecác chữ số của n. reverse(512) = 215 reverse(1) = 1 reverse(101) = 101 >>>>>>>> func(5) = 5*5 = 25 func(12) = 12*21 = 252 func(11) = 11*11 = 121 func(659) = 659*956 = …
9 code-golf  math  arithmetic  code-golf  math  integer  code-golf  arithmetic  integer  code-golf  sequence  base-conversion  palindrome  code-golf  math  primes  integer  code-golf  parsing  conversion  syntax  code-golf  sequence  primes  code-challenge  geometry  optimization  code-golf  graph-theory  code-golf  number-theory  primes  integer  code-golf  source-layout  cops-and-robbers  code-golf  source-layout  cops-and-robbers  code-golf  sequence  primes  integer  code-golf  math  number-theory  primes  rational-numbers  code-golf  math  sequence  number-theory  primes  code-golf  string  code-golf  math  combinatorics  permutations  restricted-complexity  code-golf  array-manipulation  code-golf  number  sequence  code-golf  number  sequence  code-golf  binary-matrix  code-golf  math  tips  javascript  algorithm  code-golf  string  code-golf  number  sequence  code-golf  math  arithmetic  parsing  code-golf  number  sequence  primes  code-golf  string  ascii-art  geometry  integer  code-golf  geometry  code-golf  number  array-manipulation  code-golf  math  geometry  code-golf  number  sequence  arithmetic  integer  code-golf  string  kolmogorov-complexity  code-golf  number  code-golf  number  chess  code-golf  sequence  decision-problem  subsequence  code-golf  math  number  primes  code-golf  primes  permutations  code-golf  integer  probability-theory  statistics  code-golf  string  code-golf  sequence  decision-problem  parsing  board-game  code-golf  binary  graph-theory  code-golf  board-game  classification  tic-tac-toe  code-golf  ascii-art  polyglot  code-golf  date  code-golf  geometry 

1
Dây kéo lớn hơn, tốt hơn (bị hỏng)
(Lấy cảm hứng khá nhiều từ thử thách này ) Trong thử thách ban đầu, bạn đã tạo ra một dây kéo ngang, tuy nhiên, nhìn xuống áo hoodie của tôi, dây kéo của tôi thẳng đứng hơn nhiều (và một chút bị hỏng): P Đầu vào Bạn sẽ được …

4
Chuyển đổi hộp!
Đưa ra một chuỗi có khả năng được đóng hộp, chuyển đổi hộp. Điều này trở nên rõ ràng hơn trong các trường hợp thử nghiệm và giải thích. Đầu ra đầu vào Định dạng đầu vào Đầu vào sẽ là một chuỗi đơn được phân tách bằng CR, LF …

5
Bản đồ trò chơi ASCII 2D
Vấn đề Cho đầu vào atrong đó a là một lưới các ký tự ở bất kỳ định dạng đầu vào nào miễn là nó chỉ có một phần tử cho mỗi 'khối' của đầu ra. Và đầu vào btrong đó b là một lưới các số có cùng kích …

2
Trình thu thập dữ liệu 2D
Chương trình của bạn phải có một chuỗi nhiều dòng, như thế này: ############# # # # p # # # ############# plà người chơi và #là một khối. Bây giờ dưới đó trong thiết bị đầu cuối nên là một dòng đầu vào nói: How do you want to …

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.