EdgeCase
It's a bird! No, it's a plane! No, it's AaParsa!
2500
constructive algorithms
graphs
shortest paths
Solve on Codeforces
Login to submit
C++
Python
Java
C
Rust
Run (Ctrl+↵)
stdin
custom input
output
Run your code to see output here.
AI Assistant
Analysis
Test Cases
✕
Use "AI Analyze" or "Gen Tests" to get started.