Proper Leap YearsByang's friend was asked to author a programming problem where the challenge was to identify if the ... |
DivisorsRead an integer variable and print all of its divisors (including 1 and the number itself). |
Pie Are SquaredGiven the radius of a circle, calculate and print its area. The area of a circle can be computed usi... |
Clock MathGiven a time (hours as HHH and minutes as MMM), determine the smaller angle between the two hands of... |
SquaredGiven the length of a side of a square, calculate and print its area. |
Leap YearsIn the Gregorian calendar, certain years have 366 days instead of 365. In such years, the month of F... |
Fibonacci NumbersGiven an integer NNN, print the NNN-th Fibonacci number. A Fibonacci series is a series of numbers i... |
Math and WatermelonsYour friend has MMM watermelons. He doesn't want to share them with anyone, but let's imagine he wou... |
Missing NumberGiven the sum of four numbers and three of those numbers, find the missing number. All four numbers ... |
Pascal's TriangleGiven an integer N, print the sum of the Nth row of the Pascal's triangle. In mathematics, Pascal's ... |
Making FriendsByang is going to join a new school. His new class has NNN students. Each of the students are identi... |
Fair DistributionMr. Forhad has XXX children. One day, on his way home, he bought YYY chocolates for his children. He... |
Byang's AdditionsByang is learning how to add numbers. However, he gets confused whenever there is a carry. To help B... |
Running AverageGiven NNN numbers, read each one, calculate the running average and print it. For example, given the... |
Mixed FractionsGiven an improper fraction (as the numerator NNN and the denominator DDD), determine and print it in... |
Running Average AgainGiven NNN numbers, read each one, calculate the running average and print it. For example, given the... |
Nusrat's TreatWe all know how much Nusrat loves chocolate! She gets a lot of chocolate from her friends and family... |
The TitanThe Titan, a giant ship started its journey on the dark sea. It was going to the North America. On t... |
Life of Phi IIYou will be given two integers nnn and mmm where GCD(n,m)=1GCD(n, m) = 1GCD(n,m)=1. You have to tell... |
I Did Not Do the AssignmentProfessor Petr is very angry over some of his students now-a-days for not doing assignment. He wants... |
Thought GameSadia is one of the nicest persons you will ever meet. In fact, she is one of those persons who like... |
N-th PrimeIn this problem, you will have to print the nnn-th prime number. The first few prime numbers are giv... |
Counting TripletsGiven an array of NNN integers A1A_1A1, A2A_2A2, A3A_3A3, …, ANA_NAN. Vector has to find the num... |
N Factorial!I like short descriptions and I think you so too. Let's say you have a number, N. Now try to find th... |
Count the OddsSometimes, contestants tend to look for patterns in problem descriptions. They try to figure out the... |
2Sat, Adhoc, ApolloneasTheorem, Backtracking, BFS, Bignum, BinarySearch, BipartiteMatching, Bitmask, BruteForce, ChineseRemainderTheorem, Combinatorics, ConvexHull, CutVertex, DataStructure, DFS, DigitDP, DisjointSets, DivideAndConquer, DP, Eertree, EulerTour, ExpectedValue, FenwickTree, FFT, Flow, Game, GCD, Geometry, Graph, Greedy, Hashing, HeavyLightDecomposition, Implementation, InclusionExclusion, Interactive, KnuthMorrisPratt, LowestCommonAncestor, Math, Matrix, MatrixExponentiation, MergeSortTree, ModularExponentiation, MOSAlgorithm, MST, NTT, NumberTheory, Parsing, PersistentLiChaoTree, PersistentSegmentTree, PollardRho, PriorityQueue, Probability, Queue, RabinMiller, RangeOrderStatistics, Scheduling, SegmentTree, ShortestPath, Simulation, Sorting, SparseTable, SpragueGrundyTheorem, SqrtDecomposition, Stack, String, StronglyConnectedComponents, SuffixStructure, TernarySearch, Tree, Trie, TwoPointer, WaveletTree