Skip to content

秘密 (Secret)

UnratedFunction
日本語

Language

Contribute a translation
Time limit
20000 ms
Memory limit
512 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

問題文 1ページ

問題文 2ページ

問題文 3ページ

問題文 4ページ

Examples

Sample input 1
8
1 4 7 2 5 8 3 6
4
0 3
1 7
5 5
2 4
Sample output 1
13
32
8
13

Notes

Tags

No tags yet

Source

This problem accepts only these languages.

C++20