Skip to content

治療計画 (Treatment Project)

Unrated
日本語

Language

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

Statement

治療計画 (Treatment Project):公式日本語問題文 1ページ

治療計画 (Treatment Project):公式日本語問題文 2ページ

治療計画 (Treatment Project):公式日本語問題文 3ページ

Examples

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

Notes

Tags

No tags yet

Source