Hack
Now
EN
Login
Register
HackNow
Yaxshi juftliklar (a[i] = a[j]) | HackNow
Go back
Reading Mode
bar_chart
Problem
Statistics
send
Total
0
check_circle
AC
0
trending_up
Acceptance
0.0%
timer
Time
0ms
memory
Memory
0.0MB
Problem
Submissions
Yaxshi juftliklar (a[i] = a[j])
lock
UZ only
O'rta
20 points
1500 ms
256 MB
Prefix Sum
Author:
neo_yamaguchi
Input format
Output format
Constraints
Examples
2
1
Example #1
Input
6 1 2 3 1 1 3
Output
4
2
Example #2
Input
5 1 2 3 4 5
Output
0
Solution editor
Python 3
Clear
Language
PYTHON
UTF-8
Tab
4 spaces
Ctrl
+
Enter
Submit
Submit