Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

COEDU018 - Chứng khoán



Example

Input:
5
8 10
2 4 5 4 2 7 4 5
12 70
27 62 17 59 45 32 43 59 2 60 12 59
8 69
32 56 60 19 52 58 60 24
5 80
50 44 79 38 72
18 22
16 18 2 6 1 4 12 2 6 12 11 17 5 8 5 17 15 20

Output:
#1 96
#2 125895
#3 302
#4 137
#5 58070

Được gửi lên bởi:Phòng đào tạo Coedu
Ngày:2022-12-13
Thời gian chạy:1s
Giới hạn mã nguồn:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Ngôn ngữ cho phép:C C++ 4.3.2 CPP JAVA

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.