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

Thử thách này nhằm giải quyết bằng cách sử dụng, thao tác hoặc tạo hình hoặc các cấu trúc hình học khác.

10
Tạo một tam giác vuông
Trong thử thách này, bạn phải lấy hai số (cách nhau bởi một khoảng trắng) làm đầu vào và đầu ra một tam giác vuông ASCII, được tạo thành từ xs. Số đầu tiên sẽ là chiều rộng và chiều cao của hình tam giác bạn nên xuất ra. Số …

2
Khu vực của đa giác thường xuyên
Cho một N-gon thông thường với tất cả các đường chéo được vẽ, có bao nhiêu vùng hình thành các đường chéo? Ví dụ: một tam giác thông thường có đúng 1, một hình vuông có đúng 4, hình ngũ giác có chính xác 11 và một hình lục giác …

2
Máy bay thổi lên
Các Blow-up là một công cụ mạnh mẽ trong hình học đại số. Nó cho phép loại bỏ các điểm kỳ dị khỏi các bộ đại số trong khi bảo tồn phần còn lại của cấu trúc của chúng. Nếu bạn không quen thuộc với bất kỳ điều gì không …

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
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 

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 

5
Hệ thống elip
Giới thiệu Cho năm điểm trong mặt phẳng, nhiệm vụ của bạn là tính diện tích hình elip đi qua các điểm này. Bạn có thể giả sử rằng chính xác một hình elip không suy biến có thể được xây dựng với các giá trị đầu vào đã cho. …

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
Uốn cong
Là lập trình viên, xem chúng tôi flex không thú vị lắm. Hôm nay chúng ta thay đổi điều đó! Trong thử thách này, bạn sẽ lex và flex hexaflexagons. Trong khoảng Để xem video giới thiệu, hãy xem (các) video viharts trên flexagons Một hình khối là một hình …

2
Mười trăm từ phổ biến nhất
Câu hỏi này được viết bởi vì "Thing Explainer" rất thú vị để đọc và cho tôi một ý tưởng. Viết "công cụ khiến máy tính làm mọi thứ" đọc / lấy một tập hợp các chữ cái, số và những thứ như thế này "#%|?và trả về True / …
9 code-golf  string  parsing  code-golf  array-manipulation  random  permutations  code-golf  string  code-golf  parsing  code-golf  string  quine  code-golf  string  parsing  comment  code-golf  string  counting  natural-language  code-golf  string  decision-problem  code-golf  math  code-challenge  metagolf  test-battery  code-golf  string  code-golf  math  number  arithmetic  source-layout  code-golf  number  primes  decision-problem  code-golf  math  arithmetic  code-golf  date  code-golf  string  cryptography  code-golf  code-golf  chess  board-game  code-golf  geometry  grid  puzzle-solver  set-partitions  code-golf  number  natural-language  code-golf  ascii-art  code-golf  math  code-golf  string  ascii-art  kolmogorov-complexity  code-golf  string  natural-language  code-golf  game  board-game  tic-tac-toe  code-golf  ascii-art  hexagonal-grid  code-golf  string  comment  code-golf  internet  code-golf  sorting  code-golf  kolmogorov-complexity  unicode  code-golf  tips  code-golf  string  natural-language  code-golf  string  kolmogorov-complexity  source-layout  hello-world  code-golf  string  kolmogorov-complexity  counting  natural-language  code-golf  random  quine  code-golf  string  math  bitwise  code-golf  permutations  code-golf  string  code-golf  arithmetic 

2
Tìm diện tích của một đa giác
Cho các chiều dài cạnh liên tiếp s1, s2, s3... s_ncủa một n-gon được ghi trong một vòng tròn, tìm diện tích của nó. Bạn có thể cho rằng đa giác tồn tại. Ngoài ra, đa giác sẽ lồi và không tự giao nhau, điều này đủ để đảm bảo …


1
Phân vùng và tái cấu trúc
Cho hai hình dạng liền kề của cùng một khu vực, xác định cách tối ưu để chia hình đầu tiên thành số lượng tối thiểu các đoạn liền kề nhau để chúng có thể được sắp xếp lại để tạo thành hình thứ hai. Nói cách khác, tìm số …


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.