随笔分类 - Math
数学
摘要:11489 Integer GameTwo players, S and T, are playing a game where they make alternate moves. S plays rst.In this game, they start with an integer N. In
阅读全文
摘要:12050 Palindrome NumbersA palindrome is a word, number, or phrase that reads the same forwards as backwards. For example,the name “anna” is a palindro
阅读全文
摘要:11609 TeamsIn a galaxy far far away there is an ancient game played among the planets. The specialty of the gameis that there is no limitation on the
阅读全文
摘要:11076 Add AgainSummation of sequence of integers is always a common problem in Computer Science. Rather than computingblindly, some intelligent techni
阅读全文
摘要:11752 The Super PowersWe all know the Super Powers of this world and how they manage to get advantages in political warfareor even in other sectors. B
阅读全文
摘要:10892 LCM CardinalityA pair of numbers has a unique LCM but a single number can be the LCM of more than one possiblepairs. For example 12 is the LCM o
阅读全文
摘要:10780 Again Prime? No time.The problem statement is very easy. Given a number n you have to determine the largest power of m,not necessarily prime, th
阅读全文
摘要:10943 How do you add?Larry is very bad at math — he usually uses a calculator, which workedwell throughout college. Unforunately, he is now struck in
阅读全文
摘要:11889 BenefitRecently Yaghoub is playing a new trick to sell some more. When somebody gives him A Tomans, hewho never has appropriate changes, asks fo
阅读全文
摘要:11388 GCD LCMThe GCD of two positive integers is the largest integer that divides both the integers without anyremainder. The LCM of two positive inte
阅读全文
摘要:1356 BridgeA suspension bridge suspends the roadway from huge main cables, which extend from one end of thebridge to the other. These cables rest on t
阅读全文
摘要:1476 Error CurvesJosephina is a clever girl and addicted to Machine Learning recently. She pays much attention to amethod called Linear Discriminant A
阅读全文
摘要:10341 Solve ItSolve the equation:p ex + q sin(x) + r cos(x) + s tan(x) + t x2 + u = 0where 0 x 1.InputInput consists of multiple test
阅读全文
摘要:11542 SquareGiven n integers you can generate 2n1 non-empty subsets from them. Determine for how many of thesesubsets the product of all the integer
阅读全文
摘要:10828 Back to Kernighan-RitchieYou must have heard the name of Kernighan and Ritchie, the authors ofThe C Programming Language. While coding in C, we
阅读全文
摘要:1386 Cellular AutomatonA cellular automaton is a collection of cells on a grid of specied shape that evolves through a numberof discrete time steps a
阅读全文
摘要:10870 RecurrencesConsider recurrent functions of the following form:f(n) = a1f(n 1) + a2f(n 2) + a3f(n 3) + : : : + adf(n d); for n > d;wh
阅读全文
摘要:11077 Find the PermutationsSorting is one of the most used operations in real life, where Computer Science comes into act. It iswell-known that the lo
阅读全文
摘要:12103 Leonardo's Notebook| I just bought Leonardo's secret notebook! Rare object col-lector Stan Ucker was really agitated but his friend, specialinve
阅读全文
摘要:10294 Arif in Dhaka (First Love Part 2)Our hero Arif is now in Dhaka (Look at problem 10244 – First Love if you want to know more aboutArif, but that
阅读全文