Skip to content

伝説の団子食通 (Legendary Dango Eater)

Unrated
日本語

Language

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

Statement

伝説の団子食通:公式日本語問題文 1ページ

伝説の団子食通:公式日本語問題文 2ページ

伝説の団子食通:公式日本語問題文 3ページ

伝説の団子食通:公式日本語問題文 4ページ

Examples

Sample input 1
5 2 1
2 1 2 4 3
1 5
2 4
Sample output 1
7
2
Sample input 2
5 2 3
2 1 2 4 3
1 5
2 4
Sample output 2
2
0
Sample input 3
9 4 50
24 26 89 45 84 72 15 31 66
1 9
2 8
4 6
5 6
Sample output 3
3
2
1
1

Notes

Tags

No tags yet

Source