An open API service indexing awesome lists of open source software.

https://github.com/ignaciohermosillacornejo/competitive_programming

Personal repo for my competitive programing exercises
https://github.com/ignaciohermosillacornejo/competitive_programming

competitive-programming cpp icpc kattis live-archive spoj uri uva

Last synced: 3 months ago
JSON representation

Personal repo for my competitive programing exercises

Awesome Lists containing this project

README

          

# Competitive Programming Solutions

> **ARCHIVED REPOSITORY**
>
> This repository is no longer actively maintained. It serves as a personal archive of competitive programming solutions from past practice sessions and contests. No new problems will be added.

---

A collection of my competitive programming solutions organized by online judge platform. This repository contains **103 problems** solved across **6 platforms** using C++ and Python.

## Overview

| Platform | Problems | Languages |
|----------|:--------:|-----------|
| [Codeforces](#codeforces) | 47 | C++, Python |
| [Live Archive & UVa](#live-archive--uva) | 25 | C++, Python |
| [SPOJ](#spoj) | 10 | C++ |
| [URI](#uri) | 10 | C++, Python |
| [Kattis](#kattis) | 6 | C++ |
| [Other](#other) | 5 | C++ |

---

## Codeforces

| Problem | Status | Solution |
|---------|--------|----------|
| A and B and Team Training | Accepted | [C++](Code%20Forces/A%20and%20B%20and%20Team%20Training/) |
| Almost Prime | - | [C++](Code%20Forces/Almost%20Prime/) |
| Alternating Current | Accepted | [C++](Code%20Forces/Alternating%20Current/) |
| Amusing Joke | Accepted | [C++](Code%20Forces/Amusing%20Joke/) |
| Anton and Danik | Accepted | [C++](Code%20Forces/Anton%20and%20Danik/) |
| Arrival of the General | Accepted | [C++](Code%20Forces/Arrival%20of%20the%20General/) |
| Beautiful Subarrays | Accepted | [C++](Code%20Forces/Beautiful%20Subarrays/) |
| Beautiful Year | Accepted | [C++](Code%20Forces/Beautiful%20Year/) |
| BerSU Ball | Accepted | [C++](Code%20Forces/BerSU%20Ball/) |
| Bit++ | Accepted | [C++](Code%20Forces/Bit%2B%2B/) |
| Boy or Girl | Accepted | [C++](Code%20Forces/Boy%20or%20Girl/) |
| Bus to Udayland | Accepted | [C++](Code%20Forces/Bus%20to%20Udayland/) |
| Color the Fence | Accepted | [C++](Code%20Forces/Color%20the%20Fence/) |
| Cut Ribbon | Accepted | [C++](Code%20Forces/Cut%20Ribbon/) |
| Dijkstra? | Accepted | [C++](Code%20Forces/Dijkstra%3F/) |
| Domino piling | Accepted | [C++](Code%20Forces/Domino%20piling/) |
| Dreamoon and WiFi | Accepted | [C++](Code%20Forces/Dreamoon%20and%20WiFi/) |
| Even Odds | Accepted | [C++](Code%20Forces/Even%20Odds/) |
| Gravity Flip | Accepted | [C++](Code%20Forces/Gravity%20Flip/) |
| Interesting Array | Accepted | [C++](Code%20Forces/Interesting%20Array/) |
| Learning Languages | Accepted | [C++](Code%20Forces/Learning%20Languages/) |
| Little Elephant and Bits | Accepted | [C++](Code%20Forces/Little%20Elephant%20and%20Bits/) |
| Lucky Common Subsequence | CE | [C++](Code%20Forces/Lucky%20Common%20Subsequence/) |
| MUH and Cube Walls | - | [C++](Code%20Forces/MUH%20and%20Cube%20Walls/) |
| Magnets | Accepted | [C++](Code%20Forces/Magnets/) |
| Mahmoud and a Triangle | Accepted | [C++](Code%20Forces/Mahmoud%20and%20a%20Triangle/) |
| Minimum spanning tree for each edge | Accepted | [C++](Code%20Forces/Minimum%20spanning%20tree%20for%20each%20edge/) |
| Misha and Changing Handles | Accepted | [C++](Code%20Forces/Misha%20and%20Changing%20Handles/) |
| Nature Reserve | Accepted | [C++](Code%20Forces/Nature%20Reserve/) |
| Nearly Lucky Number | Accepted | [C++](Code%20Forces/Nearly%20Lucky%20Number/) |
| Olesya and Rodion | Accepted | [C++](Code%20Forces/Olesya%20and%20Rodion/) |
| Password | Accepted | [C++](Code%20Forces/Password/) |
| Passwords | Accepted | [C++](Code%20Forces/Passwords/) |
| Queue | Accepted | [C++](Code%20Forces/Queue/) |
| Queue at the School | Accepted | [C++](Code%20Forces/Queue%20at%20the%20School/) |
| Reachability from the Capital | WA | [C++](Code%20Forces/Reachability%20from%20the%20Capital/) |
| Sasha and Array | Pending | [C++](Code%20Forces/Sasha%20and%20Array/) |
| Shell Game | Accepted | [C++](Code%20Forces/Shell%20Game/) |
| Shortest path of the king | Accepted | [C++](Code%20Forces/Shortest%20path%20of%20the%20king/) |
| Snacktower | Accepted | [C++](Code%20Forces/Snacktower/) |
| Spreadsheets | Accepted | [C++](Code%20Forces/Spreadsheets/) |
| T-primes | Accepted | [C++](Code%20Forces/T-primes/) |
| The Wall | Accepted | [C++](Code%20Forces/The%20Wall/) |
| Theseus and labyrinth | Accepted | [C++](Code%20Forces/Theseus%20and%20labyrinth/) |
| Two Substrings | Accepted | [C++](Code%20Forces/Two%20Substrings/) |
| Vasiliy's Multiset | Accepted | [C++](Code%20Forces/Vasiliy's%20Multiset/) |
| Xenia and Bit Operations | Accepted | [C++](Code%20Forces/Xenia%20and%20Bit%20Operations/) |

---

## Live Archive & UVa

| Problem | Status | Solution |
|---------|--------|----------|
| 8 Queens Chess Problem | - | [C++](Live%20Archive%20%26%20UVa/8%20Queens%20Chess%20Problem/) |
| ACIS, A Contagious vIruS | - | [C++](Live%20Archive%20%26%20UVa/ACIS%2C%20A%20Contagious%20vIruS/) |
| Ahoy, Pirates! | Accepted | [C++](Live%20Archive%20%26%20UVa/Ahoy%2C%20Pirates!/) |
| Arranging tiles | WA | [C++](Live%20Archive%20%26%20UVa/Arranging%20tiles/) |
| At most twice | Accepted | [C++](Live%20Archive%20%26%20UVa/At%20most%20twice/) |
| Cake cut | TLE | [C++](Live%20Archive%20%26%20UVa/Cake%20cut/) |
| Cellphone Typing | WA | [C++](Live%20Archive%20%26%20UVa/Cellphone%20Typing/) |
| Continents | Accepted | [C++](Live%20Archive%20%26%20UVa/Continents/) |
| Dating On-Line | Accepted | [C++](Live%20Archive%20%26%20UVa/Dating%20On-Line/) |
| Different Digits | Accepted | [C++](Live%20Archive%20%26%20UVa/Different%20Digits/) |
| Domino Art | Accepted | [C++](Live%20Archive%20%26%20UVa/Domino%20Art/) |
| Esspe-Peasee | Accepted | [C++](Live%20Archive%20%26%20UVa/Esspe-Peasee/) |
| Fence the vegetable fall | TLE | [C++](Live%20Archive%20%26%20UVa/Fence%20the%20vegetable%20fall/) |
| Fix the Pond | RE | [C++](Live%20Archive%20%26%20UVa/Fix%20the%20Pond/) |
| Fundraising | Accepted | [C++](Live%20Archive%20%26%20UVa/Fundraising/) |
| Hours and Minutes | Accepted | [C++](Live%20Archive%20%26%20UVa/Hours%20and%20Minutes/) |
| Hyper Prefix Sets | Accepted | [C++](Live%20Archive%20%26%20UVa/Hyper%20Prefix%20Sets/) |
| Interval Product | Accepted | [C++](Live%20Archive%20%26%20UVa/Interval%20Product/) |
| Phone List | Accepted | [C++](Live%20Archive%20%26%20UVa/Phone%20List/) |
| Potentiometers | Accepted | [C++](Live%20Archive%20%26%20UVa/Potentiometers/) |
| Shortest Names | Accepted | [C++](Live%20Archive%20%26%20UVa/Shortest%20Names/) |
| Software Allocation | Accepted | [C++](Live%20Archive%20%26%20UVa/Software%20Allocation/) |
| Ubiquitous Religions | Accepted | [C++](Live%20Archive%20%26%20UVa/Ubiquitous%20Religions/) |
| Wormholes | Accepted | [C++](Live%20Archive%20%26%20UVa/Wormholes/) |
| iSharp | Accepted | [C++](Live%20Archive%20%26%20UVa/iSharp/) |

---

## SPOJ

| Code | Problem | Status | Solution |
|------|---------|--------|----------|
| BTCK | A problem of Backtracking | Accepted | [C++](SPOJ/BTCK%20-%20A%20problem%20of%20Backtracking/) |
| CROSSPDCT | Left, right or center? | Accepted | [C++](SPOJ/CROSSPDCT%20-%20Left%2C%20right%20or%20center%3F/) |
| DINOSM | Dinosaur Menace | Accepted | [C++](SPOJ/DINOSM%20-%20Dinosaur%20Menace/) |
| FENTREE | Fenwick Trees | Accepted | [C++](SPOJ/FENTREE%20-%20Fenwick%20Trees/) |
| INOROUT | Inside or outside? | Accepted | [C++](SPOJ/INOROUT%20-%20Inside%20or%20outside%3F/) |
| KGSS | Maximum Sum | Accepted | [C++](SPOJ/KGSS%20-%20Maximum%20Sum/) |
| NHAY | A Needle in the Haystack | Accepted | [C++](SPOJ/NHAY%20-%20A%20Needle%20in%20the%20Haystack/) |
| PRIME1 | Prime Generator | Accepted | [C++](SPOJ/PRIME1%20-%20Prime%20Generator/) |
| PRINT | Prime Intervals | Accepted | [C++](SPOJ/PRINT%20-%20Prime%20Intervals/) |
| SALMAN | Salary Management | Accepted | [C++](SPOJ/SALMAN%20-%20Salary%20Management/) |

---

## URI

| Problem | Status | Solution |
|---------|--------|----------|
| Ball Stacking | Accepted | [C++](URI/Ball%20Stacking/) |
| Cellphone Typing | Accepted | [C++](URI/Cellphone%20Typing/) |
| Exposing Corruption | Pending | [C++](URI/Exposing%20Corruption/) |
| Galaxy Collision | Accepted | [C++](URI/Galaxy%20Collision/) |
| Game of Matchings | TLE | [C++](URI/Game%20of%20Matchings/) |
| Hard Choice | Accepted | [C++](URI/Hard%20Choice/) |
| Highway Decommission | Accepted | [C++](URI/Highway%20Decommission/) |
| Intrepid Climber | Accepted | [C++](URI/Intrepid%20Climber/) |
| Journey Through The Kingdom | Accepted | [C++](URI/Journey%20Through%20The%20Kingdom/) |
| The Country of Bicycles | Accepted | [C++](URI/The%20Country%20of%20Bicycles/) |

---

## Kattis

| Problem | Status | Solution |
|---------|--------|----------|
| All Pairs Shortest Path | Accepted | [C++](Kattis/All%20Pairs%20Shortest%20Path/) |
| Association for Cool Machineries (Part 1) | WA | [C++](Kattis/Association%20for%20Cool%20Machineries%20%28Part%201%29/) |
| Counting Triangles | Accepted | [C++](Kattis/Counting%20Triangles/) |
| Frosting on the Cake | Accepted | [C++](Kattis/Frosting%20on%20the%20Cake/) |
| Game Rank | WA | [C++](Kattis/Game%20Rank/) |
| Zagrade | Accepted | [C++](Kattis/Zagrade/) |

---

## Other

Uncategorized contest problems.

| Problem | Status | Solution |
|---------|--------|----------|
| A | - | [C++](Pending%20Clasification/tcp/A.cpp) |
| B | - | [C++](Pending%20Clasification/tcp/B.cpp) |
| E | - | [C++](Pending%20Clasification/tcp/E.cpp) |
| F | - | [C++](Pending%20Clasification/tcp/F.cpp) |
| G | - | [C++](Pending%20Clasification/tcp/G.cpp) |

---

## Status Legend

| Status | Meaning |
|--------|---------|
| Accepted | Solution passed all test cases |
| WA | Wrong Answer |
| TLE | Time Limit Exceeded |
| RE | Runtime Error |
| CE | Compilation Error |
| Pending | Not yet submitted |
| - | Not recorded |

---

## License

This repository is provided for educational reference only.