Skip to content

IOIOI カード占い (IOIOI Cards)

Unrated
日本語

Language

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

Statement

IOIOI カード占い (IOIOI Cards):公式日本語問題文 1ページ

IOIOI カード占い (IOIOI Cards):公式日本語問題文 2ページ

IOIOI カード占い (IOIOI Cards):公式日本語問題文 3ページ

Examples

Sample input 1
1 2 3 4 5
3
2 3
2 6
4 10
Sample output 1
12
Sample input 2
1 1 1 1 1
1
1 1
Sample output 2
-1

Notes

Tags

No tags yet

Source