일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Absolute
- AGI
- ai
- AI agents
- AI engineer
- AI researcher
- ajax
- algorithm
- Algorithms
- aliases
- Array 객체
- ASI
- bayes' theorem
- Bit
- Blur
- BOM
- bootstrap
- canva
- challenges
- ChatGPT
- Today
- In Total
목록🌳Coursework ✨/Discrete Maths (19)
A Joyful AI Research Journey🌳😊
Develop a Python method change(amount) that for any integer amount in the range from 24 to 1000 returns a list consisting of numbers 5 and 7 only, such that their sum is equal to amount. For example, change(28) may return [7, 7, 7, 7], while change(49) may return [7, 7, 7, 7, 7, 7, 7] or [5, 5, 5, 5, 5, 5, 5, 7, 7] or [7, 5, 5, 5, 5, 5, 5, 5, 7]. To solve this quiz, implement the method change(a..
Modify the code considered in the lectures to find out the number of solutions to the 8 queens puzzle. For example, as was explained in the videos, for the 4 queens puzzle there are 2 solutions. import itertools as it def is_solution(perm): for (i1, i2) in it.combinations(range(len(perm)),2): if abs(i1-i2)==abs(perm[i1]-perm[i2]): return False return True assert(is_solution([1,3,0,2]) == True) a..
Question There are some books on the table. If you group them by 3, you get some number of full groups and 2 books remain; if you group them by 4, you get some number of full groups and 3 books remain; if you group them by 5, you get some number of full groups and 4 books remain. What is the number of books on the table, if it is less than 100? Solution Using the Chinese Remainder Theorem: N (Pr..
Question Person A has an unlimited number of 7-florin coins, person B has an unlimited number of 13-florin coins. How A can pay 5 florins to B? 7x - 13y = 5 2*A - B = D 2*7 - 13 = 1 So let's find a multiple to get our goal and it's 5 because 5 x D or (5x1) is 5. Now let's multiply each value. 14 - 13 = 1 14*5 - 13*5 = 5 70 - 65 = 5 x = 70 / 7 = 10 y = 65 / 13 = 5 ∴ x = 10, y = 5