Copycat Read an integer variable and print it. |

Add Them Up Read two integer variables, calculate their sum, and print it. |

Formatted Numbers Read an integer variable and print it in which the digits are separated into groups of three by comm... |

Clock Math Given a time (hours as H and minutes as M), determine the smaller angle between the two hands of a c... |

Divisors Read an integer variable and print all of its divisors (including 1 and the number itself). |

Fibonacci Numbers Given an integer N, print the N-th Fibonacci number. A Fibonacci series is a series of numbers in wh... |

Big Factorials Given an integer N, print the trailing 4 digits of N! (N factorial). N!=N×(N−1)×(N−2)×...×1 Here are... |

Full Pyramid Given an integer N, print a full pyramid of asterisks. A full pyramid of asterisks of size N has N l... |

Byang's Additions Byang is learning how to add numbers. However, he gets confused whenever there is a carry. To help B... |

Decent Arrays Given N numbers determine if they are in ascending order. |

Better Passwords Byang is creating an account on Toph. He needs your help to create a strong password. Byang will giv... |

Caesar Cipher Byang wants to write a secret message to his friend. He has recently discovered Caesar Cipher. Caesa... |

ASCII Progress Bar In this problem, you need to write a code that prints an ASCII progress bar. In each test case, you ... |

BPL Mubarak! Bangladesh Premier League is in Sylhet for the first time. Today's match is Sylhet Sixers vs the Dha... |

Fair Distribution Mr. Forhad has X children. One day, on his way home, he bought Y chocolates for his children. He doe... |

ICPC Is Coming in Hot! Tanmoy is an ACM ICPC contestant. During practice he came across a problem named ‘OWLLEN’. He has ha... |

Goat Research Goats are interesting creatures. They are incredibly durable and can fall from great heights, be str... |

Grid'y Rotations Consider an M×N grid of numbers and then a series of (r,c) pairs. Each (r,c) pair corresponds to a p... |

Cash Change You have an unlimited number of cash notes of the following denominations: 1, 5, 10, 50, 100, 500. G... |

Closest Pair You will be given N pair of coordinates on a 2D space. You will determine distance between the close... |

Black or White Imagine an infinite chess board. The cell on the bottom-left most corner is labelled (0,0). The cell... |

Fibonacci Between Given two numbers L and R, you must print all the Fibonacci numbers between L and R (inclusive). Alt... |

Don't Shout It is well known on the Internet that you shouldn’t type in all caps. YOU SHOULDN’T. On the Internet... |

How Many X's? Given a string with only X’s you have to print how many X’s there are. |

Imagine a Graph 1 Imagine a graph of infinite nodes labelled with positive integers from 1 to ∞. Take every pair of no... |

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

Toph uses cookies. By continuing you agree to our Cookie Policy.