The algorithm for constructing a Kaprekar series was discovered in 1949 by the Indian mathematical Dattaraya Ramachandra Kaprekar. It was originally described for numbers with four digits, but can be easily generalized for numbers with kk digits.The Kaprekar series for a number nn is represented as a list whose first element is nn. The next number is calculated as the difference K(n)=n′−n′′K(n)=..
In genetics, a distinction is made between two types of mutations (the replacement of one nucleotide by a different nucleotide). A transition changes a purine nucleotide (two rings) into another purine (A ↔ G), or changes a pyrimidine nucleotide (one ring) into another pyrimidine (C ↔ T). All other mutations in which a purine is substituted for a pyrimidine, or vice versa, are called transversio..
If we value each letter corresponding to its position in the alphabet, we may compute the value of a word as the sum of the values of its individual letters. We can use this procedure to hunt for word sums. A word sum is a sequence of (usually two) words whose sum of word values equals the word value of another word that can be associated with the sequence of words.KING + CHAIR = THRONEChecking ..
Penney Ante is a gambling game in which two players each name a different sequence of outcomes of coin tosses, where both sequences must have the same length. For example heads-heads-tails, or HHT. Then a coin is flipped repeatedly until one of the sequences appears. The player who named that sequence, wins the game.Is there any strategy that gives one player a higher probability of winning the ..
What's so special about the number 105263157894736842? This number doubles if you move the rightmost digit to the front of the number. In addition, this is the smallest natural number that has this property.In general, a positive natural number that can be multiplied by nn by moving the rightmost digit to the front of the number is called an nn-parasitic number. Here nn is itself a single-digit ..
The computer program cowsay generates ASCII pictures of a cow with a message.+----------------------------+| Moo may represent an idea, || but only the cow knows. |+----------------------------+ \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||The program initially started more or less as an inside joke within hacker culture, but has been around long enough that its use has become rather widespre..
The inhabitants on planet P people speak a strange language, called language P. For us, this language is not so difficult to learn. After all, it is very similar to plain English, but every group of vowels is followed by a letter p and a repetition of the same group of vowels. A groups of vowels is either a sequence of one or more consecutive vowels (a,e,i,o and u) or the combination ij. As such..
A Pythagorean triple (a,b,c)(a,b,c) consists of three strictly positive integers aa, bb and cc, for which a2+b2=c2a2+b2=c2. The name is derived from the Pythagorean theorem, stating that every right triangle has side lengths satisfying the formula a2+b2=c2a2+b2=c2. Thus, Pythagorean triples describe the three integer side lengths of a right triangle. However, right triangles with non-integer sid..
Five pirates are shipwrecked on a desert island. They quickly determine that the only other inhabitant of the island is a monkey and that the only food is coconuts. They set about collecting as many coconuts as they can and put them all in a pile. By nightfall they are too tired to divide the harvest, so they agree to go to sleep and divvy up the coconuts the next morning.During the night one pi..
[함수 런타임 시간:decorator] 폰트 사이즈 12 고딕 def runtime(func): def wrapper(*args, **kwargs): import timeit start = timeit.default_timer() func(*args, **kwargs) end = timeit.default_timer() print("{}, runtime={}".format(func.__name__, end - start)) return wrapper def is_prime(n): i = 2 while i * i
- Total
- Today
- Yesterday
- django
- 면접정답
- 장고
- gitignore
- GIT
- 파이썬 강좌
- 장고 플러스친구 자동응답
- 이미지 비교
- 면접답변
- 플러스친구 자동응답
- Tistory
- pycrypto
- 모바일 스킨 적용
- PuTTYGen
- 파이썬
- 문과 코딩
- 모바일 테마 적용
- virtualenv
- admin.py
- Python
- wsgi
- 문서 비교
- 파이썬 입문
- 장고 카톡 자동응답
- 파이썬 독학
- gitlab
- chatbot
- 파이썬 프로그래밍
- 엑셀 비교
- django chatbot
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |