Skip to content

電報 (Telegraph)

Unrated
日本語

Language

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

Statement

電報 (Telegraph):公式日本語問題文 1ページ

電報 (Telegraph):公式日本語問題文 2ページ

電報 (Telegraph):公式日本語問題文 3ページ

Examples

Sample input 1
4
2 2
1 4
1 3
3 1
Sample output 1
4
Sample input 2
4
2 2
1 6
1 3
3 1
Sample output 2
5
Sample input 3
4
2 2
1 3
4 2
3 3
Sample output 3
4
Sample input 4
3
2 1
3 1
1 1
Sample output 4
0

Notes

Tags

No tags yet

Source