Skip to content

スキー (Ski)

Unrated
日本語

Language

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

Statement

スキー:公式日本語問題文1ページ

スキー:公式日本語問題文2ページ

Examples

Sample input 1
3 1 3
1
1 2 6 1000
2 3 4 2000
1 3 3 3000
Sample output 1
1250
Sample input 2
4 2 5
1 2
1 3 2 5000
1 3 9 4000
2 3 3 5000
2 4 4 7000
3 4 8 3000
Sample output 2
3261

Notes

Tags

No tags yet

Source