Skip to content

ピンボール (Pinball)

Unrated
日本語

Language

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

Statement

問題文 1ページ

問題文 2ページ

問題文 3ページ

問題文 4ページ

Examples

Sample input 1
5 6
2 4 3 5
1 2 2 8
3 6 5 2
4 6 4 7
2 4 3 10
Sample output 1
25
Sample input 2
3 5
2 4 3 10
1 3 1 20
2 5 4 30
Sample output 2
-1

Notes

Tags

No tags yet

Source