«counting» etiketlenmiş sorular

Bazı karakteristiklerin oluşum sayısını saymaya ilişkin zorluklar için.

30
Ne kadar hızlı vroooom yapıyorum?
Giriş Benim araba hız göstergesi hacklendi! Bana ne kadar hızlı sürdüğümü göstermek yerine, sadece "Vroooom!" Lütfen ne kadar hızlı gittiğimi bilmeme yardım et. Meydan okuma Bir dizeyi girdi olarak alın ve dizinin normal ifadeyle eşleşip eşleşmediğini kontrol edin /^[Vv]ro*m!$/m. Bu, dizenin herhangi bir satırının büyük veya küçük harfle v, ardından …

5
Daha Fazla Sert Nesne veya Yumuşak Nesne Var Mı
What-If kitabının açılmasıyla teğetsel olarak ilham aldı. Girdi, içinde nesnelerin bulunduğu dize, dize listesi vb. Gibi boşluklardan oluşan bir dikdörtgendir #: ######## # # ######## ### #### ### #### ### Nesneler her zaman kesişmeyen, dokunmayan dikdörtgenler olacaktır. Yumuşak bir nesne #, ortada 's ile doldurulmamış ve yalnızca bir sınır olan …
19 code-golf  ascii-art  counting  code-golf  number  grid  decision-problem  chess  code-golf  grid  graph-theory  chess  code-golf  math  geometry  code-golf  arithmetic  roman-numerals  fastest-code  code-golf  math  geometry  code-golf  string  cryptography  code-golf  number  sequence  decision-problem  code-golf  string  parsing  c  code-golf  sorting  integer  code-golf  number  sequence  rational-numbers  graphical-output  atomic-code-golf  assembly  box-256  code-golf  geometry  tips  python  code-golf  number  sequence  arithmetic  number-theory  code-golf  ascii-art  kolmogorov-complexity  geometry  code-golf  graphical-output  code-golf  math  code-golf  grid  cellular-automata  game-of-life  code-golf  string  subsequence  code-golf  arithmetic  rational-numbers  code-golf  tips  dc  code-golf  ascii-art  kolmogorov-complexity  date  code-golf  string  primes  code-golf  string  natural-language  conversion  code-golf  sequence  code-golf  number-theory  primes  base-conversion  code-golf  math  primes  base-conversion  code-golf  ascii-art  fractal  code-golf  matrix  code-golf  math  tips  geometry  python  string  code-challenge  keyboard  code-golf  graphical-output  code-golf  string  code-golf  number  sequence  cops-and-robbers  number  sequence  cops-and-robbers 

2
Sohbet Ping Sayacı Yaz
Göreviniz, sohbet mesajlarının bir listesini veren bir program yazmak, her bir kişinin kaç kez pinglendiğini saymaktır, böylece herkesin ne kadar popüler olduğunu öğrenebilirim. Ancak, bunu gizli bir şekilde yapmak zorunda olduğum için, kodu gizleyebilmem için mümkün olduğunca küçük olmam gerekiyor. gözlük Giriş, 2 öğeden oluşan bir listede gelir ve her …

11
Kare farkını en üst düzeye çıkarın
Dan tamsayı değerlerinin bir permütasyon düşünün 1için N. Örneğin bu örnek N = 4: [1, 3, 4, 2] Bu listeyi döngüsel olarak değerlendireceğiz, öyle ki 1ve 2bitişik olarak ele alınacaktır . Böyle bir liste için hesaplayabileceğimiz bir miktar, bitişik değerlerin toplam kare farkıdır: (1-3)² + (3-4)² + (4-2)² + (2-1)² …
19 code-golf  array-manipulation  permutations  restricted-complexity  code-golf  geometry  grid  code-golf  string  sorting  code-golf  simulation  code-golf  string  code-golf  arithmetic  code-golf  sorting  code-golf  string  code-golf  sorting  code-golf  interpreter  code-golf  number  kolmogorov-complexity  natural-language  conversion  code-golf  random  internet  code-golf  board-game  code-golf  number  sequence  code-golf  math  number  code-challenge  image-processing  classification  test-battery  code-golf  ascii-art  code-golf  tips  code-golf  arithmetic  code-golf  tips  code-golf  tips  javascript  code-golf  array-manipulation  code-golf  ascii-art  code-golf  string  binary  code-golf  arithmetic  linear-algebra  matrix  code-golf  sequence  code-golf  math  number  arithmetic  code-golf  primes  code-golf  math  code-golf  array-manipulation  counting  code-golf  arithmetic  code-golf  quine  code-generation  polyglot  code-golf  math  kolmogorov-complexity  trigonometry  code-golf  string  encryption 

15
Hiperküp elemanları
N boyutlu bir hiper küpün her bir öğe türünün (tepe noktası, kenar, yüz vb.) Sayısını çıkaran bir işlev veya program yazın. Örnek olarak, 3 boyutlu küp 1 hücreye (yani 1 3 boyutlu küp), 6 yüze (yani 6 2 boyutlu küp), 12 kenara (yani 12 2 boyutlu küp) ve 8 köşeye …

9
İleri-Geri Sıra
Oluşan bir yol düşünün <ve >ve biten bir @, mesela ><>@ En soldaki hücrede bir yürüteç başlar. Yolu şu şekilde geçecektir: Yürüteç bir @hücre üzerindeyse , hedefe ulaştı ve bitti. Yürüteç bir >hücre üzerindeyse , tüm yol döngüsel olarak yürüteçle birlikte bir adım sağa kayar . Yürüteç bir <hücre üzerindeyse …

15
g o l f a t a n 2
Bazen Kartezyen koordinatları (x,y)Kutupsal koordinatlara dönüştürmek gerçekten bir mücadeledir (r,phi). Hesaplayabileceğiniz iken r = sqrt(x^2+y^2)oldukça kolay açısını hesaplarken, genellikle vakaların bazı ayrım ihtiyaç phinedeniyle arcsin, arccosve arctandiğer tüm trigonometrik fonksiyonlar eş domain her biri sadece açıklıklı buna sahip yarım daire. Birçok dilde, dikdörtgeni kutupsal koordinatlara dönüştürmek veya en azından açıyı …
18 code-golf  math  geometry  trigonometry  code-golf  number-theory  fibonacci  code-golf  math  sequence  fibonacci  code-golf  string  code-golf  math  graphical-output  geometry  code-golf  string  code-golf  math  geometry  code-golf  math  bitwise  number  popularity-contest  graphical-output  image-processing  fractal  code-golf  number-theory  code-golf  date  multi-threading  code-golf  math  code-golf  math  number  sequence  code-golf  math  number  sequence  arithmetic  code-golf  decision-problem  logic-gates  code-golf  decision-problem  balanced-string  code-golf  math  arithmetic  combinatorics  code-golf  expression-building  code-golf  physics  code-golf  abstract-algebra  code-golf  number  arithmetic  integer  code-golf  ascii-art  number  code-golf  number-theory  primes  code-golf  arithmetic  grid  code-golf  code-golf  sequence  code-golf  kolmogorov-complexity  compression  code-golf  math  number  arithmetic  array-manipulation  code-golf  primes  hexagonal-grid  complex-numbers  code-golf  number  counting  code-golf  math  number  arithmetic 


18
Tek Haneli En Uzun Tekrarlanan Ardışık
Meydan okuma: Pozitif bir tamsayı verildiğinde, en az iki kez meydana gelen en uzun tek basamaklı alt diziyi girin, AND başka bir basamağın (veya tamsayı başlangıç ​​/ bitişinin) sınırlarına sahiptir. Bir örnek: Girdi: 7888885466662716666 Tek bir basamağın en uzun sırası 5 uzunluğunda 88888( 7[88888]5466662716666) olur. Ancak, bu sıra tamsayıda yalnızca …

8
Kaç Delik?
Meydan okuma Şeklin grafiksel bir girdisi verildiğinde, içinde kaç delik olduğunu belirleyin. Kopya değil Bu soru Kont Adaları'nın olası bir kopyası olarak işaretlendi . Bu zorluğun Kont Adası sorunundan farklı olduğuna inanıyorum çünkü bunda, sınıra temas eden blokları nasıl ortadan kaldıracağınızı bulmalısınız. Giriş Girdi, çok satırlı bir dize, bir dizi …

13
Ters permütasyon endeksi
Giriş N öğeli bir listenin sözlüksel permütasyonları 0'dan n'ye kadar numaralanabilir ! - 1. Örneğin, 3! = 6 permütasyon (1,2,3)olur (1,2,3), (1,3,2), (2,1,3), (2,3,1), (3,1,2), (3,2,1). Listeye bir permütasyon uygulandığında, elemanları permütasyondaki sayılarla aynı sırada sıralanır. Örneğin, permütasyon uygulanması (2,3,1)için l = (a,b,c)verim (l[2],l[3],l[1]) = (b,c,a). Bir permütasyonun tersi, bu …
17 code-golf  combinatorics  permutations  code-golf  image-processing  brainfuck  encode  steganography  code-golf  ascii-art  code-golf  ascii-art  kolmogorov-complexity  code-golf  ascii-art  fibonacci  code-golf  string  code-golf  sorting  popularity-contest  statistics  code-golf  ascii-art  kolmogorov-complexity  code-golf  code-golf  ascii-art  tic-tac-toe  code-golf  string  code-challenge  classification  test-battery  binary-matrix  code-golf  math  arithmetic  code-golf  ascii-art  random  code-golf  string  code-golf  number  binary  bitwise  code-golf  number  arithmetic  code-golf  math  ascii-art  code-golf  string  ascii-art  code-golf  string  ascii-art  code-golf  string  code-golf  counting  code-golf  number  binary  bitwise  decision-problem  code-golf  array-manipulation  code-golf  tips  brain-flak  code-challenge  quine  source-layout  code-generation  code-golf  linear-algebra  matrix  abstract-algebra  binary-matrix  code-golf  string  palindrome  code-golf  puzzle-solver  sudoku  code-golf  ascii-art  code-golf  graphical-output  internet  code-golf  ascii-art  kolmogorov-complexity  code-golf  math  code-golf  clock 

5
Tüm yönlerde dikdörtgenin karşı köşesine gidin - Daha sert
Bu daha zor hariç , aslında bu soru ile aynı şeydir . Yine bir dikdörtgenin sol alt köşesinden sağ üst köşeye giden bir program yazacaksınız. Ancak, bu sefer çapraz hareketlere izin verilir. Program sıralı bir çifti kabul edecek (width, height)ve bunları bir dikdörtgenin boyutları olarak kullanacaktır. Programınız daha sonra çözümün …

10
Artan matris
"Yükselen matris", herhangi bir öğenin, ilgili satır ve sütunda daha önce kullanılmamış olan en küçük eleman olduğu tam sayıların (0 dahil) sonsuz bir matrisidir: | 1 2 3 4 5 6 ... --+---------------- 1 | 0 1 2 3 4 5 ... 2 | 1 0 3 2 5 4 …
17 code-golf  math  matrix  programming-puzzle  code-golf  music  code-challenge  programming-puzzle  code-golf  fastest-code  code-golf  number  game  code-golf  combinatorics  code-golf  math  sequence  restricted-complexity  code-golf  number  random  code-golf  array-manipulation  code-golf  math  matrix  code-golf  number  sequence  counting  code-golf  math  number  sequence  popularity-contest  number  sequence  code-golf  music  code-golf  number  code-golf  ascii-art  arithmetic  code-golf  code-golf  number  code-golf  code-challenge  array-manipulation  code-golf  grammars  code-challenge  polyglot  code-golf  game  math  python  programming-puzzle  code-challenge  king-of-the-hill  code-challenge  fastest-code  primes  number-theory  number-theory  primes  fastest-code  factoring  popularity-contest  compile-time  code-golf  math 

10
Uçak Koltukları Ata
Geçen haftanın APL dersinden esinlenildi . Büyük bir 2D koltuk haritası ve 1D müşteri listesi verildiğinde, koltuk haritasını ve müşteri listesini iade edin, ancak aşağıdaki gibi değiştirin (dolu koltukları ve oturan müşterileri belirtmek için): Giriş yolcu listesindeki her benzersiz harf için, koltuk haritasında soldan sağa, yukarıdan aşağıya doğru giden o …

20
Bir numarayı ayrıştırın!
Göreviniz, aşağıdaki biçimi kullanarak bir sayıyı ayrıştırmaktır. Bu, taban dönüşümüne benzer, ancak tabandaki listelemek yerine digits,values liste girişine kadar ekler öyle ki,. Verilen taban ise n, listedeki her sayı, liste boyunca k*(n**m), nerede 0<=k<nve mbenzersizdir şeklinde olmalıdır . gözlük Herhangi bir makul giriş / çıkış formatı. Programınız / fonksiyonunuz 2 …
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 

Sitemizi kullandığınızda şunları okuyup anladığınızı kabul etmiş olursunuz: Çerez Politikası ve Gizlilik Politikası.
Licensed under cc by-sa 3.0 with attribution required.