Skip to content

パン職人 (Baker)

Unrated
日本語

Language

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

Statement

パン職人:公式日本語問題文 1ページ

パン職人:公式日本語問題文 2ページ

パン職人:公式日本語問題文 3ページ

パン職人:公式日本語問題文 4ページ

Examples

Sample input 1
4 4 6 4
0 2 3 8
2 3
1 6
3 3
4 7
Sample output 1
3
2
2
0
Sample input 2
20 5 12 4
1 2 4 8 10
1 12
3 10
3 11
15 10
Sample output 2
5
4
3
0
Sample input 3
100000 6 272273 10
5 9 209 8128 17202 50102
164 9
11 24
835 9267
2 256
2 314156
18475 142
1826 18978
44757 1
4 1646
218 44
Sample output 3
2
2
4
3
1
2
5
0
3
2

Notes

Tags

No tags yet

Source