Login
Sign-Up
Problem
Contest
Category
Submissions
English
Problem
Contest
Category
Submissions
English
#221
Submit Code
Submissions
Zero-Break
Time Limit: 1 Sec
Memory Limit: 256 MiB
한국어
Example Input 1
Copy
3 4 4 2 2
Example Output 1
Copy
6
Example Input 2
Copy
25 4 3 2 2 3 2 2 2 2 2 2 2 2 2 3 2 1 2 3 3 2 2 2 2 2 2
Example Output 2
Copy
376375013
Language-Specific Restrictions