Skip to content

最古の遺跡

UnratedLanguage limit
日本語

Language

Contribute a translation
Time limit
3000 ms
Memory limit
64 MB (no extra memory)
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

最古の遺跡

最古の遺跡

Examples

Sample input 1
10
9 4
4 3
1 1
4 2
2 4
5 8
4 0
5 3
0 5
5 2
Sample output 1
10

Notes

原典:JOI 2006/2007 本選、情報オリンピック日本委員会。CC BY-SA 4.0。

Tags

No tags yet

Source

This problem accepts only these languages.

C++20