Hack
Now
EN
Login
Register
HackNow
Yo'l bormi? (Find Path) | HackNow
Go back
Reading Mode
bar_chart
Problem
Statistics
send
Total
12
check_circle
AC
7
trending_up
Acceptance
58.3%
timer
Time
0ms
memory
Memory
8.3MB
Problem
Submissions
Yo'l bormi? (Find Path)
lock
UZ only
Qiyin
58%
accepted
30 points
1 s
256 MB
Graph Theory (Basic)
Author:
neo_yamaguchi
Input format
Output format
Examples
1
1
Example #1
Input
4 3 1 2 2 3 3 4 1 4
Output
Yes
Solution editor
Python 3
Clear
Language
PYTHON
UTF-8
Tab
4 spaces
Ctrl
+
Enter
Submit
Submit