Skip to content

庭園 (Garden)

Unrated
日本語

Language

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

Statement

問題文 1ページ

問題文 2ページ

問題文 3ページ

問題文 4ページ

Examples

Sample input 1
2 1 5
1 4
2 2
0 0
Sample output 1
8
Sample input 2
3 4 100
20 26
81 56
20 3
58 71
74 82
95 61
95 61
Sample output 2
2840
Sample input 3
5 7 5000
1046 365
4122 1166
4009 2896
1815 4065
4372 1651
2382 123
1475 836
3313 4005
2579 568
4300 4867
1050 3214
3589 4653
Sample output 3
10543092

Notes

Tags

No tags yet

Source