QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#41811#1783. Locust LocusGuanYunchangAC ✓4ms3712kbC++17476b2022-08-01 13:29:552022-08-01 13:29:57

詳細信息

Test #1:

score: 100
Accepted
time: 4ms
memory: 3588kb

input:

1
1935 89 89

output:

2024

result:

ok single line: '2024'

Test #2:

score: 0
Accepted
time: 3ms
memory: 3556kb

input:

99
2007 63 34
1875 62 48
1981 86 92
1800 81 59
1831 77 9
1951 94 77
1882 46 42
1820 78 86
1848 58 63
1889 46 9
1819 56 17
1995 14 41
2007 18 2
1942 14 51
1938 89 7
1863 59 13
2012 42 8
1804 65 33
1868 70 86
1900 36 17
1876 63 99
1972 74 10
1993 66 22
1808 81 51
1946 98 29
1989 88 14
1895 29 9
1802 1...

output:

2025

result:

ok single line: '2025'

Test #3:

score: 0
Accepted
time: 3ms
memory: 3508kb

input:

2
1927 28 46
2003 55 43

output:

2571

result:

ok single line: '2571'

Test #4:

score: 0
Accepted
time: 3ms
memory: 3444kb

input:

98
2001 30 88
1910 78 33
1801 27 47
2014 5 11
1961 47 77
1859 51 60
1990 42 35
1854 31 45
1981 8 50
1923 56 96
1965 67 61
1926 34 79
1891 37 62
1991 66 14
1986 39 95
1921 16 25
1979 57 36
1862 87 20
1808 33 90
1910 81 91
1852 95 30
1970 40 23
1944 37 42
1839 61 96
2001 86 56
1999 96 98
1880 67 39
18...

output:

2027

result:

ok single line: '2027'

Test #5:

score: 0
Accepted
time: 3ms
memory: 3692kb

input:

3
1803 97 85
1858 83 82
1930 74 67

output:

6888

result:

ok single line: '6888'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3564kb

input:

97
1843 48 97
1940 52 73
1957 75 27
1898 29 70
1873 36 25
1934 52 60
1995 16 13
1936 83 35
1966 54 86
1884 90 49
2007 7 54
1996 70 56
1920 31 81
1969 14 70
1902 42 51
1834 81 80
1822 98 63
1980 50 64
1968 88 8
1882 26 15
1812 93 68
2013 92 51
1863 40 52
1957 98 16
1811 47 63
1869 75 78
1854 13 62
19...

output:

2023

result:

ok single line: '2023'

Test #7:

score: 0
Accepted
time: 3ms
memory: 3612kb

input:

4
1942 40 48
1950 52 58
1944 14 54
1864 81 94

output:

2182

result:

ok single line: '2182'

Test #8:

score: 0
Accepted
time: 2ms
memory: 3448kb

input:

96
1921 38 5
1832 76 87
1936 47 10
1813 13 56
1993 73 79
1800 35 26
1971 39 31
1976 55 13
1998 5 47
1899 20 55
1900 25 85
1846 51 36
1980 80 6
1919 89 49
1835 41 75
1841 76 79
1965 65 70
2000 97 39
1822 20 48
1930 67 21
1973 57 65
2020 79 24
1807 9 78
1803 54 75
1869 40 96
1840 22 70
1879 82 19
2014...

output:

2026

result:

ok single line: '2026'

Test #9:

score: 0
Accepted
time: 2ms
memory: 3580kb

input:

5
1896 70 68
1826 28 59
2004 57 17
1853 28 86
1929 48 65

output:

2973

result:

ok single line: '2973'

Test #10:

score: 0
Accepted
time: 2ms
memory: 3644kb

input:

95
1811 3 79
1841 72 78
1840 73 25
1804 54 40
1968 83 1
1931 42 24
1909 74 41
1838 81 73
1951 74 15
1973 29 52
1943 79 29
1924 60 34
1817 37 30
1896 39 62
1919 44 16
1932 49 18
1929 93 49
2006 65 98
1927 59 92
1944 55 40
1920 86 6
2004 62 33
1980 58 19
1986 69 56
1912 91 79
1878 34 52
1895 86 99
200...

output:

2032

result:

ok single line: '2032'

Test #11:

score: 0
Accepted
time: 1ms
memory: 3708kb

input:

6
2014 91 20
1943 27 36
1875 88 5
1897 7 52
1986 39 78
1983 30 14

output:

2051

result:

ok single line: '2051'

Test #12:

score: 0
Accepted
time: 2ms
memory: 3552kb

input:

94
1926 85 55
1878 98 36
1989 89 75
1925 67 24
1949 86 58
1888 81 53
1918 29 54
1914 41 53
1993 40 99
1879 49 69
1962 16 60
1968 48 37
1918 84 15
1850 42 99
1978 2 85
1842 36 52
1864 76 53
1865 25 87
1899 93 79
1943 34 81
1824 18 99
1843 40 99
1896 70 41
1820 67 91
1828 12 63
1933 65 96
1895 30 81
1...

output:

2022

result:

ok single line: '2022'

Test #13:

score: 0
Accepted
time: 0ms
memory: 3636kb

input:

7
1887 82 93
1956 10 99
1829 35 30
1932 96 42
1928 80 39
1954 32 84
1839 7 85

output:

2039

result:

ok single line: '2039'

Test #14:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

93
1858 74 96
2016 32 74
1903 73 18
1991 74 90
1952 7 73
1888 93 33
1935 31 87
1886 49 54
1897 85 20
1943 25 72
1817 65 59
1969 26 58
1938 7 88
1946 57 79
1928 24 32
1950 52 59
1909 68 38
1891 43 4
1822 29 56
1850 31 32
1817 72 33
2020 96 45
1981 9 51
1865 96 22
1836 41 28
1828 38 11
1802 16 95
1952...

output:

2024

result:

ok single line: '2024'

Test #15:

score: 0
Accepted
time: 2ms
memory: 3692kb

input:

8
1894 91 20
2003 78 43
1919 30 32
2011 46 15
1877 19 97
1807 59 9
1873 56 61
1821 60 68

output:

2338

result:

ok single line: '2338'

Test #16:

score: 0
Accepted
time: 2ms
memory: 3608kb

input:

92
1860 85 26
1952 10 17
1849 75 56
1900 81 52
1922 15 89
1986 29 46
1909 53 16
1976 86 43
1953 51 71
1907 51 66
1939 88 8
1803 26 32
1871 72 87
1816 92 20
2013 72 61
1873 81 11
1840 22 28
1960 17 77
1980 7 83
1873 46 24
1895 67 10
1844 35 53
1987 96 20
1859 73 45
1949 43 16
1978 23 69
1813 81 38
19...

output:

2023

result:

ok single line: '2023'

Test #17:

score: 0
Accepted
time: 2ms
memory: 3580kb

input:

9
1895 70 71
1823 26 36
1974 91 81
1840 55 21
1998 90 70
1943 36 88
1991 5 37
1903 61 75
1929 10 99

output:

2176

result:

ok single line: '2176'

Test #18:

score: 0
Accepted
time: 2ms
memory: 3576kb

input:

91
1864 25 79
1843 23 84
2000 78 86
2009 71 37
1828 39 31
1882 31 36
1975 44 68
2003 35 84
1826 81 58
1951 50 13
1812 36 81
1834 2 97
1826 34 63
1945 25 49
2018 58 19
1827 18 82
2011 58 45
1932 86 52
1953 39 20
1860 20 98
1968 35 77
1955 47 12
1905 27 91
1885 65 84
1863 61 88
1926 70 93
1901 75 83
2...

output:

2028

result:

ok single line: '2028'

Test #19:

score: 0
Accepted
time: 1ms
memory: 3552kb

input:

10
2004 27 73
1867 79 57
1850 14 66
1969 12 98
1908 85 34
1994 81 45
1831 88 40
1892 53 58
2016 91 46
1967 89 10

output:

2078

result:

ok single line: '2078'

Test #20:

score: 0
Accepted
time: 2ms
memory: 3576kb

input:

90
1813 87 20
1867 33 70
1858 62 75
1864 58 67
1974 89 94
1817 68 97
1829 71 73
1994 74 6
1912 68 36
1880 17 99
1934 60 71
1979 58 96
2012 57 7
1833 45 83
2003 75 53
1810 87 99
2003 66 41
1800 63 56
1962 91 31
1944 63 2
1833 89 56
1862 23 15
1856 11 98
1947 84 80
1860 88 82
1815 49 11
1970 26 6
1905...

output:

2048

result:

ok single line: '2048'

Test #21:

score: 0
Accepted
time: 0ms
memory: 3544kb

input:

11
1989 39 71
1891 55 62
1955 32 70
1871 43 18
1949 37 24
1958 67 44
1903 80 56
1847 16 87
1868 11 30
2002 24 79
1901 77 22

output:

2055

result:

ok single line: '2055'

Test #22:

score: 0
Accepted
time: 2ms
memory: 3556kb

input:

89
1991 24 49
1885 72 46
1929 19 80
1871 8 65
1959 95 78
1997 57 47
1822 29 37
1936 75 83
1926 91 43
1839 83 35
1977 85 53
1845 33 51
1863 88 50
2005 10 78
1837 93 40
1887 90 82
1952 60 41
1901 59 94
1989 4 75
1879 36 58
1939 45 16
1846 16 93
1840 59 84
1894 29 53
1808 20 85
1851 74 88
2012 99 70
19...

output:

2024

result:

ok single line: '2024'

Test #23:

score: 0
Accepted
time: 2ms
memory: 3576kb

input:

12
1940 60 47
2000 5 63
1879 79 11
1816 46 49
1970 7 38
1945 38 28
1823 30 53
1829 47 73
1802 24 95
1855 13 68
1876 33 68
1946 18 77

output:

2236

result:

ok single line: '2236'

Test #24:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

88
1932 84 49
1893 32 42
1984 41 89
1965 34 47
1942 10 97
1926 22 95
1817 31 72
1852 24 71
1824 4 83
1862 60 52
1893 61 92
1971 53 49
1812 56 69
1958 30 88
1849 85 31
1957 57 11
2016 21 87
1869 14 97
2017 59 46
1800 30 93
1840 95 90
2001 97 7
1995 75 68
1929 13 94
1809 49 40
1941 47 44
1831 61 29
18...

output:

2024

result:

ok single line: '2024'

Test #25:

score: 0
Accepted
time: 2ms
memory: 3644kb

input:

13
1802 94 35
1942 86 19
1878 41 68
2019 97 86
1950 42 96
1960 58 61
1816 67 96
1862 90 96
1839 52 45
1812 52 5
1886 35 48
1853 29 14
1939 60 70

output:

2072

result:

ok single line: '2072'

Test #26:

score: 0
Accepted
time: 1ms
memory: 3560kb

input:

87
1953 94 26
1994 91 86
1938 85 50
2001 42 29
1828 94 66
1980 64 62
1894 21 30
1983 3 58
1903 11 28
1876 65 14
1869 27 55
1845 81 19
1905 78 53
1814 48 85
1998 58 81
1866 30 44
1817 73 79
1833 94 93
1988 28 59
1897 49 88
1993 94 20
1847 20 21
2010 25 57
1948 81 5
1932 81 91
2010 16 3
1893 48 39
197...

output:

2038

result:

ok single line: '2038'

Test #27:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

14
1821 9 64
1928 65 44
1919 94 53
1825 39 69
1964 47 42
1834 86 77
1881 71 15
1838 99 87
2003 93 13
1848 2 97
1952 58 81
1979 86 47
2001 64 47
1982 43 42

output:

2042

result:

ok single line: '2042'

Test #28:

score: 0
Accepted
time: 2ms
memory: 3584kb

input:

86
1831 72 60
1843 31 70
2021 78 53
1984 36 34
1892 17 87
1807 73 18
1960 36 94
1855 69 43
1883 11 82
1810 54 70
1977 15 56
1874 80 97
1942 42 82
2017 76 86
1906 57 16
1948 33 98
1973 75 34
1804 78 79
1889 58 69
1956 40 51
1929 26 89
1873 70 29
1822 94 7
1943 79 82
1953 61 67
2010 31 39
1806 82 21
1...

output:

2024

result:

ok single line: '2024'

Test #29:

score: 0
Accepted
time: 2ms
memory: 3644kb

input:

15
1825 81 39
1917 87 88
2007 5 64
1922 35 33
1878 60 71
1806 4 79
1828 47 64
1969 85 15
1900 94 51
2000 26 21
2014 63 12
1912 36 22
1973 57 70
1895 30 63
1934 53 91

output:

2122

result:

ok single line: '2122'

Test #30:

score: 0
Accepted
time: 2ms
memory: 3580kb

input:

85
1831 57 48
1971 14 13
1926 28 98
1800 68 95
1868 5 59
1896 34 45
1957 43 96
1915 87 42
1911 62 94
1927 47 76
1956 54 59
1835 98 25
1990 45 59
2020 47 2
1945 78 16
1830 44 68
1813 40 63
1853 44 89
1890 16 43
1940 60 57
1941 84 22
1804 21 86
1903 47 38
1855 64 46
1967 41 59
2004 13 4
1870 73 76
181...

output:

2031

result:

ok single line: '2031'

Test #31:

score: 0
Accepted
time: 2ms
memory: 3640kb

input:

16
1821 78 64
1968 52 67
1824 68 60
1823 91 83
2002 66 69
1898 81 94
1923 8 68
2007 3 95
1895 89 57
1883 67 7
1916 31 50
1999 47 49
1917 62 41
1937 76 63
1878 24 50
1945 67 7

output:

2059

result:

ok single line: '2059'

Test #32:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

84
1993 22 19
1988 63 42
1899 33 96
1958 31 46
2019 38 46
1877 10 27
1944 81 7
1936 68 47
1950 53 70
1919 56 65
1900 36 68
1860 54 96
1884 36 31
1879 48 37
1933 45 34
1890 67 54
1953 87 91
1941 27 14
1934 20 83
1813 11 47
1990 45 69
1823 44 69
1861 71 74
1868 67 37
1974 29 36
1935 7 44
1894 12 31
19...

output:

2023

result:

ok single line: '2023'

Test #33:

score: 0
Accepted
time: 2ms
memory: 3640kb

input:

17
1849 59 89
1982 11 52
1858 90 60
2000 49 78
1909 35 80
1981 31 98
1867 11 19
1913 56 18
1854 21 11
1808 23 31
1954 67 80
1864 53 54
1845 30 28
1981 48 5
1998 27 42
1930 68 18
2011 92 54

output:

2038

result:

ok single line: '2038'

Test #34:

score: 0
Accepted
time: 1ms
memory: 3708kb

input:

83
1904 74 17
1848 89 9
2002 60 62
1922 8 95
1819 19 17
1993 73 66
1905 13 33
1972 83 54
1893 38 98
1863 66 26
1950 79 77
1829 61 97
2003 90 81
1888 52 12
1881 41 63
2004 87 35
1936 14 73
1974 36 56
1804 74 65
1855 74 11
1919 90 55
1930 10 59
1928 95 53
1968 29 12
1882 65 91
1976 37 31
1933 24 15
19...

output:

2032

result:

ok single line: '2032'

Test #35:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

18
2021 26 23
1948 88 56
1967 80 4
1908 97 35
1807 91 67
1879 24 25
1901 89 22
1951 70 40
1870 96 50
1895 26 54
1817 17 66
1932 94 97
1986 75 9
1844 52 41
2016 38 26
1969 16 14
1959 91 68
1862 44 9

output:

2047

result:

ok single line: '2047'

Test #36:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

82
1929 44 82
1899 17 81
1856 17 97
1910 56 97
1870 51 84
1831 90 31
1850 29 99
1817 83 5
1969 3 81
2016 92 23
1854 37 76
1913 52 95
1871 97 92
1968 31 42
1897 40 34
1852 44 78
2013 9 97
1950 44 90
1946 62 56
1965 31 23
1979 88 65
1870 53 73
1889 22 63
2005 52 4
1910 78 18
2017 44 32
1829 10 29
1923...

output:

2040

result:

ok single line: '2040'

Test #37:

score: 0
Accepted
time: 2ms
memory: 3600kb

input:

19
1976 30 33
1959 16 72
1946 79 43
1911 25 8
1831 48 13
1933 89 39
1997 26 48
1859 45 70
1924 5 97
1908 47 10
1899 33 40
1864 81 86
1957 38 64
1831 44 17
1819 24 95
2012 10 13
2006 41 26
1884 92 55
1849 63 81

output:

2103

result:

ok single line: '2103'

Test #38:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

81
1889 15 54
1999 97 45
1997 50 64
1887 76 88
1923 86 14
1835 58 52
1874 50 22
1952 81 64
1925 43 12
1831 83 52
2020 60 24
1908 12 31
1885 57 94
1840 44 61
1980 31 58
1888 38 98
1814 81 20
1972 35 57
1825 42 53
1862 68 71
1979 35 13
1874 89 9
1861 26 84
1930 66 9
1969 44 99
1975 93 61
1838 84 59
18...

output:

2106

result:

ok single line: '2106'

Test #39:

score: 0
Accepted
time: 2ms
memory: 3444kb

input:

20
2003 25 77
1939 83 96
1967 82 93
2021 71 8
1937 64 69
1965 26 23
1984 90 25
1974 81 62
2013 88 52
1802 52 54
1903 94 55
2010 92 51
1928 70 30
1834 23 56
1965 20 12
2016 76 26
1855 15 46
1961 7 82
1906 49 27
1878 92 29

output:

2025

result:

ok single line: '2025'

Test #40:

score: 0
Accepted
time: 2ms
memory: 3548kb

input:

80
1919 38 58
1961 46 94
1889 89 73
1892 34 10
1826 61 41
1822 31 65
1921 26 76
1893 85 14
1890 90 93
1925 60 27
1849 76 95
1845 89 54
1975 43 79
1921 49 4
1980 92 23
1811 81 8
1802 35 53
1934 30 92
1983 62 10
1978 41 37
1854 38 21
1910 77 26
1948 67 40
1955 24 98
1934 31 41
1991 41 76
1919 42 41
19...

output:

2058

result:

ok single line: '2058'

Test #41:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

21
2002 57 26
1803 79 88
1964 91 56
1859 28 66
1833 40 71
1999 80 42
1942 3 55
1829 35 91
1853 90 91
1818 92 82
2017 78 17
2014 95 64
1992 14 93
1975 67 12
1876 89 51
1850 72 34
1894 71 76
2003 74 12
1998 87 36
1987 44 42
1878 36 86

output:

2107

result:

ok single line: '2107'

Test #42:

score: 0
Accepted
time: 2ms
memory: 3640kb

input:

79
1890 58 55
1884 90 20
2018 99 52
1990 17 95
2000 34 66
1844 49 86
1960 71 97
2017 10 39
1847 5 46
1890 70 22
1974 56 47
1908 74 97
1889 9 41
2014 21 42
1896 68 98
1849 59 28
1960 93 45
1811 79 20
1910 96 85
1892 89 47
1808 38 78
1939 69 34
1818 24 81
1954 1 85
1880 48 70
1811 91 95
1844 15 84
198...

output:

2030

result:

ok single line: '2030'

Test #43:

score: 0
Accepted
time: 2ms
memory: 3576kb

input:

22
1975 89 32
1866 75 21
1885 88 50
1860 16 46
1986 29 28
1816 93 29
1837 98 15
1899 80 99
1866 82 80
1865 99 45
1852 90 14
1955 26 33
1879 93 86
1870 47 73
1829 13 41
1962 88 83
1814 98 10
1862 57 73
1979 11 48
1866 95 90
2014 1 34
1902 7 71

output:

2048

result:

ok single line: '2048'

Test #44:

score: 0
Accepted
time: 2ms
memory: 3552kb

input:

78
1908 42 57
1867 94 51
1821 35 74
1811 31 78
1995 75 63
1994 13 17
1869 31 26
2014 73 9
2004 44 45
1898 26 80
1981 12 20
2006 47 33
1886 40 26
1936 53 50
1969 62 76
1823 41 67
1974 51 44
1808 53 36
1876 95 92
1998 10 98
1843 4 97
1848 36 55
1943 18 14
1877 81 26
1956 43 88
2002 31 60
1937 74 6
197...

output:

2041

result:

ok single line: '2041'

Test #45:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

23
1978 55 50
1814 83 19
1951 99 35
1807 70 76
1825 62 7
1963 13 53
1835 63 52
1838 23 76
2001 70 70
1995 42 14
1918 68 58
1883 39 95
1939 22 19
1966 56 71
2020 39 48
1963 75 7
1999 9 34
1947 45 96
1842 27 51
1967 88 98
2021 41 47
1861 32 19
1994 8 38

output:

2037

result:

ok single line: '2037'

Test #46:

score: 0
Accepted
time: 2ms
memory: 3576kb

input:

77
1839 44 74
1831 62 43
1942 20 56
2005 9 12
1943 38 63
2007 34 16
1995 67 20
1876 49 34
1939 6 59
1824 92 85
1934 80 90
1983 28 87
2012 94 9
2020 97 22
2006 43 72
1829 98 5
1836 62 28
1866 38 42
1899 24 53
1960 5 95
1931 28 48
1882 22 64
1991 35 10
1866 93 82
1982 21 71
1908 11 57
1839 28 40
1882 ...

output:

2041

result:

ok single line: '2041'

Test #47:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

24
2013 16 69
1882 26 29
1893 13 69
1979 42 38
1950 26 29
1814 56 78
1897 75 74
1907 89 81
1806 9 34
1956 42 73
1903 45 96
1871 57 72
1807 95 32
1953 27 29
1822 99 50
1963 56 5
1874 52 68
1983 9 85
1952 88 35
1988 97 41
1823 58 36
1809 75 72
1980 30 8
2018 73 18

output:

2100

result:

ok single line: '2100'

Test #48:

score: 0
Accepted
time: 2ms
memory: 3636kb

input:

76
1809 65 31
1882 83 39
2019 72 61
1951 92 52
1932 47 6
1833 79 46
2020 30 53
1938 62 82
2003 90 37
1862 68 66
1886 82 15
1844 46 29
1958 58 15
1819 27 39
1907 36 66
1981 4 61
1887 69 75
1917 60 94
1934 76 93
1979 96 57
1932 83 21
1983 25 10
1854 58 26
1996 91 56
1828 44 23
1812 89 6
1889 5 88
1980...

output:

2033

result:

ok single line: '2033'

Test #49:

score: 0
Accepted
time: 1ms
memory: 3508kb

input:

25
1974 94 79
1922 95 38
1856 39 11
1805 26 82
1983 65 75
1993 47 64
1856 89 37
2014 6 19
1879 12 74
1877 38 11
2007 45 56
1962 68 48
2014 47 37
1932 74 59
1827 76 21
2000 50 7
1904 45 43
1997 93 64
1962 88 58
1858 98 47
1996 83 98
1961 31 68
1875 22 78
1972 78 18
1952 98 92

output:

2112

result:

ok single line: '2112'

Test #50:

score: 0
Accepted
time: 2ms
memory: 3580kb

input:

75
1907 10 36
1978 65 23
1940 31 27
1846 50 66
1833 43 83
1880 90 34
1843 51 36
1860 42 38
1935 34 12
1830 29 13
1811 48 91
1879 56 12
1917 80 27
1843 16 29
1982 87 87
1807 31 16
1858 41 99
1898 79 26
2000 69 32
1977 55 83
1945 6 34
2020 59 52
1984 44 77
1929 94 87
1827 46 24
1863 81 93
1987 50 29
2...

output:

2023

result:

ok single line: '2023'

Test #51:

score: 0
Accepted
time: 1ms
memory: 3580kb

input:

26
1972 35 34
2016 65 11
1985 44 21
1880 65 23
1886 56 76
1848 68 95
1888 49 44
1931 34 29
1934 78 27
1978 32 22
1985 68 12
1963 22 36
1937 74 20
1868 19 32
2000 34 46
1830 67 24
1991 18 58
1806 78 82
1961 99 31
1902 79 97
1872 21 85
1908 59 6
1802 9 38
2007 68 78
1878 48 7
1952 87 16

output:

2144

result:

ok single line: '2144'

Test #52:

score: 0
Accepted
time: 2ms
memory: 3540kb

input:

74
1953 23 80
1947 36 17
2003 77 50
1977 75 91
1858 61 82
1864 57 36
2018 94 45
1855 86 33
1882 62 80
1906 69 41
1923 26 34
1928 62 85
1945 6 57
1808 46 54
1958 82 7
1883 93 39
1814 66 94
1995 89 22
1973 60 39
1925 42 76
1816 56 76
1879 48 47
1975 57 57
1962 20 19
1982 54 45
1849 43 24
1928 50 49
18...

output:

2032

result:

ok single line: '2032'

Test #53:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

27
1813 92 70
1846 3 76
1964 85 34
2007 88 66
1962 82 81
1890 20 72
1990 12 73
1921 46 59
1986 31 49
1957 89 33
1912 83 30
1825 74 15
1963 16 75
1838 34 20
1890 93 10
1856 68 6
1827 38 27
1896 29 93
1902 2 85
1963 19 62
1944 27 85
1906 56 77
2021 12 89
1946 43 19
1893 12 85
1895 10 99
1920 89 56

output:

2060

result:

ok single line: '2060'

Test #54:

score: 0
Accepted
time: 2ms
memory: 3580kb

input:

73
2013 10 22
1936 26 86
1983 50 85
1932 89 56
1909 62 81
1955 92 82
1842 51 29
1836 10 42
1888 36 64
1850 89 59
1965 9 13
1933 90 30
1908 64 70
1809 79 66
1884 89 53
1983 83 64
1949 6 53
1818 80 22
1861 69 31
1848 14 29
1907 16 65
2018 83 88
1949 70 87
1846 85 71
1985 91 92
1903 63 49
1987 92 6
201...

output:

2023

result:

ok single line: '2023'

Test #55:

score: 0
Accepted
time: 2ms
memory: 3504kb

input:

28
1842 17 24
1976 47 65
1975 63 12
1956 97 37
2008 96 72
1817 57 74
1930 45 92
1805 87 73
1892 30 93
1809 38 73
1972 8 80
1993 99 89
1953 56 58
2019 52 31
1905 79 72
1899 28 18
1888 34 48
1940 27 92
1876 6 64
1900 89 93
1831 69 67
1865 73 16
1897 42 43
1886 23 54
1846 90 68
1974 71 20
1874 33 77
19...

output:

2052

result:

ok single line: '2052'

Test #56:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

72
1942 69 90
1997 91 4
1839 45 88
2004 17 98
1949 52 9
1971 83 47
1919 8 52
1878 75 14
2012 51 96
1923 11 52
1890 86 88
1825 91 50
1928 88 32
1908 17 86
1966 48 49
1809 21 71
1958 21 79
2003 59 21
1800 65 92
1957 71 31
1864 84 99
1976 42 37
1896 47 57
1971 11 92
1822 96 62
1812 77 56
1919 15 58
192...

output:

2023

result:

ok single line: '2023'

Test #57:

score: 0
Accepted
time: 2ms
memory: 3556kb

input:

29
1921 43 8
2012 60 80
1932 10 55
1991 47 60
1850 84 23
1974 66 52
2016 86 36
1839 46 93
1949 11 53
1838 12 98
1996 85 41
1922 57 65
1835 97 74
1970 57 68
1954 56 11
1846 33 69
1956 6 44
1895 91 71
1899 80 36
1876 39 92
1964 7 60
1835 41 59
1939 53 42
1822 8 90
1979 21 65
1960 79 7
2013 32 13
1803 ...

output:

2042

result:

ok single line: '2042'

Test #58:

score: 0
Accepted
time: 2ms
memory: 3580kb

input:

71
1918 65 14
2015 78 75
1878 8 69
1951 17 63
1859 11 58
1937 3 35
1985 11 72
1836 57 45
1882 52 87
1912 95 89
1897 60 75
1858 23 71
2015 22 28
2020 24 56
1967 94 87
1816 69 45
1840 51 50
2015 65 63
1856 6 55
1991 45 99
1871 31 41
1989 34 15
1850 34 29
1879 32 74
1846 46 56
1992 87 71
1983 46 56
187...

output:

2042

result:

ok single line: '2042'

Test #59:

score: 0
Accepted
time: 2ms
memory: 3584kb

input:

30
1875 15 73
1940 62 92
1829 66 14
1896 78 92
1850 33 59
2001 96 35
1907 80 61
1808 73 90
1912 98 18
1817 40 61
1911 62 78
1902 75 26
1831 16 81
1873 91 60
1956 13 6
1994 69 11
1849 88 86
1935 99 90
1886 94 44
1843 3 86
1909 39 43
1968 98 5
1906 62 32
1881 74 72
1817 8 93
1931 79 52
1823 71 17
1982...

output:

2034

result:

ok single line: '2034'

Test #60:

score: 0
Accepted
time: 1ms
memory: 3640kb

input:

70
1839 38 98
1917 63 78
1900 20 87
1907 50 68
1857 67 61
1837 48 30
1847 21 60
1816 52 50
1903 32 72
1882 41 79
1968 37 29
1867 62 88
1984 33 47
1952 30 14
2019 35 17
1946 81 15
1910 49 32
1969 39 77
1960 73 96
2002 78 92
2015 20 61
1945 31 32
1993 49 3
1875 49 48
1893 57 40
1836 71 91
1863 59 55
1...

output:

2051

result:

ok single line: '2051'

Test #61:

score: 0
Accepted
time: 2ms
memory: 3580kb

input:

31
1962 80 91
1918 50 16
1938 29 49
1954 36 68
1842 44 94
1858 56 39
1877 15 73
1937 48 93
1929 43 34
1942 89 63
1889 18 47
1937 61 25
1902 33 72
2001 31 98
1983 80 8
1929 56 5
1999 37 82
1827 11 63
1857 21 37
1846 71 76
1961 93 38
1988 25 51
1847 84 90
2002 73 35
1872 68 61
1872 9 43
1819 84 64
198...

output:

2049

result:

ok single line: '2049'

Test #62:

score: 0
Accepted
time: 2ms
memory: 3656kb

input:

69
1837 96 29
1940 62 74
1906 34 78
2000 63 78
1864 93 40
1932 14 19
1927 76 72
1952 38 74
1907 28 50
1810 47 5
1829 74 17
1838 60 72
1900 14 29
2011 98 53
1914 75 24
1805 55 51
1979 99 95
1813 83 33
1807 27 38
1922 82 76
1890 91 6
2006 64 38
1872 10 54
1876 90 31
1999 64 81
1901 84 36
1887 52 68
20...

output:

2045

result:

ok single line: '2045'

Test #63:

score: 0
Accepted
time: 2ms
memory: 3592kb

input:

32
1878 49 54
1802 17 73
1862 87 22
1883 32 39
1967 84 42
1806 32 71
1928 76 47
1957 64 79
1908 49 33
1879 49 4
1985 99 39
1968 67 35
1869 39 97
1972 80 20
1903 10 95
1955 76 56
2013 8 91
2019 80 86
1912 68 15
1991 98 22
1850 72 55
1801 95 8
1875 19 27
1942 75 41
1880 12 58
1872 24 74
1998 27 19
195...

output:

2051

result:

ok single line: '2051'

Test #64:

score: 0
Accepted
time: 2ms
memory: 3576kb

input:

68
1920 9 13
1970 20 7
1860 60 17
1963 25 97
1837 18 43
1904 43 66
1913 56 20
1902 59 61
1938 95 39
1923 88 62
1912 61 21
1890 72 49
1837 94 21
1850 60 69
1811 38 91
1938 45 73
1832 89 7
1856 56 47
2014 7 52
2005 59 43
1828 16 13
1920 37 51
1930 89 7
1802 17 76
1886 87 31
1865 51 98
1921 4 79
1858 6...

output:

2036

result:

ok single line: '2036'

Test #65:

score: 0
Accepted
time: 0ms
memory: 3444kb

input:

33
1960 17 42
1916 10 43
2012 4 34
1895 9 44
1988 17 85
1978 53 83
1837 53 42
1910 43 39
2006 96 36
1996 84 47
1947 27 80
1924 59 84
1800 76 20
1840 62 6
1804 18 78
1955 55 58
1956 58 74
1828 85 8
1990 55 90
2002 13 89
1879 9 29
1878 7 33
1926 70 60
1829 77 62
1888 50 24
1861 94 16
2015 30 72
2008 4...

output:

2026

result:

ok single line: '2026'

Test #66:

score: 0
Accepted
time: 2ms
memory: 3552kb

input:

67
1851 51 65
2014 29 41
1935 84 47
1810 7 82
1969 15 22
1885 48 85
1807 87 22
1831 8 47
1949 29 41
1988 40 94
1987 83 66
1800 15 94
1837 36 84
1955 59 52
1959 68 83
1959 31 15
1816 75 36
1899 55 51
1874 77 39
1999 90 48
1894 86 27
1865 65 33
1889 38 36
1968 26 96
1868 46 16
1989 92 11
1865 70 30
18...

output:

2038

result:

ok single line: '2038'

Test #67:

score: 0
Accepted
time: 1ms
memory: 3612kb

input:

34
1883 46 43
1837 18 33
1985 22 30
1872 40 70
1847 84 63
2003 99 31
1853 81 99
1987 11 76
1934 43 83
1995 34 42
1978 25 61
1957 67 56
1929 49 74
1876 20 75
1872 59 14
1899 73 97
1836 14 94
1911 87 10
1912 29 47
1906 11 18
1817 11 96
1876 59 44
1960 66 34
1920 23 88
1956 86 69
1800 97 66
1967 96 96
...

output:

2035

result:

ok single line: '2035'

Test #68:

score: 0
Accepted
time: 2ms
memory: 3552kb

input:

66
2005 94 45
1959 50 45
2014 77 32
1997 16 56
2009 13 10
1963 1 60
1954 44 24
1980 69 1
1966 24 17
1826 50 56
1895 24 80
2006 49 13
1866 96 73
1963 50 90
1945 85 11
2010 21 7
2011 58 22
1887 66 91
1930 78 24
1829 36 82
1959 48 39
1839 31 75
1923 9 87
1983 24 85
2017 60 11
2004 92 20
1985 54 21
1809...

output:

2023

result:

ok single line: '2023'

Test #69:

score: 0
Accepted
time: 0ms
memory: 3556kb

input:

35
1882 93 22
1881 78 63
1899 75 98
1875 91 80
1862 48 13
1985 98 81
1987 11 56
1898 27 37
2012 54 61
1872 81 64
1915 20 45
1839 39 45
1805 54 78
1873 41 80
1824 9 69
1861 58 55
1968 67 89
1808 13 29
1857 70 53
1890 90 22
1895 3 70
1959 26 20
1959 98 93
2006 78 31
1876 23 39
1973 66 14
1903 72 68
18...

output:

2031

result:

ok single line: '2031'

Test #70:

score: 0
Accepted
time: 2ms
memory: 3552kb

input:

65
1917 52 14
1895 33 43
1840 78 49
1878 32 73
2017 50 72
1820 37 14
1982 78 10
1876 64 84
2017 57 35
1831 26 44
1966 74 58
1858 4 89
1814 47 8
1939 42 46
1986 71 7
1851 57 83
1832 68 45
1959 78 1
1958 15 87
2004 99 87
2013 38 77
1904 45 87
1845 53 54
1814 44 24
1864 91 26
1949 39 94
1964 86 4
1802 ...

output:

2025

result:

ok single line: '2025'

Test #71:

score: 0
Accepted
time: 2ms
memory: 3552kb

input:

36
2016 91 81
1993 42 93
1834 17 67
1951 76 69
1922 57 42
1910 65 78
1876 82 69
1882 44 52
1801 61 11
1920 61 67
1877 46 33
2011 84 65
1857 68 50
1835 41 33
1884 48 19
1913 67 29
1881 87 72
1992 91 94
1832 16 47
1960 23 61
1870 53 36
1864 40 79
1845 23 44
1954 6 67
2010 20 76
2000 12 52
1864 41 18
1...

output:

2041

result:

ok single line: '2041'

Test #72:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

64
1969 20 92
1859 35 8
1957 27 40
1871 14 23
1897 32 44
1926 60 69
1966 99 50
1891 98 60
1817 97 27
1862 63 38
1806 54 89
1968 38 37
1810 33 57
1862 70 9
1808 52 67
1991 75 38
1808 49 15
2000 40 19
1844 91 32
1866 52 98
1934 35 30
1802 96 98
1958 17 45
1892 54 72
2004 89 74
1969 86 5
1898 11 24
190...

output:

2053

result:

ok single line: '2053'

Test #73:

score: 0
Accepted
time: 2ms
memory: 3580kb

input:

37
1921 52 30
1988 4 17
2009 24 74
2010 34 45
1861 36 14
1825 11 48
1975 81 81
2002 45 58
1844 56 92
1824 84 33
1918 42 57
1832 53 32
1832 63 46
1864 86 95
1999 85 70
1845 69 61
1952 1 77
1840 55 6
2012 90 57
1893 68 86
1852 61 79
2017 18 92
1997 52 58
1989 64 69
1914 84 19
1900 4 63
1857 99 56
1916...

output:

2029

result:

ok single line: '2029'

Test #74:

score: 0
Accepted
time: 2ms
memory: 3608kb

input:

63
1977 73 96
1896 25 74
1974 1 88
1903 65 43
1858 88 75
2015 31 23
1998 11 92
1998 27 51
1814 20 69
1823 30 35
1831 90 96
2014 65 86
1872 42 5
1969 31 39
1890 46 51
1939 88 34
1961 67 56
1943 97 31
1982 97 70
1861 99 39
1998 73 24
1909 31 45
1834 44 19
1827 85 63
1877 75 9
1964 41 12
2002 60 57
183...

output:

2023

result:

ok single line: '2023'

Test #75:

score: 0
Accepted
time: 2ms
memory: 3584kb

input:

38
1976 21 94
1920 93 88
1870 11 80
1808 28 40
1949 39 58
1836 57 65
1886 73 55
1914 35 46
1814 72 28
1963 5 36
2019 3 15
1974 14 41
1891 84 78
1832 75 43
1964 4 66
1821 58 66
1891 8 21
1949 11 75
2011 9 99
1807 63 81
1947 9 58
1856 84 89
1981 59 80
1956 67 44
1886 49 59
1808 32 17
1969 40 68
1838 2...

output:

2034

result:

ok single line: '2034'

Test #76:

score: 0
Accepted
time: 2ms
memory: 3580kb

input:

62
1973 81 53
1997 70 25
1871 58 57
1974 51 43
1940 89 98
1804 8 51
2015 19 74
1897 35 49
1960 54 60
1935 69 6
2000 72 64
1848 79 87
1894 31 80
1883 9 41
1941 84 46
1886 77 99
1953 53 80
1828 91 64
1955 54 32
1998 10 6
1997 88 74
1995 8 83
1898 76 36
1867 50 21
1882 46 38
1824 34 18
1951 15 11
2019 ...

output:

2028

result:

ok single line: '2028'

Test #77:

score: 0
Accepted
time: 2ms
memory: 3564kb

input:

39
1883 90 63
1954 81 57
1930 74 46
1981 51 85
1879 79 75
1970 36 82
1861 80 99
1949 2 79
1925 3 46
1901 97 7
1918 34 56
1972 62 44
1910 97 46
1906 46 80
1881 93 34
1905 35 32
1936 7 99
1907 55 93
1904 90 79
1907 26 45
1956 56 47
1809 41 73
1818 49 9
1952 87 50
1807 21 17
1814 52 73
1951 92 50
1876 ...

output:

2063

result:

ok single line: '2063'

Test #78:

score: 0
Accepted
time: 2ms
memory: 3584kb

input:

61
1814 83 55
1843 27 65
1939 50 13
1954 63 97
1917 40 61
1905 56 59
1814 13 62
1974 81 31
1968 9 21
1996 64 90
1952 28 36
1890 92 26
1845 52 37
2000 7 95
1962 82 58
1847 99 98
2015 63 19
1931 98 21
1872 53 41
1984 64 82
2009 2 39
1888 94 54
1880 26 7
1949 85 62
1912 70 8
1885 10 87
1982 13 28
1870 ...

output:

2031

result:

ok single line: '2031'

Test #79:

score: 0
Accepted
time: 0ms
memory: 3636kb

input:

40
1990 30 16
1884 44 47
2015 43 49
2010 4 63
2019 25 40
1866 83 58
1957 37 5
1953 10 9
1879 94 99
1895 60 49
1909 90 64
1904 65 6
1979 92 92
1857 86 83
1955 64 90
1892 25 39
1802 61 29
2003 33 59
2014 10 3
2017 50 6
1830 27 99
1907 35 75
1957 73 95
1963 95 60
1810 74 23
2021 61 63
1935 59 62
1946 9...

output:

2043

result:

ok single line: '2043'

Test #80:

score: 0
Accepted
time: 1ms
memory: 3576kb

input:

60
1898 8 73
1993 10 25
1881 99 64
1983 29 24
1974 99 11
1872 12 95
1874 98 11
1967 77 79
2001 93 52
1872 85 44
1960 69 13
1991 4 36
1899 16 49
1808 89 41
2000 52 18
1805 6 80
1835 42 19
1824 53 10
1843 60 86
1802 66 98
1826 82 92
1979 18 72
1924 27 85
1970 78 63
1924 75 70
1845 71 21
1813 61 85
196...

output:

2027

result:

ok single line: '2027'

Test #81:

score: 0
Accepted
time: 2ms
memory: 3580kb

input:

41
1894 75 55
1880 55 33
2015 54 36
1971 62 47
2008 81 31
2001 57 18
1856 67 23
2004 29 28
1874 74 51
1832 37 82
1931 36 83
1978 82 71
1965 99 88
1925 27 12
1991 88 54
1941 81 61
1859 88 40
1924 62 95
1952 38 35
1821 34 13
1932 36 58
1988 57 15
2005 31 9
1876 64 61
2021 21 45
1935 10 45
1823 46 68
2...

output:

2025

result:

ok single line: '2025'

Test #82:

score: 0
Accepted
time: 2ms
memory: 3580kb

input:

59
1844 52 60
1815 70 18
1864 6 81
1842 64 42
1926 45 74
1823 55 12
1859 45 36
1809 17 48
1827 84 98
1900 6 94
1903 93 35
1862 81 70
1992 74 22
1995 42 19
1974 81 90
1935 24 76
1850 10 61
1864 70 79
1813 57 29
1915 68 48
1854 77 39
2013 63 44
1924 27 82
1963 89 78
1931 60 38
2014 24 66
2001 59 90
20...

output:

2026

result:

ok single line: '2026'

Test #83:

score: 0
Accepted
time: 2ms
memory: 3612kb

input:

42
1915 93 90
1982 75 4
1855 7 31
1904 35 9
2013 99 71
2020 70 49
1893 58 32
1978 55 27
1983 41 55
1928 36 46
1910 9 83
2015 80 65
1882 83 57
1850 95 80
1845 32 11
1959 8 54
1864 68 27
1808 21 40
1964 10 11
1982 93 43
2001 50 55
1950 23 81
1936 90 91
1947 73 6
1901 24 19
1828 94 80
1977 97 69
1942 7...

output:

2072

result:

ok single line: '2072'

Test #84:

score: 0
Accepted
time: 2ms
memory: 3696kb

input:

58
1865 50 42
1886 18 49
1850 77 75
1950 38 64
1838 80 26
1959 66 94
1868 98 11
1926 73 22
1975 1 96
1932 53 61
1944 71 76
1869 7 57
1951 30 23
1841 93 71
2018 61 57
1903 40 39
1965 70 83
1976 86 7
1811 18 89
1801 32 65
1936 21 96
1913 98 34
1969 5 34
1952 50 79
1943 51 29
1803 34 98
1841 93 68
1897...

output:

2071

result:

ok single line: '2071'

Test #85:

score: 0
Accepted
time: 2ms
memory: 3588kb

input:

43
1843 56 17
1990 11 63
1993 48 46
1892 6 99
1837 89 12
1860 56 12
1853 99 52
1923 24 45
1902 84 30
2013 70 65
1829 30 66
1980 62 37
1886 44 45
1841 54 11
1942 86 55
1938 13 14
1816 49 68
1871 61 23
1866 8 31
1986 72 82
2015 49 61
1849 68 93
1887 6 83
1809 38 11
1972 69 48
1999 23 85
1814 68 18
200...

output:

2028

result:

ok single line: '2028'

Test #86:

score: 0
Accepted
time: 1ms
memory: 3504kb

input:

57
1879 59 62
2020 56 53
1830 73 20
1853 86 88
1880 63 48
1806 78 93
1935 55 86
1810 67 88
1806 55 29
1985 36 74
1995 58 28
1897 65 60
1947 70 80
1936 49 3
1952 17 70
1850 85 15
2003 91 63
1870 50 65
1881 83 5
1887 29 40
2014 48 19
1881 7 65
2005 14 61
1959 88 60
1850 12 97
1996 48 51
1916 44 17
185...

output:

2034

result:

ok single line: '2034'

Test #87:

score: 0
Accepted
time: 2ms
memory: 3712kb

input:

44
1859 82 54
1906 52 10
1993 55 88
1815 89 47
1889 19 34
2010 41 73
2006 99 41
2012 39 78
2005 87 31
1876 5 31
1956 69 91
1865 82 22
1939 68 35
1858 77 21
1920 40 97
1905 28 55
1926 77 78
1892 72 84
1885 53 36
1822 79 11
1914 10 58
1965 76 3
1910 99 92
1988 42 79
1959 12 54
1810 82 7
2019 79 7
1802...

output:

2031

result:

ok single line: '2031'

Test #88:

score: 0
Accepted
time: 2ms
memory: 3552kb

input:

56
2019 1 65
2016 89 87
2006 40 64
1833 14 40
1886 66 77
2021 53 4
2001 79 79
1986 19 91
1952 63 35
1992 25 68
1946 44 66
1827 23 18
1812 65 35
1988 94 70
1989 77 52
1953 72 20
1864 74 54
1921 36 33
1920 14 9
1884 32 21
2008 61 8
1950 96 6
1905 42 51
1945 43 47
1883 30 36
2009 89 36
1821 33 47
1804 ...

output:

2041

result:

ok single line: '2041'

Test #89:

score: 0
Accepted
time: 2ms
memory: 3576kb

input:

45
1920 59 64
1804 63 13
1813 89 27
1814 61 59
1805 38 11
1930 44 82
1847 77 48
1817 38 94
1876 95 32
1914 14 71
1923 23 6
1933 5 29
1982 43 38
1932 34 12
2002 73 87
2010 80 1
1808 56 31
1807 87 39
1931 82 36
1880 91 93
2014 23 43
1926 83 9
1911 58 82
1853 68 89
1843 86 48
1908 75 12
1857 73 57
1971...

output:

2061

result:

ok single line: '2061'

Test #90:

score: 0
Accepted
time: 2ms
memory: 3712kb

input:

55
1962 10 23
1910 6 77
1948 17 33
1918 5 81
2002 3 42
1953 70 29
1812 91 74
1812 33 7
2016 21 13
2009 38 92
1811 21 54
1870 28 30
1991 57 65
1937 6 97
1945 91 25
1800 98 48
1985 11 58
1878 15 69
1851 64 76
1883 87 7
1925 83 37
1889 30 99
1960 81 42
1971 23 98
1862 79 68
1869 30 37
2015 17 1
1929 98...

output:

2027

result:

ok single line: '2027'

Test #91:

score: 0
Accepted
time: 1ms
memory: 3648kb

input:

46
1837 28 50
2021 31 16
1904 43 87
1870 26 47
1921 45 55
1857 79 47
1968 20 68
1912 8 70
1895 20 98
2021 8 33
1881 17 88
1922 29 33
1841 4 97
1911 33 19
1982 27 39
1818 35 34
1865 76 42
1906 39 47
1848 86 49
1988 72 21
1819 44 20
1950 16 90
1997 5 22
1856 52 51
1964 21 64
2002 8 57
1957 8 75
1930 9...

output:

2039

result:

ok single line: '2039'

Test #92:

score: 0
Accepted
time: 0ms
memory: 3644kb

input:

54
1899 75 61
1898 44 57
1974 72 60
1928 35 13
1928 8 84
1846 90 64
1982 16 60
1979 57 76
1838 64 70
1952 85 33
1978 22 5
1884 62 9
1939 60 57
1817 7 54
1981 5 13
1932 31 89
1992 36 25
1902 7 65
1979 21 32
1806 43 76
1935 81 65
1828 45 83
1920 12 70
1967 63 27
1981 13 50
1995 98 7
1810 16 99
1895 16...

output:

2046

result:

ok single line: '2046'

Test #93:

score: 0
Accepted
time: 1ms
memory: 3580kb

input:

47
1948 48 14
1965 49 78
1809 41 68
1941 77 98
2006 20 86
1932 52 34
1832 67 23
2004 74 25
1963 96 57
1832 75 28
1981 15 20
1889 67 48
1846 18 58
1840 60 48
1819 57 83
1971 51 95
1845 53 24
1922 10 19
1928 24 97
1998 81 79
1892 80 98
1835 99 32
1917 70 37
1923 55 92
2019 26 11
1850 97 81
2011 4 90
1...

output:

2039

result:

ok single line: '2039'

Test #94:

score: 0
Accepted
time: 2ms
memory: 3552kb

input:

53
1826 50 70
1923 32 38
1969 88 35
1898 47 96
1964 56 77
1987 8 87
1856 58 52
1944 23 4
1851 59 54
1930 67 76
1972 10 23
2018 82 67
1808 88 53
1808 35 45
1906 44 18
1985 27 42
1988 52 96
1861 20 88
1995 61 53
1883 67 21
1810 81 96
1958 72 18
1943 96 3
1954 73 54
1843 43 83
1864 30 37
1921 98 70
197...

output:

2030

result:

ok single line: '2030'

Test #95:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

48
1875 41 39
1944 89 92
1890 37 8
1961 28 77
1881 65 96
1857 21 39
1864 62 43
1985 26 70
1951 1 95
1979 94 40
1851 29 76
1857 69 24
1960 28 94
1953 15 40
1916 70 15
1837 59 94
1933 69 35
1931 29 80
1956 68 3
2010 54 15
1946 42 16
1995 46 34
2015 74 8
1942 64 52
1845 96 76
1837 40 28
1909 41 43
1881...

output:

2046

result:

ok single line: '2046'

Test #96:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

52
1872 46 10
1803 87 7
1841 3 74
1983 22 31
1992 43 69
1884 45 79
1921 46 73
1860 7 62
1847 57 53
1938 98 21
1902 73 57
1964 3 84
1858 96 68
1877 35 51
1938 79 91
1993 46 84
1990 84 22
1841 9 65
1972 19 92
1813 45 22
1879 53 71
1864 33 80
1888 39 80
1962 1 96
1903 84 89
1847 43 67
1925 97 54
2011 9...

output:

2034

result:

ok single line: '2034'

Test #97:

score: 0
Accepted
time: 2ms
memory: 3612kb

input:

49
1859 53 37
1871 18 38
2021 4 35
1966 41 99
1822 46 54
1980 64 27
1853 79 21
1943 39 69
1873 41 43
1955 38 5
1969 70 39
1829 33 62
2016 16 7
1913 2 55
1808 65 55
1994 38 6
1997 29 61
1818 94 88
2021 49 63
1879 5 74
1984 99 60
1867 62 11
2008 40 78
1911 3 98
1981 61 7
1965 59 71
1889 88 84
1858 9 8...

output:

2023

result:

ok single line: '2023'

Test #98:

score: 0
Accepted
time: 2ms
memory: 3556kb

input:

51
1816 65 82
1938 23 74
2016 73 2
1909 50 35
1981 39 16
1968 90 61
1836 71 20
1889 35 42
2018 22 60
1949 20 75
1950 28 24
1810 82 25
1971 74 32
2014 37 94
2019 86 7
1841 34 93
1916 87 36
1950 70 83
1867 74 24
1804 11 34
1838 36 77
2008 47 29
1995 35 37
1941 81 30
1869 18 19
1922 30 91
1954 66 15
18...

output:

2038

result:

ok single line: '2038'

Test #99:

score: 0
Accepted
time: 2ms
memory: 3612kb

input:

50
2005 48 23
1806 50 90
1980 88 63
1920 34 43
1893 84 41
1969 99 53
1960 34 45
1821 69 90
1805 95 14
1951 81 85
1820 44 54
1997 12 45
1831 58 53
1949 25 86
1968 76 84
1963 46 98
1925 60 49
1950 49 28
1834 51 86
1923 62 10
1826 80 24
1973 37 16
1922 54 98
1844 82 96
1969 79 78
1820 23 26
1889 39 91
...

output:

2023

result:

ok single line: '2023'

Test #100:

score: 0
Accepted
time: 2ms
memory: 3548kb

input:

99
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
2021 99 98
...

output:

11723

result:

ok single line: '11723'

Test #101:

score: 0
Accepted
time: 2ms
memory: 3648kb

input:

99
1982 94 87
1917 98 95
1998 88 97
1997 99 86
2018 89 94
1969 97 90
1913 85 99
1904 99 83
1911 97 93
1976 99 95
1999 91 90
1921 85 97
2016 95 93
1984 99 85
2019 92 97
2019 97 87
1966 97 85
1923 88 95
1963 99 98
1985 94 99
1917 94 95
1990 97 96
1939 92 91
1916 97 86
1908 97 99
1903 87 94
1969 91 95
...

output:

10081

result:

ok single line: '10081'

Test #102:

score: 0
Accepted
time: 2ms
memory: 3648kb

input:

99
2000 97 80
1945 91 88
2015 97 85
1900 96 89
1917 95 93
1974 97 88
2009 93 91
2017 98 81
1905 93 82
2014 99 89
1945 92 85
1984 93 83
1925 99 82
1958 95 82
1927 98 97
1977 91 87
1939 94 93
2006 97 89
1999 95 86
1903 95 87
2013 97 90
1900 94 87
1973 93 86
1909 91 83
1975 95 94
1946 97 77
1967 99 86
...

output:

9385

result:

ok single line: '9385'

Test #103:

score: 0
Accepted
time: 0ms
memory: 3580kb

input:

1
2021 1 1

output:

2022

result:

ok single line: '2022'