Reference implementations are locally tested; official acceptances are tracked separately.
| ID | Problem | Technique | Time / extra space | Code / notes |
|---|---|---|---|---|
cses-1068 |
Weird Algorithm | simulation, integers | O(L) steps / O(1) | C++ · Notes |
cses-1083 |
Missing Number | arithmetic, integers | O(n) / O(1) | C++ · Notes |
cses-1069 |
Repetitions | strings, scan | O(n) / O(1) beyond input | C++ · Notes |
cses-1094 |
Increasing Array | greedy, scan | O(n) / O(1) | C++ · Notes |
cses-1617 |
Bit Strings | modular arithmetic, binary exponentiation | O(log n) / O(1) | C++ · Notes |
cses-1618 |
Trailing Zeros | number theory | O(log n) / O(1) | C++ · Notes |
cses-1621 |
Distinct Numbers | sorting, STL | O(n log n) / O(n) | C++ · Notes |
cses-1084 |
Apartments | sorting, two pointers, greedy | O(n log n + m log m) / O(n + m) | C++ · Notes |
cses-1090 |
Ferris Wheel | greedy, two pointers | O(n log n) / O(n) | C++ · Notes |
cses-1629 |
Movie Festival | greedy, interval scheduling | O(n log n) / O(n) | C++ · Notes |
cses-1643 |
Maximum Subarray Sum | dynamic programming, Kadane | O(n) / O(1) | C++ · Notes |
cses-1620 |
Factory Machines | binary search, monotone predicate | O(n log(min(k) * t)) / O(n) | C++ · Notes |
cses-1141 |
Playlist | sliding window, map | O(n log n) / O(n) | C++ · Notes |
cses-1661 |
Subarray Sums II | prefix sums, map | O(n log n) / O(n) | C++ · Notes |
cses-1633 |
Dice Combinations | dynamic programming, counting | O(n) / O(n) | C++ · Notes |
cses-1634 |
Minimizing Coins | dynamic programming, unbounded knapsack | O(n * x) / O(n + x) | C++ · Notes |
cses-1636 |
Coin Combinations II | dynamic programming, counting | O(n * x) / O(x) | C++ · Notes |
cses-1158 |
Book Shop | dynamic programming, 0/1 knapsack | O(n * x) / O(n + x) | C++ · Notes |
cses-1639 |
Edit Distance | dynamic programming, strings | O(n * m) / O(min(n, m)) beyond input | C++ · Notes |
cses-1145 |
Increasing Subsequence | binary search, dynamic programming | O(n log n) / O(n) | C++ · Notes |
cses-1192 |
Counting Rooms | graphs, flood fill, iterative DFS | O(n * m) / O(n * m) | C++ · Notes |
cses-1668 |
Building Teams | graphs, BFS, bipartite | O(n + m) / O(n + m) | C++ · Notes |
cses-1671 |
Shortest Routes I | graphs, Dijkstra, priority queue | O((n + m) log(n + m)) / O(n + m) | C++ · Notes |
cses-1675 |
Road Reparation | graphs, Kruskal, DSU | O(m log m + n) / O(n + m) | C++ · Notes |
cses-1679 |
Course Schedule | graphs, topological sort | O(n + m) / O(n + m) | C++ · Notes |
cses-1646 |
Static Range Sum Queries | prefix sums, range queries | O(n + q) / O(n) | C++ · Notes |
cses-1648 |
Dynamic Range Sum Queries | Fenwick tree, range queries | O((n + q) log n) / O(n) | C++ · Notes |
cses-1649 |
Dynamic Range Minimum Queries | segment tree, range queries | O(n + q log n) / O(n) | C++ · Notes |
cses-1753 |
String Matching | strings, KMP, prefix function | O(n + m) / O(m) beyond input | C++ · Notes |
codeforces-4A |
Watermelon | arithmetic, conditions | O(1) / O(1) | C++ · Notes |
codeforces-71A |
Way Too Long Words | strings, implementation | O(total input length) / O(longest word) | C++ · Notes |
codeforces-231A |
Team | counting, implementation | O(n) / O(1) | C++ · Notes |
codeforces-158A |
Next Round | arrays, conditions | O(n) / O(n) | C++ · Notes |
atcoder-dp_a |
Frog 1 | dynamic programming, shortest path in DAG | O(n) / O(n) | C++ · Notes |
atcoder-dp_b |
Frog 2 | dynamic programming, bounded transitions | O(n * k) / O(n) | C++ · Notes |
atcoder-dp_c |
Vacation | dynamic programming, state compression | O(n) / O(1) | C++ · Notes |
cses-1070 |
Permutations | construction, parity | O(n) / O(1) | C++ · Notes |
cses-1071 |
Number Spiral | arithmetic, pattern | O(q) / O(1) | C++ · Notes |
cses-1072 |
Two Knights | combinatorics | O(n) / O(1) | C++ · Notes |
cses-1092 |
Two Sets | construction, greedy | O(n) / O(n) | C++ · Notes |
cses-1755 |
Palindrome Reorder | strings, construction, counting | O(n) / O(n) | C++ · Notes |
cses-1754 |
Coin Piles | arithmetic, invariants | O(q) / O(1) | C++ · Notes |
cses-2205 |
Gray Code | bit operations, construction | O(n * 2^n) / O(1) | C++ · Notes |
cses-2165 |
Tower of Hanoi | recursion, construction | O(2^n) / O(n) | C++ · Notes |
cses-1622 |
Creating Strings | permutations, STL | O(n * k), k distinct permutations / O(n * k) | C++ · Notes |
cses-1623 |
Apple Division | backtracking, subset enumeration | O(2^n) / O(n) | C++ · Notes |
cses-1624 |
Chessboard and Queens | backtracking, constraints | O(8 * 8!) upper bound / O(8) recursion, fixed board | C++ · Notes |
cses-2431 |
Digit Queries | arithmetic, digit blocks | O(q log k) / O(log k) | C++ · Notes |
cses-1091 |
Concert Tickets | multiset, binary search | O((n + m) log n) / O(n) | C++ · Notes |
cses-1619 |
Restaurant Customers | sweep line, sorting | O(n log n) / O(n) | C++ · Notes |
cses-1074 |
Stick Lengths | sorting, median | O(n log n) / O(n) | C++ · Notes |
cses-2183 |
Missing Coin Sum | greedy, coverage invariant | O(n log n) / O(n) | C++ · Notes |
cses-2216 |
Collecting Numbers | inverse permutation, scan | O(n) / O(n) | C++ · Notes |
cses-1073 |
Towers | binary search, greedy | O(n log n) / O(n) | C++ · Notes |
cses-1163 |
Traffic Lights | ordered set, multiset, intervals | O(n log n) / O(n) | C++ · Notes |
cses-1630 |
Tasks and Deadlines | greedy, scheduling | O(n log n) / O(n) | C++ · Notes |
cses-1631 |
Reading Books | greedy, lower bounds | O(n) / O(1) | C++ · Notes |
cses-1645 |
Nearest Smaller Values | monotonic stack | O(n) / O(n) | C++ · Notes |
cses-1635 |
Coin Combinations I | dynamic-programming, counting | O(n x) / O(n + x) | C++ · Notes |
cses-1637 |
Removing Digits | dynamic-programming, digits | O(n log n) / O(n) | C++ · Notes |
cses-1638 |
Grid Paths I | dynamic-programming, grid | O(n^2) / O(n) | C++ · Notes |
cses-1746 |
Array Description | dynamic-programming, counting | O(n m) / O(m) | C++ · Notes |
cses-1744 |
Rectangle Cutting | dynamic-programming | O(a b (a + b)) / O(a b) | C++ · Notes |
cses-1745 |
Money Sums | dynamic-programming, subset-sum | O(n S), S = sum of coins / O(S) | C++ · Notes |
cses-1093 |
Two Sets II | dynamic-programming, subset-sum, counting | O(n^3) / O(n^2) | C++ · Notes |
cses-1140 |
Projects | dynamic-programming, sorting, binary-search | O(n log n) / O(n) | C++ · Notes |
cses-1672 |
Shortest Routes II | graphs, shortest-path, floyd-warshall | O(n^3 + m + q) / O(n^2) | C++ · Notes |
cses-1195 |
Flight Discount | graphs, shortest-path, dijkstra, state-expansion | O((n + m) log(n + m)) / O(n + m) | C++ · Notes |
cses-1676 |
Road Construction | graphs, disjoint-set | O(n + m alpha(n)) / O(n) | C++ · Notes |
cses-1681 |
Game Routes | graphs, dynamic-programming, topological-sort | O(n + m) / O(n + m) | C++ · Notes |
cses-1193 |
Labyrinth | graphs, bfs, grid, path-reconstruction | O(n m) / O(n m) | C++ · Notes |
cses-1674 |
Subordinates | trees, subtree, iterative-traversal | O(n) / O(n) | C++ · Notes |
cses-1131 |
Tree Diameter | trees, bfs, diameter | O(n) / O(n) | C++ · Notes |
cses-1132 |
Tree Distances I | trees, bfs, diameter | O(n) / O(n) | C++ · Notes |
cses-1687 |
Company Queries I | trees, binary-lifting | O((n + q) log n) / O(n log n) | C++ · Notes |
cses-1650 |
Range Xor Queries | prefix-xor, range-queries | O(n + q) / O(n) | C++ · Notes |
cses-1651 |
Range Update Queries | fenwick-tree, difference-array, range-queries | O(n + q log n) / O(n) | C++ · Notes |
cses-1732 |
Finding Borders | strings, prefix-function, kmp | O(n) / O(n) | C++ · Notes |
cses-1733 |
Finding Periods | strings, z-function, periods | O(n) / O(n) | C++ · Notes |
cses-1095 |
Exponentiation | mathematics, modular-arithmetic, binary-exponentiation | O(q log(b + 1)) / O(1) | C++ · Notes |
cses-1713 |
Counting Divisors | mathematics, divisors, sieve | O(M log M + n), M = max input / O(M + n) | C++ · Notes |
cses-1081 |
Common Divisors | mathematics, divisors, sieve | O(M log M + n), M = max input / O(M + n) | C++ · Notes |
cses-1712 |
Exponentiation II | mathematics, modular-arithmetic, binary-exponentiation, fermat | O(q (log(c + 1) + log MOD)) / O(1) | C++ · Notes |
codeforces-282A |
Bit++ | implementation, strings | O(n) / O(1) | C++ · Notes |
codeforces-50A |
Domino Piling | mathematics, constructive | O(1) / O(1) | C++ · Notes |
codeforces-112A |
Petya and Strings | strings, implementation | O(n) / O(n) | C++ · Notes |
codeforces-116A |
Tram | implementation, prefix-sum | O(n) / O(1) | C++ · Notes |
codeforces-339A |
Helpful Maths | strings, sorting | O(n log n) / O(n) | C++ · Notes |
codeforces-281A |
Word Capitalization | strings, implementation | O(n) / O(n) | C++ · Notes |
codeforces-59A |
Word | strings, counting | O(n) / O(n) | C++ · Notes |
codeforces-546A |
Soldier and Bananas | mathematics, arithmetic-series | O(1) / O(1) | C++ · Notes |
codeforces-977A |
Wrong Subtraction | implementation, digits | O(k) / O(1) | C++ · Notes |
codeforces-617A |
Elephant | mathematics, greedy | O(1) / O(1) | C++ · Notes |
atcoder-dp_d |
Knapsack 1 | dynamic-programming, knapsack | O(n W) / O(W) | C++ · Notes |
atcoder-dp_e |
Knapsack 2 | dynamic-programming, knapsack | O(n V), V = sum of values / O(V + n) | C++ · Notes |
atcoder-dp_f |
LCS | dynamic-programming, strings, reconstruction | O(n m) / O(n m) | C++ · Notes |
atcoder-dp_g |
Longest Path | dynamic-programming, graphs, topological-sort | O(n + m) / O(n + m) | C++ · Notes |
atcoder-dp_h |
Grid 1 | dynamic-programming, grid | O(H W) / O(W) | C++ · Notes |
atcoder-dp_i |
Coins | dynamic-programming, probability | O(n^2) / O(n) | C++ · Notes |
atcoder-dp_k |
Stones | dynamic-programming, game-theory | O(n K) / O(n + K) | C++ · Notes |
codeforces-236A |
Boy or Girl | strings | O(n log n) / O(n) | C++ · Notes |
codeforces-266A |
Stones on the Table | strings | O(n) / O(n) | C++ · Notes |
codeforces-791A |
Bear and Big Brother | simulation | O(log(b/a) + 1) / O(1) | C++ · Notes |
codeforces-110A |
Nearly Lucky Number | strings | O(n) / O(n) | C++ · Notes |
codeforces-266B |
Queue at the School | simulation | O(n t) / O(n) | C++ · Notes |
codeforces-96A |
Football | strings | O(n) / O(n) | C++ · Notes |
codeforces-344A |
Magnets | simulation | O(n) / O(1) | C++ · Notes |
codeforces-467A |
George and Accommodation | counting | O(n) / O(1) | C++ · Notes |
codeforces-1030A |
In Search of an Easy Problem | implementation | O(n) / O(1) | C++ · Notes |
codeforces-734A |
Anton and Danik | counting | O(n) / O(n) | C++ · Notes |
codeforces-200B |
Drinks | mathematics | O(n) / O(1) | C++ · Notes |
codeforces-228A |
Is your horseshoe on the other hoof? | counting | O(1) / O(1) | C++ · Notes |
codeforces-705A |
Hulk | strings | O(n) / O(1) | C++ · Notes |
codeforces-148A |
Insomnia cure | enumeration | O(d) / O(1) | C++ · Notes |
codeforces-469A |
I Wanna Be the Guy | sets | O(n) / O(n) | C++ · Notes |
codeforces-268A |
Games | enumeration | O(n^2) / O(n) | C++ · Notes |
codeforces-41A |
Translation | strings | O(n) / O(n) | C++ · Notes |
codeforces-520A |
Pangram | strings | O(n) / O(n) | C++ · Notes |
codeforces-443A |
Anton and Letters | strings | O(n) / O(n) | C++ · Notes |
codeforces-133A |
HQ9+ | strings | O(n) / O(n) | C++ · Notes |
codeforces-122A |
Lucky Division | enumeration | O(1) / O(1) | C++ · Notes |
codeforces-318A |
Even Odds | mathematics | O(1) / O(1) | C++ · Notes |
codeforces-486A |
Calculating Function | mathematics | O(1) / O(1) | C++ · Notes |
codeforces-996A |
Hit the Lottery | greedy | O(1) / O(1) | C++ · Notes |
codeforces-1352A |
Sum of Round Numbers | mathematics | O(log n) per case / O(log n) | C++ · Notes |
codeforces-1328A |
Divisibility Problem | mathematics | O(1) per case / O(1) | C++ · Notes |
codeforces-758A |
Holiday Of Equality | greedy | O(n) / O(n) | C++ · Notes |
codeforces-581A |
Vasya the Hipster | mathematics | O(1) / O(1) | C++ · Notes |
codeforces-432A |
Choosing Teams | counting | O(n) / O(1) | C++ · Notes |
codeforces-151A |
Soft Drinking | mathematics | O(1) / O(1) | C++ · Notes |
codeforces-472A |
Design Tutorial: Learn from Math | constructive | O(1) / O(1) | C++ · Notes |
codeforces-25A |
IQ test | counting | O(n) / O(n) | C++ · Notes |
codeforces-405A |
Gravity Flip | sorting | O(n log n) / O(n) | C++ · Notes |
codeforces-337A |
Puzzles | sorting | O(m log m) / O(m) | C++ · Notes |
codeforces-160A |
Twins | greedy | O(n log n) / O(n) | C++ · Notes |
codeforces-230A |
Dragons | greedy | O(n log n) / O(n) | C++ · Notes |
codeforces-492A |
Vanya and Cubes | simulation | O(n^(1/3)) / O(1) | C++ · Notes |
codeforces-677A |
Vanya and Fence | implementation | O(n) / O(1) | C++ · Notes |
codeforces-703A |
Mishka and Game | simulation | O(n) / O(1) | C++ · Notes |
codeforces-136A |
Presents | arrays | O(n) / O(n) | C++ · Notes |
codeforces-271A |
Beautiful Year | enumeration | O(gap) / O(1) | C++ · Notes |
codeforces-61A |
Ultra-Fast Mathematician | strings | O(n) / O(n) | C++ · Notes |
codeforces-69A |
Young Physicist | mathematics | O(n) / O(1) | C++ · Notes |
codeforces-144A |
Arrival of the General | greedy | O(n) / O(n) | C++ · Notes |
codeforces-155A |
I_love_%username% | arrays | O(n) / O(1) | C++ · Notes |
codeforces-1097A |
Gennady and a Card Game | strings | O(1) / O(1) | C++ · Notes |
codeforces-1154A |
Restoring Three Numbers | mathematics | O(1) / O(1) | C++ · Notes |
codeforces-1294A |
Collecting Coins | mathematics | O(1) per case / O(1) | C++ · Notes |
codeforces-1374A |
Required Remainder | mathematics | O(1) per case / O(1) | C++ · Notes |
codeforces-1374B |
Multiply by 2, divide by 6 | number_theory | O(log n) per case / O(1) | C++ · Notes |
codeforces-1367A |
Short Substrings | strings | O(n) / O(n) | C++ · Notes |
codeforces-1367B |
Even Array | greedy | O(n) per case / O(1) | C++ · Notes |
codeforces-1367C |
Social Distance | greedy | O(n) per case / O(n) | C++ · Notes |
codeforces-1360A |
Minimal Square | geometry | O(1) per case / O(1) | C++ · Notes |
codeforces-1360B |
Honest Coach | sorting | O(n log n) per case / O(n) | C++ · Notes |
codeforces-1353A |
Most Unstable Array | mathematics | O(1) per case / O(1) | C++ · Notes |
codeforces-1353B |
Two Arrays And Swaps | greedy | O(n log n) per case / O(n) | C++ · Notes |
codeforces-1343A |
Candies | mathematics | O(log n) per case / O(1) | C++ · Notes |
codeforces-1343B |
Balanced Array | constructive | O(n) per case / O(1) | C++ · Notes |
codeforces-732A |
Buy a Shovel | enumeration | O(1) / O(1) | C++ · Notes |
codeforces-731A |
Night at the Museum | greedy | O(n) / O(n) | C++ · Notes |
codeforces-1409A |
Yet Another Two Integers Problem | mathematics | O(1) per case / O(1) | C++ · Notes |
codeforces-1399A |
Remove Smallest | sorting | O(n log n) per case / O(n) | C++ · Notes |
codeforces-1399B |
Gifts Fixing | greedy | O(n) per case / O(n) | C++ · Notes |
codeforces-1399C |
Boats Competition | two_pointers | O(n^2) per case / O(n) | C++ · Notes |
codeforces-1472A |
Cards for Friends | mathematics | O(log w + log h) per case / O(1) | C++ · Notes |
codeforces-1472B |
Fair Division | mathematics | O(n) per case / O(1) | C++ · Notes |
codeforces-1472C |
Long Jumps | dynamic_programming | O(n) per case / O(n) | C++ · Notes |
codeforces-1520A |
Do Not Be Distracted! | strings | O(n) per case / O(n) | C++ · Notes |
codeforces-1520B |
Ordinary Numbers | enumeration | O(log n) per case / O(1) | C++ · Notes |
codeforces-1520D |
Same Differences | counting | O(n log n) per case / O(n) | C++ · Notes |
codeforces-1535A |
Fair Playoff | mathematics | O(1) per case / O(1) | C++ · Notes |
codeforces-1542A |
Odd Set | counting | O(n) per case / O(1) | C++ · Notes |
codeforces-1547A |
Shortest Path with Obstacle | geometry | O(1) per case / O(1) | C++ · Notes |
codeforces-1547B |
Alphabetical Strings | strings | O(n) per case / O(n) | C++ · Notes |
codeforces-1560A |
Dislike of Threes | enumeration | O(K + t), K = maximum supported rank / O(K) | C++ · Notes |
codeforces-1560B |
Who's Opposite? | mathematics | O(1) per case / O(1) | C++ · Notes |
codeforces-1560C |
Infinity Table | mathematics | O(1) per case / O(1) | C++ · Notes |
codeforces-1582A |
Luntik and Concerts | mathematics | O(1) per case / O(1) | C++ · Notes |
codeforces-1582B |
Luntik and Subsequences | counting | O(n) per case / O(1) | C++ · Notes |
codeforces-1593A |
Elections | mathematics | O(1) per case / O(1) | C++ · Notes |
codeforces-1607A |
Linear Keyboard | strings | O(n) per case / O(n) | C++ · Notes |
codeforces-1607B |
Odd Grasshopper | mathematics | O(1) per case / O(1) | C++ · Notes |
codeforces-1619A |
Square String? | strings | O(n) per case / O(n) | C++ · Notes |
codeforces-1624A |
Plus One on the Subset | greedy | O(n) per case / O(n) | C++ · Notes |
codeforces-1624B |
Make AP | mathematics | O(1) per case / O(1) | C++ · Notes |
codeforces-1633A |
Div. 7 | constructive | O(1) per case / O(1) | C++ · Notes |
codeforces-1669A |
Division? | implementation | O(1) per case / O(1) | C++ · Notes |
codeforces-1669B |
Triple | counting | O(n) per case / O(n) | C++ · Notes |
codeforces-1669C |
Odd/Even Increments | invariants | O(n) per case / O(1) | C++ · Notes |
codeforces-1676A |
Lucky? | strings | O(1) per case / O(1) | C++ · Notes |
codeforces-1676B |
Equal Candies | greedy | O(n) per case / O(n) | C++ · Notes |
codeforces-1676C |
Most Similar Words | enumeration | O(n^2 m) per case / O(n m) | C++ · Notes |
codeforces-1676D |
X-Sum | prefix_sums | O(n m) per case / O(n m) | C++ · Notes |
codeforces-1692A |
Marathon | counting | O(1) per case / O(1) | C++ · Notes |
codeforces-1692B |
All Distinct | greedy | O(n log n) per case / O(n) | C++ · Notes |
codeforces-1692C |
Where's the Bishop? | grid | O(1) / O(1) | C++ · Notes |
codeforces-1703A |
YES or YES? | strings | O(1) per case / O(1) | C++ · Notes |
codeforces-1703B |
ICPC Balloons | counting | O(n) per case / O(n) | C++ · Notes |
codeforces-1703C |
Cypher | simulation | O(total moves) per case / O(n) | C++ · Notes |
atcoder-abc086_a |
Product | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc081_a |
Placing Marbles | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc081_b |
Shift only | implementation | O(n log A) / O(1) | C++ · Notes |
atcoder-abc087_b |
Coins | implementation | O(A B) / O(1) | C++ · Notes |
atcoder-abc083_b |
Some Sums | implementation | O(n log n) / O(1) | C++ · Notes |
atcoder-abc088_b |
Card Game for Two | implementation | O(n log n) / O(n) | C++ · Notes |
atcoder-abc085_b |
Kagami Mochi | implementation | O(n log n) / O(n) | C++ · Notes |
atcoder-abc087_c |
Candies | prefix_sums | O(n) / O(n) | C++ · Notes |
atcoder-abc049_c |
Daydream | dynamic_programming | O(n) / O(n) | C++ · Notes |
atcoder-abc086_c |
Traveling | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc104_c |
All Green | bitmasks | O(D 2^D) / O(D) | C++ · Notes |
atcoder-abc088_c |
Takahashi's Information | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc093_c |
Same Integers | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc095_c |
Half and Half | implementation | O(max(X,Y)) / O(1) | C++ · Notes |
atcoder-abc098_c |
Attention | prefix_sums | O(n) / O(n) | C++ · Notes |
atcoder-abc099_c |
Strange Bank | dynamic_programming | O(n log n) / O(n) | C++ · Notes |
atcoder-abc100_c |
*3 or /2 | implementation | O(n log A) / O(1) | C++ · Notes |
atcoder-abc102_c |
Linear Approximation | sorting | O(n log n) / O(n) | C++ · Notes |
atcoder-abc103_c |
Modulo Summation | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc104_b |
AcCepted | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc105_b |
Cakes and Donuts | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc106_c |
To Infinity | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc107_c |
Candles | sliding_window | O(n) / O(n) | C++ · Notes |
atcoder-abc108_c |
Triangular Relationship | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc109_b |
Shiritori | implementation | O(n L log n) / O(n L) | C++ · Notes |
atcoder-abc110_b |
1 Dimensional World's Tale | implementation | O(n+m) / O(1) | C++ · Notes |
atcoder-abc111_c |
//// | implementation | O(n+V log V) / O(V) | C++ · Notes |
atcoder-abc112_b |
Time Limit Exceeded | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc113_c |
ID | sorting | O(M log M) / O(M) | C++ · Notes |
atcoder-abc114_b |
754 | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc114_c |
755 | recursion | O(3^digits(N)) / O(digits(N)) | C++ · Notes |
atcoder-abc115_c |
Christmas Eve | sorting | O(n log n) / O(n) | C++ · Notes |
atcoder-abc116_c |
Grand Garden | greedy | O(n) / O(1) | C++ · Notes |
atcoder-abc117_c |
Streamline | greedy | O(M log M) / O(M) | C++ · Notes |
atcoder-abc118_c |
Monsters Battle Royale | number_theory | O(n log A) / O(1) | C++ · Notes |
atcoder-abc119_c |
Synthetic Kadomatsu | enumeration | O(n 4^n) / O(n) | C++ · Notes |
atcoder-abc120_c |
Unification | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc121_c |
Energy Drink Collector | greedy | O(n log n) / O(n) | C++ · Notes |
atcoder-abc122_c |
GeT AC | prefix_sums | O(n+q) / O(n) | C++ · Notes |
atcoder-abc123_c |
Five Transportations | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc124_c |
Coloring Colorfully | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc125_c |
GCD on Blackboard | prefix_sums | O(n log A) / O(n) | C++ · Notes |
atcoder-abc126_c |
Dice and Coin | probability | O(n log K) / O(1) | C++ · Notes |
atcoder-abc127_c |
Prison | implementation | O(M) / O(1) | C++ · Notes |
atcoder-abc128_c |
Switches | bitmasks | O(2^N M N) / O(M) | C++ · Notes |
atcoder-abc129_c |
Typical Stairs | dynamic_programming | O(n) / O(n) | C++ · Notes |
atcoder-abc130_b |
Bounding | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc131_c |
Anti-Division | number_theory | O(log(min(C,D))) / O(1) | C++ · Notes |
atcoder-abc132_c |
Divide the Problems | sorting | O(n log n) / O(n) | C++ · Notes |
atcoder-abc133_c |
Remainder Minimization 2019 | implementation | O(min(R-L,2019)^2) / O(1) | C++ · Notes |
atcoder-abc134_c |
Exception Handling | sorting | O(n log n) / O(n) | C++ · Notes |
atcoder-abc135_c |
City Savers | greedy | O(n) / O(n) | C++ · Notes |
atcoder-abc136_c |
Build Stairs | greedy | O(n) / O(1) | C++ · Notes |
atcoder-abc137_c |
Green Bin | counting | O(n L(log L+log n)) / O(n L) | C++ · Notes |
atcoder-abc139_c |
Lower | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc140_c |
Maximal Value | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc141_c |
Attack Survival | implementation | O(n+q) / O(n) | C++ · Notes |
atcoder-abc142_c |
Go to School | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc143_c |
Slimes | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc144_c |
Walk on Multiplication Table | number_theory | O(sqrt(N)) / O(1) | C++ · Notes |
atcoder-abc146_c |
Buy an Integer | binary_search | O(log(10^9) log(10^9)) / O(log(10^9)) | C++ · Notes |
atcoder-abc147_c |
HonestOrUnkind2 | bitmasks | O(2^n n^2) / O(n^2) | C++ · Notes |
atcoder-abc148_c |
Snack | number_theory | O(log(min(A,B))) / O(1) | C++ · Notes |
atcoder-abc149_c |
Next Prime | number_theory | O((P-X+1) sqrt(P)) / O(1) | C++ · Notes |
atcoder-abc150_c |
Count Order | enumeration | O(n n!) / O(n) | C++ · Notes |
atcoder-abc151_c |
Welcome to AtCoder | implementation | O(n+m) / O(n) | C++ · Notes |
atcoder-abc152_c |
Low Elements | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc153_c |
Fennec vs Monster | greedy | O(n log n) / O(n) | C++ · Notes |
atcoder-abc154_c |
Distinct or Not | implementation | O(n log n) / O(n) | C++ · Notes |
atcoder-abc155_c |
Poll | counting | O(n L log n) / O(n L) | C++ · Notes |
atcoder-abc156_c |
Rally | implementation | O(100 n) / O(n) | C++ · Notes |
atcoder-abc157_c |
Guess The Number | implementation | O(10^N M) / O(M+N) | C++ · Notes |
atcoder-abc158_c |
Tax Increase | implementation | O(1000) / O(1) | C++ · Notes |
atcoder-abc160_c |
Traveling Salesman around Lake | greedy | O(n) / O(n) | C++ · Notes |
atcoder-abc161_c |
Replacing Integer | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc162_c |
Sum of gcd of Tuples (Easy) | number_theory | O(K^3 log K) / O(1) | C++ · Notes |
atcoder-abc163_c |
management | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc164_c |
gacha | implementation | O(n L log n) / O(n L) | C++ · Notes |
atcoder-abc165_c |
Many Requirements | recursion | O(Q binomial(N+M-1,N)) / O(N+Q) | C++ · Notes |
atcoder-abc166_c |
Peaks | graphs | O(n+m) / O(n) | C++ · Notes |
cses-1660 |
Subarray Sums I | sliding_window | O(n) / O(n) | C++ · Notes |
cses-1662 |
Subarray Divisibility | prefix_sums | O(n) / O(n) | C++ · Notes |
cses-2428 |
Distinct Values Subarrays II | sliding_window | O(n log k) / O(n) | C++ · Notes |
cses-1085 |
Array Division | binary_search | O(n log(sum A)) / O(n) | C++ · Notes |
cses-1644 |
Maximum Subarray Sum II | prefix_sums | O(n log n) / O(n) | C++ · Notes |
cses-1632 |
Movie Festival II | greedy | O(n log n) / O(n) | C++ · Notes |
cses-1144 |
Salary Queries | fenwick | O((n+q) log(n+q)) / O(n+q) | C++ · Notes |
cses-1652 |
Forest Queries | prefix_sums | O(n^2+q) / O(n^2) | C++ · Notes |
cses-1647 |
Static Range Minimum Queries | sparse_table | O(n log n+q) / O(n log n) | C++ · Notes |
cses-1143 |
Hotel Queries | segment_tree | O(n+m log n) / O(n) | C++ · Notes |
cses-1749 |
List Removals | segment_tree | O(n log n) / O(n) | C++ · Notes |
cses-1133 |
Tree Distances II | trees | O(n) / O(n) | C++ · Notes |
cses-1135 |
Distance Queries | trees | O((n+q) log n) / O(n log n) | C++ · Notes |
cses-1688 |
Company Queries II | trees | O((n+q) log n) / O(n log n) | C++ · Notes |
cses-1137 |
Subtree Queries | fenwick | O((n+q) log n) / O(n) | C++ · Notes |
cses-2413 |
Counting Towers | dynamic_programming | O(max n+t) / O(max n+t) | C++ · Notes |
cses-1097 |
Removal Game | dynamic_programming | O(n^2) / O(n) | C++ · Notes |
cses-1653 |
Elevator Rides | bitmask_dp | O(n 2^n) / O(2^n) | C++ · Notes |
cses-2181 |
Counting Tilings | profile_dp | O(m 4^n) / O(4^n) | C++ · Notes |
cses-1722 |
Fibonacci Numbers | number_theory | O(log n) / O(log n) | C++ · Notes |
atcoder-abc100_a |
Happy Birthday! | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc100_b |
Ringo's Favorite Numbers | implementation | O(D) / O(1) | C++ · Notes |
atcoder-abc101_a |
Eating Symbols Easy | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc101_b |
Digit Sums | implementation | O(log N) / O(1) | C++ · Notes |
atcoder-abc102_a |
Multiple of 2 and N | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc102_b |
Maximum Difference | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc103_a |
Task Scheduling Problem | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc103_b |
String Rotation | implementation | O(n^2) / O(n) | C++ · Notes |
atcoder-abc104_a |
Rated for Me | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc105_a |
AtCoder Crackers | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc106_a |
Garden | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc106_b |
105 | implementation | O(N^2) / O(1) | C++ · Notes |
atcoder-abc107_a |
Train | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc107_b |
Grid Compression | implementation | O(H W) / O(H W) | C++ · Notes |
atcoder-abc108_a |
Pair | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc108_b |
Ruined Square | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc109_a |
ABC333 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc110_a |
Maximize the Formula | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc111_a |
AtCoder Beginner Contest 999 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc111_b |
AtCoder Beginner Contest 111 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc112_a |
Programming Education | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc113_a |
Discount Fare | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc113_b |
Palace | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc114_a |
753 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc115_a |
Christmas Eve Eve Eve | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc115_b |
Christmas Eve Eve | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc116_a |
Right Triangle | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc116_b |
Collatz Problem | implementation | O(m log m) / O(m) | C++ · Notes |
atcoder-abc117_a |
Entrance Examination | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc117_b |
Polygon | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc118_a |
B +/- A | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc118_b |
Foods Loved by Everyone | implementation | O(N M) / O(M) | C++ · Notes |
atcoder-abc119_a |
Still TBD | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc119_b |
Digital Gifts | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc120_a |
Favorite Sound | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc120_b |
K-th Common Divisor | implementation | O(min(A,B)) / O(1) | C++ · Notes |
atcoder-abc121_a |
White Cells | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc121_b |
Can you solve this? | implementation | O(N M) / O(M) | C++ · Notes |
atcoder-abc122_a |
Double Helix | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc122_b |
ATCoder | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc123_a |
Five Antennas | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc123_b |
Five Dishes | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc124_a |
Buttons | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc124_b |
Great Ocean View | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc125_a |
Biscuit Generator | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc125_b |
Resale | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc126_a |
Changing a Character | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc126_b |
YYMM or MMYY | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc127_a |
Ferris Wheel | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc127_b |
Algae | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc128_a |
Apple Pie | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc128_b |
Guidebook | implementation | O(n L log n) / O(n L) | C++ · Notes |
atcoder-abc129_a |
Airplane | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc129_b |
Balance | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc130_a |
Rounding | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc131_a |
Security | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc131_b |
Bite Eating | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc132_a |
Fifty-Fifty | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc132_b |
Ordinary Number | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc133_a |
T or T | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc133_b |
Good Distance | implementation | O(N^2 (D+sqrt(D) X)) / O(N D) | C++ · Notes |
atcoder-abc134_a |
Dodecagon | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc134_b |
Golden Apple | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc135_a |
Harmony | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc135_b |
0 or 1 Swap | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc136_a |
Transfer | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc136_b |
Uneven Numbers | implementation | O(N log N) / O(log N) | C++ · Notes |
atcoder-abc137_a |
+-x | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc137_b |
One Clue | implementation | O(K) / O(1) | C++ · Notes |
atcoder-abc138_a |
Red or Not | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc138_b |
Resistors in Parallel | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc139_a |
Tenki | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc139_b |
Power Socket | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc140_a |
Password | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc140_b |
Buffet | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc141_a |
Weather Prediction | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc141_b |
Tap Dance | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc142_a |
Odds of Oddness | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc142_b |
Roller Coaster | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc143_a |
Curtain | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc143_b |
TAKOYAKI FESTIVAL 2019 | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc144_a |
9x9 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc144_b |
81 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc145_a |
Circle | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc145_b |
Echo | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc146_a |
Can't Wait for Holiday | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc146_b |
ROT N | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc147_a |
Blackjack | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc147_b |
Palindrome-philia | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc148_a |
Round One | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc148_b |
Strings with the Same Length | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc149_a |
Strings | implementation | O( | S |
atcoder-abc149_b |
Greedy Takahashi | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc150_a |
500 Yen Coins | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc150_b |
Count ABC | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc151_a |
Next Alphabet | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc151_b |
Achieve the Goal | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc152_a |
AC or WA | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc152_b |
Comparing Strings | implementation | O(a+b) / O(a+b) | C++ · Notes |
atcoder-abc153_b |
Common Raccoon vs Monster | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc153_a |
Serval vs Monster | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc154_a |
Remaining Balls | implementation | O( | S |
atcoder-abc154_b |
I miss you... | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc155_a |
Poor | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc155_b |
Papers, Please | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc156_a |
Beginner | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc156_b |
Digits | implementation | O(log_K N) / O(1) | C++ · Notes |
atcoder-abc157_a |
Duplex Printing | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc157_b |
Bingo | implementation | O(N) / O(1) | C++ · Notes |
atcoder-abc158_a |
Station and Bus | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc158_b |
Count Balls | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc159_a |
The Number of Even Pairs | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc159_b |
String Palindrome | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc160_a |
Coffee | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc160_b |
Golden Coins | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc161_a |
ABC Swap | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc161_b |
Popular Vote | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc162_a |
Lucky 7 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc162_b |
FizzBuzz Sum | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc163_a |
Circle Pond | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc163_b |
Homework | implementation | O(M) / O(1) | C++ · Notes |
atcoder-abc164_a |
Sheep and Wolves | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc164_b |
Battle | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc165_a |
We Love Golf | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc165_b |
1% | implementation | O(log X) / O(1) | C++ · Notes |
atcoder-abc166_a |
A?C | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc166_b |
Trick or Treat | implementation | O(N+total owners) / O(N) | C++ · Notes |
atcoder-abc167_a |
Registration | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc167_b |
Easy Linear Programming | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc168_a |
∴ (Therefore) | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc168_b |
... (Triple Dots) | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc169_a |
Multiplication 1 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc169_b |
Multiplication 2 | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc170_a |
Five Variables | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc170_b |
Crane and Turtle | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc171_a |
αlphabet | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc171_b |
Mix Juice | implementation | O(n log n) / O(n) | C++ · Notes |
atcoder-abc172_a |
Calc | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc172_b |
Minor Change | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc173_a |
Payment | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc173_b |
Judge Status Summary | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc174_a |
Air Conditioner | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc174_b |
Distance | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc175_a |
Rainy Season | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc175_b |
Making Triangle | implementation | O(n^3) / O(n) | C++ · Notes |
atcoder-abc176_a |
Takoyaki | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc176_b |
Multiple of 9 | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc177_a |
Don't be late | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc177_b |
Substring | implementation | O( | S |
atcoder-abc178_a |
Not | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc178_b |
Product Max | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc179_a |
Plural Form | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc179_b |
Go to Jail | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc180_a |
box | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc180_b |
Various distances | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc181_a |
Heavy Rotation | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc181_b |
Trapezoid Sum | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc182_a |
twiblr | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc182_b |
Almost GCD | implementation | O(1000 n) / O(n) | C++ · Notes |
atcoder-abc183_a |
ReLU | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc183_b |
Billiards | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc184_a |
Determinant | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc184_b |
Quizzes | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc185_a |
ABC Preparation | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc185_b |
Smartphone Addiction | implementation | O(M) / O(1) | C++ · Notes |
atcoder-abc186_a |
Brick | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc186_b |
Blocks on Grid | implementation | O(H W) / O(1) | C++ · Notes |
atcoder-abc187_a |
Large Digits | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc187_b |
Gentle Pairs | implementation | O(n^2) / O(n) | C++ · Notes |
atcoder-abc188_a |
Three-Point Shot | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc188_b |
Orthogonality | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc189_a |
Slot | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc189_b |
Alcoholic | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc190_a |
Very Very Primitive Game | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc190_b |
Magic 3 | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc191_a |
Vanishing Pitch | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc191_b |
Remove It | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc192_a |
Star | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc192_b |
uNrEaDaBlE sTrInG | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc193_a |
Discount | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc193_b |
Play Snuke | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc194_a |
I Scream | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc194_b |
Job Assignment | implementation | O(n^2) / O(n) | C++ · Notes |
atcoder-abc195_a |
Health M Death | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc195_b |
Many Oranges | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc196_a |
Difference Max | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc196_b |
Round Down | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc197_a |
Rotate | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc197_b |
Visibility | implementation | O(H W) / O(H W) | C++ · Notes |
atcoder-abc198_a |
Div | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc198_b |
Palindrome with leading zeros | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc199_a |
Square Inequality | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc199_b |
Intersection | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc200_a |
Century | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc200_b |
200th ABC-200 | implementation | O(K) / O(1) | C++ · Notes |
atcoder-abc201_a |
Tiny Arithmetic Sequence | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc201_b |
Do you know the second highest mountain? | implementation | O(n log n+total name length) / O(n+total name length) | C++ · Notes |
atcoder-abc202_a |
Three Dice | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc202_b |
180° | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc203_a |
Chinchirorin | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc203_b |
AtCoder Condominium | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc204_a |
Rock-paper-scissors | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc204_b |
Nuts | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc205_a |
kcal | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc205_b |
Permutation Check | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc206_a |
Maxi-Buying | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc206_b |
Savings | implementation | O(sqrt(N)) / O(1) | C++ · Notes |
atcoder-abc207_a |
Repression | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc207_b |
Hydrate | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc208_a |
Rolling Dice | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc208_b |
Factorial Yen Coin | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc209_a |
Counting | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc209_b |
Can you buy them all? | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc210_a |
Cabbages | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc210_b |
Bouzu Mekuri | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc211_a |
Blood Pressure | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc211_b |
Cycle Hit | implementation, strings, ordered-containers | O(1) / O(1) | C++ · Notes |
atcoder-abc212_a |
Alloy | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc212_b |
Weak Password | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc213_a |
Bitwise Exclusive Or | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc213_b |
Booby Prize | implementation, sorting | O(n log n) / O(n) | C++ · Notes |
atcoder-abc214_a |
New Generation ABC | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc214_b |
How many? | implementation | O(S^3) / O(1) | C++ · Notes |
atcoder-abc215_a |
Your First Judge | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc215_b |
log2(N) | implementation | O(log N) / O(1) | C++ · Notes |
atcoder-abc216_a |
Signed Difficulty | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc216_b |
Same Name | implementation, strings, ordered-containers | O(n L log n) / O(n L) | C++ · Notes |
atcoder-abc217_a |
Lexicographic Order | implementation, strings | O( | S |
atcoder-abc217_b |
AtCoder Quiz | implementation, strings, ordered-containers | O(1) / O(1) | C++ · Notes |
atcoder-abc218_a |
Weather Forecast | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc218_b |
qwerty | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc219_a |
AtCoder Quiz 2 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc219_b |
Maritozzo | implementation, strings | O(output length) / O(input length) | C++ · Notes |
atcoder-abc220_a |
Find Multiple | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc220_b |
Base K | implementation, strings | O( | A |
atcoder-abc221_a |
Seismic magnitude scales | implementation | O(A-B) / O(1) | C++ · Notes |
atcoder-abc221_b |
typo | implementation, strings | O(n^2) / O(n) | C++ · Notes |
atcoder-abc222_a |
Four Digits | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc222_b |
Failing Grade | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc223_a |
Exact Price | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc223_b |
String Shifting | implementation, strings | O(n^2) / O(n) | C++ · Notes |
atcoder-abc224_a |
Tires | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc224_b |
Mongeness | implementation, matrices | O(HW) / O(HW) | C++ · Notes |
atcoder-abc225_a |
Distinct Strings | implementation, strings, sorting | O(1) / O(1) | C++ · Notes |
atcoder-abc225_b |
Star or Not | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc226_a |
Round decimals | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc226_b |
Counting Arrays | implementation, ordered-containers | O(L log n), L = total input length / O(L) | C++ · Notes |
atcoder-abc227_a |
Last Card | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc227_b |
KEYENCE building | implementation | O(M^2+n), M=1000 / O(M) | C++ · Notes |
atcoder-abc228_a |
On and Off | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc228_b |
Takahashi's Secret | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc229_a |
First Grid | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc229_b |
Hard Calculation | implementation | O(log(max(A,B))) / O(1) | C++ · Notes |
atcoder-abc230_a |
AtCoder Quiz 3 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc230_b |
Triple Metre | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc231_a |
Water Pressure | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc231_b |
Election | implementation, strings, ordered-containers | O(n L log n) / O(n L) | C++ · Notes |
atcoder-abc232_a |
QQ solver | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc232_b |
Caesar Cipher | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc233_a |
10yen Stamp | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc233_b |
A Reverse | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc234_a |
Weird Function | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc234_b |
Longest Segment | implementation | O(n^2) / O(n) | C++ · Notes |
atcoder-abc235_a |
Rotate | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc235_b |
Climbing Takahashi | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc236_a |
chukodai | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc236_b |
Who is missing? | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc237_a |
Not Overflow | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc237_b |
Matrix Transposition | implementation, matrices | O(HW) / O(HW) | C++ · Notes |
atcoder-abc238_a |
Exponential or Quadratic | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc238_b |
Pizza | implementation, sorting | O(n log n) / O(n) | C++ · Notes |
atcoder-abc239_a |
Horizon | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc239_b |
Integer Division | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc240_a |
Edge Checker | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc240_b |
Count Distinct Integers | implementation, ordered-containers | O(n log n) / O(n) | C++ · Notes |
atcoder-abc241_a |
Digit Machine | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc241_b |
Pasta | implementation, ordered-containers | O((N+M) log N) / O(N) | C++ · Notes |
atcoder-abc242_a |
T-shirt | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc242_b |
Minimize Ordering | implementation, strings, sorting | O(n log n) / O(n) | C++ · Notes |
atcoder-abc243_a |
Shampoo | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc243_b |
Hit and Blow | implementation | O(n^2) / O(n) | C++ · Notes |
atcoder-abc244_a |
Last Letter | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc244_b |
Go Straight and Turn Right | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc245_a |
Good morning | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc245_b |
Mex | implementation | O(n+2001) / O(2001) | C++ · Notes |
atcoder-abc246_a |
Four Points | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc246_b |
Get Closer | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc247_a |
Move Right | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc247_b |
Unique Nicknames | implementation, strings | O(n^2 L) / O(n L) | C++ · Notes |
atcoder-abc248_a |
Lacked Number | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc248_b |
Slimes | implementation | O(log_K(B/A)+1) / O(1) | C++ · Notes |
atcoder-abc249_a |
Jogging | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc249_b |
Perfect String | implementation, strings, ordered-containers | O(n log 52) / O(n) | C++ · Notes |
atcoder-abc250_a |
Adjacent Squares | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc250_b |
Enlarged Checker Board | implementation | O(N^2 AB) / O(1) | C++ · Notes |
atcoder-abc251_a |
Six Characters | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc251_b |
At Most 3 (Judge ver.) | implementation | O(n^3+W) / O(n+W) | C++ · Notes |
atcoder-abc252_a |
ASCII code | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc252_b |
Takahashi's Failure | implementation | O(N+K) / O(N) | C++ · Notes |
atcoder-abc253_a |
Median? | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc253_b |
Distance Between Tokens | implementation, strings | O(HW) / O(W) | C++ · Notes |
atcoder-abc254_a |
Last Two Digits | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc254_b |
Practical Computing | implementation | O(n^2) / O(n) | C++ · Notes |
atcoder-abc255_a |
You should output ARC, though this is ABC. | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc255_b |
Light It Up | implementation | O(NK) / O(N+K) | C++ · Notes |
atcoder-abc256_a |
2^N | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc256_b |
Batters | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc257_a |
A to Z String 2 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc257_b |
1D Pawn | implementation | O(K+Q) / O(K) | C++ · Notes |
atcoder-abc258_a |
When? | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc258_b |
Number Box | implementation, strings | O(n^3) / O(n^2) | C++ · Notes |
atcoder-abc259_a |
Growth Record | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc259_b |
Counterclockwise Rotation | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc260_a |
A Unique Letter | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc260_b |
Better Students Are Needed! | implementation, sorting | O(n log n) / O(n) | C++ · Notes |
atcoder-abc261_a |
Intersection | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc261_b |
Tournament Result | implementation, strings | O(n^2) / O(n^2) | C++ · Notes |
atcoder-abc262_a |
World Cup | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc262_b |
Triangle (Easier) | implementation, matrices | O(n^3+M) / O(n^2) | C++ · Notes |
atcoder-abc263_a |
Full House | implementation, sorting | O(1) / O(1) | C++ · Notes |
atcoder-abc263_b |
Ancestor | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc264_a |
"atcoder".substr() | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc264_b |
Nice Grid | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc265_a |
Apple | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc265_b |
Explore | implementation | O(N+M) / O(N) | C++ · Notes |
atcoder-abc266_a |
Middle Letter | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc266_b |
Modulo Number | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc267_a |
Saturday | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc267_b |
Split? | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc268_a |
Five Integers | implementation, ordered-containers | O(1) / O(1) | C++ · Notes |
atcoder-abc268_b |
Prefix? | implementation, strings | O( | S |
atcoder-abc269_a |
Anyway Takahashi | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc269_b |
Rectangle Detection | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc270_a |
1-2-4 Test | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc270_b |
Hammer | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc271_a |
484558 | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc271_b |
Maintain Multiple Sequences | implementation, matrices | O(total length+Q) / O(total length+N) | C++ · Notes |
atcoder-abc272_a |
Integer Sum | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc272_b |
Everyone is Friends | implementation, matrices | O(sum(k_i^2)+N^2) / O(N^2) | C++ · Notes |
atcoder-abc273_a |
A Recursive Function | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc273_b |
Broken Rounding | implementation | O(K) / O(1) | C++ · Notes |
atcoder-abc274_a |
Batting Average | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc274_b |
Line Sensor | implementation, strings | O(HW) / O(W) | C++ · Notes |
atcoder-abc275_a |
Find Takahashi | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc275_b |
ABC-DEF | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc276_a |
Rightmost | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc276_b |
Adjacency List | implementation, sorting, matrices | O(N+M log M) / O(N+M) | C++ · Notes |
atcoder-abc277_a |
^{-1} | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc277_b |
Playing Cards Validation | implementation, strings, ordered-containers | O(n log n) / O(n) | C++ · Notes |
atcoder-abc278_a |
Shift | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc278_b |
Misjudge the Time | implementation | O(24*60) / O(1) | C++ · Notes |
atcoder-abc279_a |
wwwvvvvvv | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc279_b |
LOOKUP | implementation, strings | O( | S |
atcoder-abc280_a |
Pawn on a Grid | implementation, strings | O(HW) / O(W) | C++ · Notes |
atcoder-abc280_b |
Inverse Prefix Sum | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc281_a |
Count Down | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc281_b |
Sandwich Number | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc282_a |
Generalized ABC | implementation | O(K) / O(1) | C++ · Notes |
atcoder-abc282_b |
Let's Get a Perfect Score | implementation, strings | O(N^2 M) / O(NM) | C++ · Notes |
atcoder-abc283_a |
Power | implementation | O(B) / O(1) | C++ · Notes |
atcoder-abc283_b |
First Query Problem | implementation | O(N+Q) / O(N) | C++ · Notes |
atcoder-abc284_a |
Sequence of Strings | implementation, strings | O(total characters) / O(total characters) | C++ · Notes |
atcoder-abc284_b |
Multi Test Cases | implementation | O(total N) / O(1) | C++ · Notes |
atcoder-abc285_a |
Edge Checker 2 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc285_b |
Longest Uncommon Prefix | implementation, strings | O(n^2) / O(n) | C++ · Notes |
atcoder-abc286_a |
Range Swap | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc286_b |
Cat | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc287_a |
Majority | implementation, strings | O(n) / O(1) | C++ · Notes |
atcoder-abc287_b |
Postal Card | implementation, strings, ordered-containers | O((N+M) log M) / O(N+M) | C++ · Notes |
atcoder-abc288_a |
Many A+B Problems | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc288_b |
Qualification Contest | implementation, strings, sorting | O(NL+K L log K) / O(NL) | C++ · Notes |
atcoder-abc289_a |
flip | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc289_b |
V | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc290_a |
Contest Result | implementation | O(N+M) / O(N) | C++ · Notes |
atcoder-abc290_b |
Qual B | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc291_a |
camel Case | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc291_b |
Trimmed Mean | implementation, sorting | O(n log n) / O(n) | C++ · Notes |
atcoder-abc292_a |
CAPS LOCK | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc292_b |
Yellow and Red Card | implementation | O(N+Q) / O(N) | C++ · Notes |
atcoder-abc293_a |
Swap Odd and Even | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc293_b |
Call the ID Number | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc294_a |
Filter | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc294_b |
ASCII Art | implementation | O(HW) / O(1) | C++ · Notes |
atcoder-abc295_a |
Probably English | implementation, strings, ordered-containers | O(total characters) / O(1) | C++ · Notes |
atcoder-abc295_b |
Bombs | implementation, strings | O(R^2 C^2) / O(RC) | C++ · Notes |
atcoder-abc296_a |
Alternately | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc296_b |
Chessboard | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc297_a |
Double Click | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc297_b |
chess960 | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc298_a |
Job Interview | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc298_b |
Coloring Matrix | implementation, matrices | O(n^2) / O(n^2) | C++ · Notes |
atcoder-abc299_a |
Treasure Chest | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc299_b |
Trick Taking | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc300_a |
N-choice question | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc300_b |
Same Map in the RPG World | implementation, strings | O(H^2 W^2) / O(HW) | C++ · Notes |
atcoder-abc301_a |
Overall Winner | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc301_b |
Fill the Gaps | implementation | O(output length) / O(1) | C++ · Notes |
atcoder-abc302_a |
Attack | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc302_b |
Find snuke | implementation, strings | O(HW) / O(HW) | C++ · Notes |
atcoder-abc303_a |
Similar String | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc303_b |
Discord | implementation, matrices | O(NM+N^2) / O(N^2) | C++ · Notes |
atcoder-abc304_a |
First Player | implementation, strings | O(total name length+N) / O(total name length+N) | C++ · Notes |
atcoder-abc304_b |
Subscribers | implementation, strings | O(number of digits) / O(number of digits) | C++ · Notes |
atcoder-abc305_a |
Water Station | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc305_b |
ABCDEFG | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc306_a |
Echo | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc306_b |
Base 2 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc307_a |
Weekly Records | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc307_b |
racecar | implementation, strings | O(n^2 L) / O(nL) | C++ · Notes |
atcoder-abc308_a |
New Scheme | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc308_b |
Default Price | implementation, strings, ordered-containers | O((N+M)L log M) / O((N+M)L) | C++ · Notes |
atcoder-abc309_a |
Nine | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc309_b |
Rotate | implementation, strings | O(n^2) / O(n^2) | C++ · Notes |
atcoder-abc310_a |
Order Something Else | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc310_b |
Strictly Superior | implementation, matrices | O(N^2 M) / O(NM) | C++ · Notes |
atcoder-abc311_a |
First ABC | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc311_b |
Vacation Together | implementation, strings | O(ND) / O(D) | C++ · Notes |
atcoder-abc312_a |
Chord | implementation, strings, ordered-containers | O(1) / O(1) | C++ · Notes |
atcoder-abc312_b |
TaK Code | implementation, strings | O(NM) / O(NM) | C++ · Notes |
atcoder-abc313_a |
To Be Saikyo | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc313_b |
Who is Saikyo? | implementation | O(N+M) / O(N) | C++ · Notes |
atcoder-abc314_a |
3.14 | implementation, strings | O(N) / O(1) | C++ · Notes |
atcoder-abc314_b |
Roulette | implementation, matrices | O(total bets) / O(total bets+N) | C++ · Notes |
atcoder-abc315_a |
tcdr | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc315_b |
The Middle Day | implementation | O(M) / O(M) | C++ · Notes |
atcoder-abc317_a |
Potions | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc317_b |
MissingNo. | implementation, sorting | O(n log n) / O(n) | C++ · Notes |
atcoder-abc318_a |
Full Moon | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc318_b |
Overlapping sheets | implementation, matrices | O(N*100^2) / O(100^2) | C++ · Notes |
atcoder-abc319_a |
Legendary Players | implementation, strings, ordered-containers | O(1) / O(1) | C++ · Notes |
atcoder-abc319_b |
Measure | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc320_a |
Leyland Number | implementation | O(A+B) / O(1) | C++ · Notes |
atcoder-abc320_b |
Longest Palindrome | implementation, strings | O(n^2) / O(n) | C++ · Notes |
atcoder-abc321_a |
321-like Checker | implementation, strings | O(number of digits) / O(number of digits) | C++ · Notes |
atcoder-abc321_b |
Cutoff | implementation | O(n+101) / O(n) | C++ · Notes |
atcoder-abc322_a |
First ABC 2 | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc322_b |
Prefix and Suffix | implementation, strings | O(N+M) / O(N+M) | C++ · Notes |
atcoder-abc323_a |
Weak Beats | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc323_b |
Round-Robin Tournament | implementation, strings, sorting | O(n^2+n log n) / O(n) | C++ · Notes |
atcoder-abc324_a |
Same | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc324_b |
3-smooth Numbers | implementation | O(log N) / O(1) | C++ · Notes |
atcoder-abc325_a |
Takahashi san | implementation, strings | O(input length) / O(input length) | C++ · Notes |
atcoder-abc325_b |
World Meeting | implementation | O(24N) / O(N) | C++ · Notes |
atcoder-abc326_a |
2UP3DOWN | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc326_b |
326-like Numbers | implementation | O(1000) / O(1) | C++ · Notes |
atcoder-abc327_a |
ab | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc327_b |
A^A | implementation | O(15^2) / O(1) | C++ · Notes |
atcoder-abc328_a |
Not Too Hard | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc328_b |
11/11 | implementation, strings | O(total days * digit count) / O(1) | C++ · Notes |
atcoder-abc329_a |
Spread | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc329_b |
Next | implementation, ordered-containers | O(n log n) / O(n) | C++ · Notes |
atcoder-abc330_a |
Counting Passes | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc330_b |
Minimize Abs 1 | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc331_a |
Tomorrow | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc331_b |
Buy One Carton of Milk | implementation | O(N^3) / O(1) | C++ · Notes |
atcoder-abc332_a |
Online Shopping | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc332_b |
Glass and Mug | implementation | O(K) / O(1) | C++ · Notes |
atcoder-abc333_a |
Three Threes | implementation, strings | O(n) / O(1) | C++ · Notes |
atcoder-abc333_b |
Pentagon | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc334_a |
Christmas Present | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc334_b |
Christmas Trees | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc335_a |
202 |
implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc335_b |
Tetrahedral Number | implementation | O((N+1)^3) / O(1) | C++ · Notes |
atcoder-abc336_a |
Long Loong | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc336_b |
CTZ | implementation | O(log N) / O(1) | C++ · Notes |
atcoder-abc337_a |
Scoreboard | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc337_b |
Extended ABC | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc338_a |
Capitalized? | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc338_b |
Frequency | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc339_a |
TLD | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc339_b |
Langton's Takahashi | implementation, strings | O(N+HW) / O(HW) | C++ · Notes |
atcoder-abc340_a |
Arithmetic Progression | implementation | O((B-A)/D+1) / O(1) | C++ · Notes |
atcoder-abc340_b |
Append | implementation | O(Q) / O(Q) | C++ · Notes |
atcoder-abc341_a |
Print 341 | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc341_b |
Foreign Exchange | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc342_a |
Yay! | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc342_b |
Which is ahead? | implementation | O(N+Q) / O(N) | C++ · Notes |
atcoder-abc343_a |
Wrong Answer | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc343_b |
Adjacency Matrix | implementation | O(n^2) / O(1) | C++ · Notes |
atcoder-abc344_a |
Spoiler | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc344_b |
Delimiter | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc345_a |
Leftrightarrow | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc345_b |
Integer Division Returns | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc346_a |
Adjacent Product | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc346_b |
Piano | implementation, strings | O(12(W+B)) / O(1) | C++ · Notes |
atcoder-abc347_a |
Divisible | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc347_b |
Substring | implementation, strings, ordered-containers | O(n^3 log n) / O(n^3) | C++ · Notes |
atcoder-abc348_a |
Penalty Kick | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc348_b |
Farthest Point | implementation | O(n^2) / O(n) | C++ · Notes |
atcoder-abc349_a |
Zero Sum Game | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc349_b |
Commencement | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc350_a |
Past ABCs | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc350_b |
Dentist Aoki | implementation | O(N+Q) / O(N) | C++ · Notes |
atcoder-abc351_a |
The bottom of the ninth | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc351_b |
Spot the Difference | implementation, strings | O(n^2) / O(n^2) | C++ · Notes |
atcoder-abc352_a |
AtCoder Line | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc352_b |
Typing | implementation, strings | O( | S |
atcoder-abc353_a |
Buildings | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc353_b |
AtCoder Amusement Park | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc354_a |
Exponential Plant | implementation | O(log H) / O(1) | C++ · Notes |
atcoder-abc354_b |
AtCoder Janken 2 | implementation, strings, sorting | O(n L log n) / O(nL) | C++ · Notes |
atcoder-abc355_a |
Who Ate the Cake? | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc355_b |
Piano 2 | implementation, sorting | O((N+M) log(N+M)) / O(N+M) | C++ · Notes |
atcoder-abc356_a |
Subsegment Reverse | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc356_b |
Nutrients | implementation | O(NM) / O(M) | C++ · Notes |
atcoder-abc357_a |
Sanitize Hands | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc357_b |
Uppercase and Lowercase | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc358_a |
Welcome to AtCoder Land | implementation, strings | O( | S |
atcoder-abc358_b |
Ticket Counter | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc359_a |
Count Takahashi | implementation, strings | O(n) / O(1) | C++ · Notes |
atcoder-abc359_b |
Couples | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc360_a |
A Healthy Breakfast | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc360_b |
Vertical Reading | implementation, strings | O( | S |
atcoder-abc361_a |
Insert | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc361_b |
Intersection of Cuboids | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc362_a |
Buy a Pen | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc362_b |
Right Triangle | implementation, sorting | O(1) / O(1) | C++ · Notes |
atcoder-abc363_a |
Piling Up | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc363_b |
Japanese Cursed Doll | implementation, sorting | O(n log n) / O(n) | C++ · Notes |
atcoder-abc364_a |
Glutton Takahashi | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc364_b |
Grid Walk | implementation, strings | O(HW+ | X |
atcoder-abc365_a |
Leap Year | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc365_b |
Second Best | implementation, sorting | O(n log n) / O(n) | C++ · Notes |
atcoder-abc366_a |
Election 2 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc366_b |
Vertical Writing | implementation, strings | O(NM), M=max length / O(total characters+N) | C++ · Notes |
atcoder-abc367_a |
Shout Everyday | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc367_b |
Cut .0 | implementation, strings | O(1) / O(1) | C++ · Notes |
atcoder-abc368_a |
Cut | implementation | O(n) / O(n) | C++ · Notes |
atcoder-abc368_b |
Decrease 2 max elements | implementation, heaps | O((N+sum A) log N) / O(N) | C++ · Notes |
atcoder-abc369_a |
369 | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc369_b |
Piano 3 | implementation | O(n) / O(1) | C++ · Notes |
atcoder-abc370_a |
Raise Both Hands | implementation | O(1) / O(1) | C++ · Notes |
atcoder-abc370_b |
Binary Alchemy | implementation, matrices | O(n^2) / O(n^2) | C++ · Notes |
atcoder-abc372_a |
delete . | implementation, strings | O(n) / O(n) | C++ · Notes |
atcoder-abc373_a |
September | implementation, strings | O(total characters) / O(max length) | C++ · Notes |