Skip to content

ういろう (Uiro)

Unrated
日本語

Language

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

Statement

ういろう:公式日本語問題文 1ページ

ういろう:公式日本語問題文 2ページ

ういろう:公式日本語問題文 3ページ

ういろう:公式日本語問題文 4ページ

Examples

Sample input 1
5
3 4 7 2 8
2
1 3
4 4
Sample output 1
1
0
Sample input 2
14
1 2 2 1 2 1 1 2 1 2 2 1 1 1
5
1 2
1 14
5 11
3 12
4 7
Sample output 2
0
8
4
6
2
Sample input 3
8
16 23 45 76 43 97 12 43
7
1 8
3 7
2 7
4 5
5 8
2 6
3 5
Sample output 3
3
2
2
1
2
2
1

Notes

Tags

No tags yet

Source