PAU OJ Online Judge
ProblemsLearnStudy plansContestsSubmissionsRank

Updates

Announcements and upcoming contests

Loading announcements…
Sign in for personal alertsBrowse contests
Log inSign up

PAU OJ

PrimeAsia University Online Judge

A real online judge for programming practice, university contests and coding assessments. Write code in your browser, get sandboxed verdicts, and track your progress.

Platform

  • Problems
  • Contests
  • Submissions
  • Ranking
  • Reviewers

Resources

  • User guide
  • Changelog
  • How judging works
  • System health
  • Create an account

© 2026 PrimeAsia University Online Judge. All rights reserved.

v0.9.0

Practice

Problems

10 problems ready for you. Filter by difficulty or tag, then open the editor.

DifficultyAllEasyMediumHardExpert
Tags
Clear
Tree0-1 BFS0/11D DP2D Difference Array2D Prefix SumActivity SelectionAll PairsAmortisedAnalyticsAncestorArgmaxArraysAssignmentAvailabilityBFSBITBackoffBacktrackingBackward DPBase62Bellman-FordBinaryBinary ExponentiationBinary Indexed TreeBinary LiftingBinary SearchBinary Search TreeBinary Search on AnswerBinary TreesBinary TrieBipartiteBipartite MatchingBit ManipulationBitmaskBitonicBitwise ANDBlocksBottleneckBoundedBounded EdgesBranchingBuild CacheBuild ContextCDNCI/CDCachingCapacity PlanningCode ReviewCoin ChangeCoinsCollaborationCombinatoricsComplexityConcatenationConditionalsConnected ComponentsConsistent HashingConstraint SatisfactionContainersCoordinate CompressionCountingCustom ComparatorCycle DetectionDAGDDLDFSDMLDPDSUDecompositionDegreeDeleteDeployment GateDequeDevOpsDiameterDifference ArrayDigitsDijkstraDinicDistanceDivide and ConquerDivisorsDockerDocker ComposeDynamic ProgrammingEdit DistanceEncodingEstimationEuler TotientEuler TourEventual ConsistencyExchange ArgumentExpressionFactorialFactorialsFalling PathFenwick TreeFibonacciFloyd-WarshallFormulasFrequencyFrogGCDGame TheoryGeometryGitGitHubGitHub ActionsGraphsGreedyGreedy CheckGridGroupedGrundy NumberHLDHash MapHash SetHashingHealthcheckHeapHeap SortHeapsHeightHistogramHuffmanIdempotencyImplementationIn-PlaceIncidentIndependent SetIndexesInorderInput OutputInterval DPInterval SchedulingIntervalsInversionsJosephusK-way MergeKMPKadaneKnapsackKruskalLCALCMLCSLISLRULatencyLazyLazy PropagationLeafLeavesLevel OrderLevelsLinear RecurrenceLinked Hash MapLinked ListLoad BalancingLoopsLower BoundLucas TheoremMSTMatchingMathMatrixMatrix BuildMatrix ExponentiationMax FlowMaximumMedianMemoisationMemoizationMergeMerge ConflictMerge Sort TreeMergingMin CutMinimumMinimum PathModular ArithmeticModuloMonotonic QueueMonotonic StackMulti-sourceMulti-stage BuildMultisetNegative CycleNetwork FlowNimNumber TheoryOffline QueriesOnline ConnectivityOnline QueriesOrder StatisticsOrdered DictOrderingPalindromePalindromesParityParsingPartitionPathPath QueryPath UpdatePatternPaymentsPerformancePermutationPoint UpdatePointersPostorderPrefixPrefix SumPrefix SumsPrefix XORPreorderPrime FactorizationPrimesPriority QueueProduction ReviewProjectPruningQueriesQueueRange AssignRange QueryRange UpdateRate LimitingReachabilityRebalancingReconstructionRecoveryRecursionReleaseReliabilityRemoteReplicationRerootingRetryReversalRollbackRound RobinRuntimeSLOSQLSTLSchedulingSearchSecretsSecuritySegment TreeSelectionSetShardingShortest PathSieveSimulationSliding WindowSortingSparse TableSprague-GrundySquaresStackState ExpansionState MachineStringString MatchingStringsSubarraySubarraysSubset SumSubsetsSubstringSubtreeSubtree QuerySumSweep LineSymmetrySystem DesignTSPTTLToken BucketTop-KTopological SortTransactionsTraversalTreesTriangleTrieTwo BagsTwo HeapsTwo PointersTwo SumTwo WalkersTwo's ComplementURL ShortenerUnboundedUnion FindUpper BoundValidationVersion ControlViewsWeighted DistanceWord BreakXORZ AlgorithmZigzagbasics
StatusProblemTagsDifficultyAcceptancePoints
Tree Diameter

learn-m5-tree-bitmask-dp-g1

BFSDynamic ProgrammingTree
BFSDynamic ProgrammingTree
Easy
0.0%(0/0)
100
Subtree Sum

learn-m5-tree-bitmask-dp-g2

Dynamic ProgrammingSubtreeTree
Dynamic ProgrammingSubtreeTree
Easy0.0%(0/0)100
Total Distance from Root

learn-m5-tree-bitmask-dp-e1

DFSDynamic ProgrammingTree
DFSDynamic ProgrammingTree
Easy0.0%(0/0)100
Maximum Weight Independent Set on a Tree

learn-m5-tree-bitmask-dp-m1

Dynamic ProgrammingIndependent SetTree
Dynamic ProgrammingIndependent SetTree
Medium0.0%(0/0)200
Count Independent Sets on a Tree

learn-m5-tree-bitmask-dp-x2

CountingDynamic ProgrammingTree
CountingDynamic ProgrammingTree
Medium0.0%(0/0)200
Tree Height

learn-m5-tree-bitmask-dp-e2

DFSDynamic ProgrammingTree
DFSDynamic ProgrammingTree
Easy0.0%(0/0)100
Best Root-to-Leaf Path

learn-m5-tree-bitmask-dp-e3

Dynamic ProgrammingPathTree
Dynamic ProgrammingPathTree
Easy0.0%(0/0)100
Sum of All Pairwise Distances

learn-m5-tree-bitmask-dp-m2

Dynamic ProgrammingRerootingTree
Dynamic ProgrammingRerootingTree
Medium0.0%(0/0)200
Dorm Room Pairs

learn-m5-tree-bitmask-dp-m3

Dynamic ProgrammingMatchingTree
Dynamic ProgrammingMatchingTree
Medium0.0%(0/0)200
Skill Tree Budget

learn-m5-tree-bitmask-dp-h2

Dynamic ProgrammingKnapsackTree
Dynamic ProgrammingKnapsackTree
Hard0.0%(0/0)300