General
 
 
# Author Problem Lang Verdict Time Memory Sent Judged  
43770149 Contestant:
InFiNaNt
1060C - 14 GNU C++14 Accepted 46 ms 56 KB 2018-10-04 11:01:13 2018-10-04 13:24:48
 
 
→ Source
#include<bits/stdc++.h>
using namespace std;

#define ll long long
#define sp ios_base::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL)
#define cps CLOCKS_PER_SEC
#define mod (ll)1000000007
#define f first
#define s second
#define debug1(x) cerr<<x<<"\n"
#define debug2(x,y) cerr<<x<<" "<<y<<"\n"
#define debug3(x,y,z) cerr<<x<<" "<<y<<" "<<z<<"\n"
#define nl cerr<<"\n";
#define pq priority_queue
#define inf 0x3f3f3f3f
#define test cerr<<"abcd\n";
#define pi pair<int,int>
#define pii pair<int,pi>
#define pb push_back
#define mxn 200005
int main()
{
    //sp;
    ll n,m,x;
    cin>>n>>m;
    ll a[n+1],b[m+1],p[n+1],q[m+1];
    a[0]=0;
    b[0]=0;
    for(int i=1;i<=n;i++)
    {
        cin>>a[i];
    }
    for(int i=1;i<=m;i++)
    {
        cin>>b[i];
    }
    cin>>x;
    for(int i=1;i<=n;i++)
    {
        a[i]+=a[i-1];
    }
    for(int j=1;j<=m;j++)
    {
        b[j]+=b[j-1];
    }
    for(int i=1;i<=n;i++)
    {
        ll ans=INT_MAX;
        for(int j=0;j<=n-i;j++)
        {
            ans=min(ans,a[j+i]-a[j]);
        }
        p[i]=ans;
    }
    for(int i=1;i<=m;i++)
    {
        ll ans=INT_MAX;
        for(int j=0;j<=m-i;j++)
        {
            ans=min(ans,b[j+i]-b[j]);
        }
        q[i]=ans;
    }
    ll ans=INT_MIN;

    for(ll i=1;i<=n;i++)
    {
        for(ll j=1;j<=m;j++)
        {
            if(p[i]*q[j]<=x)
            {
                ans=max(ans,i*j);
            }
        }
    }
    if(ans==INT_MIN)
    {
        cout<<"0\n";
        return 0;
    }
    cout<<ans<<"\n";
}
 
 
1
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
3 3
1 2 3
1 2 3
9
Participant's output
4
Jury's answer
4
Checker comment
ok answer is '4'
 
 
2
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
5 1
5 4 2 4 5
2
5
Participant's output
1
Jury's answer
1
Checker comment
ok answer is '1'
 
 
3
Time: 31 ms, memory: 52 KB
Verdict: OK
Input
2000 2000
2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 ...
Participant's output
500
Jury's answer
500
Checker comment
ok answer is '500'
 
 
4
Time: 0 ms, memory: 0 KB
Verdict: OK
Input
1 1
1
1
1
Participant's output
1
Jury's answer
1
Checker comment
ok answer is '1'
 
 
5
Time: 15 ms, memory: 24 KB
Verdict: OK
Input
2000 1
766 1957 1873 207 920 262 1836 1232 260 115 1723 1179 1042 1933 1368 988 24 252 914 52 1901 1879 780 996 431 141 1740 54 1390 255 157 580 239 131 317 1055 1001 707 784 905 1019 332 155 411 1924 1680 1049 1616 1882 612 266 1592 1972 130 1023 518 1216 968 1231 1587 174 856 886 297 354 1574 1408 1960 614 1021 386 420 837 1162 402 372 738 415 762 965 895 1938 473 1894 390 507 337 986 1796 1785 1498 201 729 510 206 1646 889 991 1835 682 1662 1413 1636 1984 1011 798 480 1127 1562 1724 842 187 88 517 1823...
Participant's output
275
Jury's answer
275
Checker comment
ok answer is '275'
 
 
6
Time: 0 ms, memory: 0 KB
Verdict: OK
Input
5 5
816 1061 1639 1627 1007
45 104 1091 592 1881
84465
Participant's output
2
Jury's answer
2
Checker comment
ok answer is '2'
 
 
7
Time: 15 ms, memory: 4 KB
Verdict: OK
Input
5 5
816 1061 1639 1627 1007
45 104 1091 592 1881
36719
Participant's output
0
Jury's answer
0
Checker comment
ok answer is '0'
 
 
8
Time: 30 ms, memory: 52 KB
Verdict: OK
Input
2000 2000
635 298 1104 1986 225 646 893 494 1147 259 730 687 231 1510 1198 1971 578 1463 673 1134 738 227 1249 1237 493 474 496 1396 943 642 1011 40 760 626 1685 726 236 328 1218 322 513 676 332 1865 916 1387 714 1560 1476 644 1348 1698 102 1534 1512 1597 1487 777 440 149 461 920 1530 1464 1071 1941 598 1129 1672 1981 780 910 1904 208 1932 1474 1715 626 491 1555 1232 1549 1892 229 1947 1101 949 1133 91 1970 1246 886 796 1122 134 1168 1711 1956 1830 1580 1717 149 1163 1137 1352 1655 744 1690 179 1613 674 1...
Participant's output
8415
Jury's answer
8415
Checker comment
ok answer is '8415'
 
 
9
Time: 15 ms, memory: 52 KB
Verdict: OK
Input
2000 2000
635 298 1104 1986 225 646 893 494 1147 259 730 687 231 1510 1198 1971 578 1463 673 1134 738 227 1249 1237 493 474 496 1396 943 642 1011 40 760 626 1685 726 236 328 1218 322 513 676 332 1865 916 1387 714 1560 1476 644 1348 1698 102 1534 1512 1597 1487 777 440 149 461 920 1530 1464 1071 1941 598 1129 1672 1981 780 910 1904 208 1932 1474 1715 626 491 1555 1232 1549 1892 229 1947 1101 949 1133 91 1970 1246 886 796 1122 134 1168 1711 1956 1830 1580 1717 149 1163 1137 1352 1655 744 1690 179 1613 674 1...
Participant's output
10000
Jury's answer
10000
Checker comment
ok answer is '10000'
 
 
10
Time: 46 ms, memory: 56 KB
Verdict: OK
Input
2000 2000
635 298 1104 1986 225 646 893 494 1147 259 730 687 231 1510 1198 1971 578 1463 673 1134 738 227 1249 1237 493 474 496 1396 943 642 1011 40 760 626 1685 726 236 328 1218 322 513 676 332 1865 916 1387 714 1560 1476 644 1348 1698 102 1534 1512 1597 1487 777 440 149 461 920 1530 1464 1071 1941 598 1129 1672 1981 780 910 1904 208 1932 1474 1715 626 491 1555 1232 1549 1892 229 1947 1101 949 1133 91 1970 1246 886 796 1122 134 1168 1711 1956 1830 1580 1717 149 1163 1137 1352 1655 744 1690 179 1613 674 1...
Participant's output
10000
Jury's answer
10000
Checker comment
ok answer is '10000'
 
 
11
Time: 15 ms, memory: 16 KB
Verdict: OK
Input
1234 123
1885 1981 1189 1680 787 2 1770 1938 556 1548 220 310 692 758 1848 247 923 1436 1458 1892 1078 655 1182 784 973 1940 1816 419 1995 1653 717 1511 306 1646 448 1867 1684 1505 118 1204 1579 531 1306 1271 1153 492 1530 1649 905 507 1271 1263 340 1712 121 710 61 1872 1577 12 1422 1525 790 1245 1112 1403 1361 199 1823 1828 1584 1870 620 933 782 1529 1049 1127 1209 147 1544 1335 339 1995 1357 918 1491 1044 927 969 577 166 1803 1082 45 1595 945 965 632 1314 1845 460 537 1920 1727 788 1737 1930 492 134 191...
Participant's output
4936
Jury's answer
4936
Checker comment
ok answer is '4936'
 
 
12
Time: 15 ms, memory: 16 KB
Verdict: OK
Input
123 1234
18 20 51 170 302 1718 631 1256 41 1968 362 1 1260 1513 1750 1501 723 1305 586 647 942 173 1447 1069 1569 1432 1203 83 1028 1405 778 1168 179 1030 1800 1422 31 1680 944 862 1131 1356 1752 882 1391 1792 219 1906 9 228 1909 1624 648 950 1147 1107 1343 918 576 232 152 138 833 1436 190 523 1883 1531 1457 1911 543 1877 1558 525 1908 1179 1925 516 725 1926 1961 628 127 1889 1764 1562 613 1978 408 1977 748 1221 286 820 847 953 227 965 1612 896 342 1353 980 539 76 690 255 1293 268 468 1702 459 1812 1976 1...
Participant's output
6170
Jury's answer
6170
Checker comment
ok answer is '6170'
 
 
13
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
1 500
989
1292 627 1763 1411 1261 160 1265 1981 1642 224 247 1845 175 1684 1879 854 823 69 170 1411 454 1756 1260 942 496 8 1115 353 367 219 795 73 1392 573 276 581 1238 440 274 1035 742 106 1797 1268 538 1974 831 1195 926 547 1496 1363 630 699 317 702 1814 286 605 1654 1560 1405 1595 343 842 895 175 1219 1341 1455 1429 1277 1319 1515 60 1822 1954 471 855 1940 267 1640 832 510 1540 842 1984 1 866 1067 969 86 495 333 828 265 1449 1096 1939 1244 977 1941 1848 1650 702 1812 204 980 615 759 1761 1663 428 155...
Participant's output
190
Jury's answer
190
Checker comment
ok answer is '190'
 
 
14
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
5 5
816 1061 1639 1627 1007
45 104 1091 592 1881
165947710
Participant's output
25
Jury's answer
25
Checker comment
ok answer is '25'
 
 
15
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
1 5
549
1422 1870 569 844 1178
340452749
Participant's output
5
Jury's answer
5
Checker comment
ok answer is '5'
 
 
16
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
1 10
491
980 1907 1241 336 811 1048 957 440 143 1835
938294862
Participant's output
10
Jury's answer
10
Checker comment
ok answer is '10'
 
 
17
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
1 50
758
1915 1868 1403 691 77 403 1322 701 1192 1463 911 1029 1471 1610 736 1501 1243 1327 1624 412 455 177 371 750 1156 989 1861 498 567 803 1140 346 1654 1961 330 718 943 1880 1476 1193 1666 1757 405 202 417 585 1812 293 791 1858
1796075481
Participant's output
50
Jury's answer
50
Checker comment
ok answer is '50'
 
 
18
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
1 100
1612
1989 1820 1837 815 943 208 131 1252 1372 145 1182 1200 499 1312 1390 829 1343 1378 280 492 609 1439 1128 1597 123 372 953 472 1078 1522 526 1639 1357 1452 1357 89 480 1597 783 177 1106 688 1426 1334 1292 406 1959 1649 1768 1956 1844 273 454 354 1170 1514 10 557 1472 1697 1004 485 1870 1394 102 400 883 1979 938 501 1368 1038 922 1090 1339 1379 254 1335 1853 1923 1249 1449 1588 334 1460 256 1386 918 1818 409 236 1538 346 1860 587 268 81 1015 1838 1955
1774052077
Participant's output
100
Jury's answer
100
Checker comment
ok answer is '100'
 
 
19
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
1 250
1134
1071 477 1612 148 1082 1322 388 1241 1275 328 285 248 1335 1438 1864 1441 1991 1428 775 1847 248 1482 639 1234 361 1008 45 590 1120 1852 910 1899 1014 135 437 123 582 352 1705 358 258 999 1492 1065 1470 531 1093 1298 563 317 1839 1046 285 1283 1256 1164 158 438 571 896 1353 1036 1702 1233 1527 1694 701 1266 517 939 1781 172 1828 1716 793 939 1000 958 521 909 1274 1523 870 1079 294 1441 1720 1039 878 857 712 1794 101 353 1638 1024 1748 1411 1460 11 1448 92 56 1804 1010 813 1934 1470 1398 926 17...
Participant's output
250
Jury's answer
250
Checker comment
ok answer is '250'
 
 
20
Time: 0 ms, memory: 4 KB
Verdict: OK
Input
250 125
18 97 1842 987 1365 1242 439 33 49 1433 802 1212 1051 384 234 1600 1579 1698 1946 1093 300 186 1295 966 335 1653 891 1457 88 531 1301 585 1248 362 1431 1511 1537 819 1199 1029 509 699 1662 1298 1928 851 492 913 441 1649 1378 297 93 1341 1534 742 1524 1061 1603 1831 1666 713 1094 494 607 95 882 1859 616 560 917 1665 988 1113 1825 72 319 28 300 201 970 1244 1440 1997 249 68 699 495 924 353 1568 1933 1782 1475 517 779 1713 1296 163 1567 153 1842 505 550 252 1796 250 1278 656 824 826 1146 189 1588 179...
Participant's output
1250
Jury's answer
1250
Checker comment
ok answer is '1250'
 
 
21
Time: 31 ms, memory: 0 KB
Verdict: OK
Input
125 250
640 972 1279 1991 783 1258 1095 1020 96 944 1992 1867 1481 1779 890 905 260 361 696 944 608 1790 3 301 926 1904 1856 640 980 1988 1541 1919 574 1023 512 882 1256 29 1872 1288 405 989 1578 929 1483 1202 1941 51 101 1780 1598 790 1376 1917 1877 1511 126 1229 1646 1352 1606 407 1202 926 498 1665 1355 130 767 744 1643 593 112 10 982 828 1212 105 1123 1449 1852 1775 607 400 1358 1717 394 1950 564 1834 407 437 406 1378 784 842 811 980 1553 646 196 1915 440 1670 242 519 1324 1820 779 25 1571 523 569 106 ...
Participant's output
1992
Jury's answer
1992
Checker comment
ok answer is '1992'
 
 
22
Time: 0 ms, memory: 0 KB
Verdict: OK
Input
1 1000
548
33 403 1446 339 1560 391 782 588 1588 1677 1934 680 28 657 399 69 908 1202 175 1126 834 246 575 1985 1555 1220 1299 1695 1748 1928 1782 479 1393 1826 675 211 473 1159 1853 1841 287 527 1192 1139 1627 1877 93 1384 711 458 474 1953 35 1667 80 1108 34 374 1844 189 1947 129 1694 1976 792 1507 636 152 234 1137 1632 1059 1875 1827 1086 244 250 68 560 1048 571 1045 338 1201 581 1738 405 646 1162 1659 944 1713 306 565 1930 1311 1192 327 642 372 747 709 1928 645 95 489 1889 603 1242 1901 1366 983 759 1...
Participant's output
1000
Jury's answer
1000
Checker comment
ok answer is '1000'
 
 
23
Time: 15 ms, memory: 32 KB
Verdict: OK
Input
1 2000
733
1252 763 1135 332 1523 1935 1623 1706 399 1937 1225 1973 534 1162 1356 1709 713 388 971 391 846 78 502 490 1535 233 946 1717 1241 941 1893 1847 1790 181 203 646 19 526 468 137 1379 1021 1683 510 490 1398 1952 1525 730 405 1143 194 889 89 503 1167 225 1876 789 1368 144 1596 1366 1645 1430 1917 504 819 921 421 1561 643 1651 1111 462 442 435 617 1406 1192 840 1173 293 1569 986 1532 66 1935 497 654 665 1821 763 499 289 29 762 917 1318 1108 916 1124 472 1689 434 753 1547 425 1057 963 1942 1494 1892...
Participant's output
2000
Jury's answer
2000
Checker comment
ok answer is '2000'
 
 
24
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
5 1
416 387 336 116 1081
553
193993787
Participant's output
5
Jury's answer
5
Checker comment
ok answer is '5'
 
 
25
Time: 0 ms, memory: 0 KB
Verdict: OK
Input
10 1
451 732 428 1649 428 1821 1098 756 1599 377
1567
301515216
Participant's output
10
Jury's answer
10
Checker comment
ok answer is '10'
 
 
26
Time: 15 ms, memory: 4 KB
Verdict: OK
Input
50 1
420 738 531 1575 1728 842 346 786 328 1944 942 1577 1247 1409 194 1398 1417 337 1886 83 559 1125 1741 481 1935 624 893 1028 1626 1143 257 1556 261 1429 642 1997 1720 1400 250 944 466 34 679 160 1138 1688 975 1862 336 1959
1878
27853310
Participant's output
16
Jury's answer
16
Checker comment
ok answer is '16'
 
 
27
Time: 31 ms, memory: 0 KB
Verdict: OK
Input
100 1
1525 1915 925 1023 803 904 802 1943 954 23 258 505 972 571 1291 1024 161 461 1020 880 67 1975 1612 1599 1024 682 1810 500 1068 1992 1834 79 476 842 1366 17 1307 1595 587 367 1961 1018 960 1699 1799 1453 1890 1003 780 601 131 808 83 26 1894 1345 1835 674 629 525 709 754 988 1612 810 1618 1979 1871 755 1279 407 1052 1951 1047 729 363 1392 1039 701 1915 414 1102 693 1870 1426 447 1428 1272 1500 51 1396 1332 111 556 1440 1199 511 212 42 1547
1882
984199988
Participant's output
100
Jury's answer
100
Checker comment
ok answer is '100'
 
 
28
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
250 1
1228 589 274 788 360 1167 477 970 1175 1736 341 1463 1152 564 278 1873 88 661 1842 1507 1836 1150 1040 219 1787 552 216 620 1546 1296 328 1342 414 1575 338 1897 1605 33 11 1870 1038 1335 30 1646 188 965 519 1648 1127 1804 1721 815 554 465 1192 1610 1702 1228 1472 819 462 330 1356 1041 89 1868 1199 1821 692 918 1919 1864 1693 96 869 1812 425 1577 1486 807 222 527 1837 603 1642 391 967 1089 1690 860 757 393 1236 1368 1237 1419 1182 92 922 785 180 1854 296 1690 934 534 184 1097 1207 1248 602 117 1215 1...
Participant's output
250
Jury's answer
250
Checker comment
ok answer is '250'
 
 
29
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
500 1
460 387 1279 83 965 963 1359 13 1299 1651 1603 805 1681 274 1425 929 1152 1361 580 1663 933 1431 1435 204 536 1772 1063 1486 1861 46 1617 603 655 319 65 447 1032 1780 1144 1818 1739 1592 1239 1856 1987 983 1782 1031 321 995 894 1580 777 355 1263 1438 1365 1151 523 1138 1441 533 1129 413 589 855 787 157 207 1435 328 1553 1694 1658 251 364 1800 1969 866 1302 1372 787 1207 1691 1921 1876 219 618 846 1855 1566 103 1439 1794 856 1449 407 509 1700 653 1720 1143 1487 1345 1020 985 1053 1578 1024 1984 181 1...
Participant's output
500
Jury's answer
500
Checker comment
ok answer is '500'
 
 
30
Time: 31 ms, memory: 0 KB
Verdict: OK
Input
1000 1
213 480 811 134 745 274 1681 345 524 1267 929 1642 15 16 46 726 598 1307 1166 274 584 1304 1515 980 210 1984 1428 184 1268 1985 762 444 1426 427 291 276 1764 596 683 1495 1238 1685 158 623 1817 140 431 957 256 664 1685 68 1972 192 1432 1897 465 460 1720 969 135 874 151 1443 1673 747 618 826 961 531 1371 1716 1962 732 1242 1085 1893 803 1207 1509 565 1114 938 30 418 1157 588 655 1370 669 891 436 1819 1120 1290 1499 1947 78 1566 1512 160 1326 1714 130 920 135 1156 1860 179 663 470 829 1956 1456 1374 ...
Participant's output
180
Jury's answer
180
Checker comment
ok answer is '180'
 
 
31
Time: 30 ms, memory: 0 KB
Verdict: OK
Input
10 10
461 1459 597 616 902 1894 1457 1248 691 493
1230 150 75 1793 1567 206 1661 560 956 1856
1614959273
Participant's output
100
Jury's answer
100
Checker comment
ok answer is '100'
 
 
32
Time: 15 ms, memory: 4 KB
Verdict: OK
Input
50 50
175 1571 1423 1837 1228 1923 1369 1875 1105 1762 203 1011 1596 1500 1213 950 557 451 8 390 1704 606 1084 227 1911 1189 795 481 1510 1862 348 1352 69 387 697 595 330 274 721 1842 1836 1164 1031 1880 281 1150 256 1853 1233 1499
1977 1404 1816 1031 1712 390 328 1646 342 462 685 523 435 1548 1383 1649 690 538 1291 1558 720 1145 307 1219 321 109 825 37 1836 989 1360 15 1610 852 923 1734 250 1539 612 1059 96 28 1415 293 1490 1016 1700 908 730 1395
976257664
Participant's output
1305
Jury's answer
1305
Checker comment
ok answer is '1305'
 
 
33
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
100 100
1482 1051 1081 1914 1137 17 1378 592 1764 1115 808 1986 489 708 887 1477 1766 1310 1315 612 1000 1725 592 1647 1021 1978 920 663 1913 49 1241 436 741 979 1316 1887 587 469 1903 776 780 960 500 49 170 1359 1472 608 1838 1571 1445 97 771 114 1976 1154 281 804 1859 246 339 629 1892 403 1449 822 1453 1699 1159 1852 1074 1831 492 943 1742 1423 844 909 1982 147 1807 340 612 509 1103 1755 1637 1485 446 1322 684 452 1998 1341 1621 377 1063 517 562 1991
564 1943 1930 1613 758 1819 533 1357 208 414 1665 18...
Participant's output
810
Jury's answer
810
Checker comment
ok answer is '810'
 
 
34
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
250 250
1487 778 14 1950 732 1831 1518 1070 570 1996 1757 1269 826 1236 1861 1366 385 1484 888 1772 234 88 1959 1218 337 1326 380 425 824 1881 834 1461 838 711 583 1072 866 1292 1057 966 1277 1885 566 504 1414 1462 1538 89 483 1957 1621 564 382 1756 1362 403 486 579 1138 1097 602 1027 575 1706 642 572 1993 750 278 944 1220 1986 1892 1286 1624 1910 1646 56 1008 431 410 21 1228 199 1200 1615 127 200 1376 1742 1681 1541 1961 1292 334 1314 1891 1655 4 1318 486 179 585 1152 273 1973 1956 959 4 217 1519 1289 74...
Participant's output
750
Jury's answer
750
Checker comment
ok answer is '750'
 
 
35
Time: 15 ms, memory: 4 KB
Verdict: OK
Input
500 500
436 1412 51 707 1791 700 296 967 122 1626 1698 1567 133 519 1357 445 500 542 276 1368 78 689 1515 1994 864 116 950 322 553 416 655 883 1755 113 1763 339 1472 1785 709 941 211 683 1178 607 419 1600 1660 829 1379 1301 24 844 1997 171 223 344 1946 502 8 302 971 1711 509 1395 932 1666 825 443 747 1073 529 1442 558 1567 360 551 218 1685 1800 1212 1508 1872 432 1544 1412 817 1057 21 37 28 112 514 487 1305 152 1921 1357 1431 853 1930 1712 196 89 1735 1865 1830 1626 1942 251 1909 354 986 151 286 1774 298 ...
Participant's output
4266
Jury's answer
4266
Checker comment
ok answer is '4266'
 
 
36
Time: 15 ms, memory: 28 KB
Verdict: OK
Input
1000 1000
89 1983 751 1038 1201 34 39 841 873 1453 1065 1674 1216 560 1644 1914 345 670 1518 1622 938 1583 719 1137 78 1359 1860 448 1907 1741 629 236 1549 893 1999 1844 1345 1063 66 1320 1723 1990 467 1215 24 665 1756 1682 604 853 1160 1262 30 1153 1031 278 631 232 1360 495 519 347 906 259 992 541 33 1167 233 661 1720 1908 332 1055 1153 1017 376 1595 1206 39 767 925 1396 1868 1977 331 571 1945 1616 722 1247 708 754 1410 1482 1431 1891 93 504 143 376 1036 921 1549 1852 1354 658 1513 1487 1815 1100 698 126...
Participant's output
3000
Jury's answer
3000
Checker comment
ok answer is '3000'
 
 
37
Time: 0 ms, memory: 4 KB
Verdict: OK
Input
1 5
549
1422 1870 569 844 1178
3229767
Participant's output
5
Jury's answer
5
Checker comment
ok answer is '5'
 
 
38
Time: 15 ms, memory: 4 KB
Verdict: OK
Input
1 10
491
980 1907 1241 336 811 1048 957 440 143 1835
1668909
Participant's output
5
Jury's answer
5
Checker comment
ok answer is '5'
 
 
39
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
1 50
758
1915 1868 1403 691 77 403 1322 701 1192 1463 911 1029 1471 1610 736 1501 1243 1327 1624 412 455 177 371 750 1156 989 1861 498 567 803 1140 346 1654 1961 330 718 943 1880 1476 1193 1666 1757 405 202 417 585 1812 293 791 1858
28031598
Participant's output
37
Jury's answer
37
Checker comment
ok answer is '37'
 
 
40
Time: 15 ms, memory: 8 KB
Verdict: OK
Input
1 100
1612
1989 1820 1837 815 943 208 131 1252 1372 145 1182 1200 499 1312 1390 829 1343 1378 280 492 609 1439 1128 1597 123 372 953 472 1078 1522 526 1639 1357 1452 1357 89 480 1597 783 177 1106 688 1426 1334 1292 406 1959 1649 1768 1956 1844 273 454 354 1170 1514 10 557 1472 1697 1004 485 1870 1394 102 400 883 1979 938 501 1368 1038 922 1090 1339 1379 254 1335 1853 1923 1249 1449 1588 334 1460 256 1386 918 1818 409 236 1538 346 1860 587 268 81 1015 1838 1955
6983184
Participant's output
7
Jury's answer
7
Checker comment
ok answer is '7'
 
 
41
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
1 250
1134
1071 477 1612 148 1082 1322 388 1241 1275 328 285 248 1335 1438 1864 1441 1991 1428 775 1847 248 1482 639 1234 361 1008 45 590 1120 1852 910 1899 1014 135 437 123 582 352 1705 358 258 999 1492 1065 1470 531 1093 1298 563 317 1839 1046 285 1283 1256 1164 158 438 571 896 1353 1036 1702 1233 1527 1694 701 1266 517 939 1781 172 1828 1716 793 939 1000 958 521 909 1274 1523 870 1079 294 1441 1720 1039 878 857 712 1794 101 353 1638 1024 1748 1411 1460 11 1448 92 56 1804 1010 813 1934 1470 1398 926 17...
Participant's output
236
Jury's answer
236
Checker comment
ok answer is '236'
 
 
42
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
1 500
989
1292 627 1763 1411 1261 160 1265 1981 1642 224 247 1845 175 1684 1879 854 823 69 170 1411 454 1756 1260 942 496 8 1115 353 367 219 795 73 1392 573 276 581 1238 440 274 1035 742 106 1797 1268 538 1974 831 1195 926 547 1496 1363 630 699 317 702 1814 286 605 1654 1560 1405 1595 343 842 895 175 1219 1341 1455 1429 1277 1319 1515 60 1822 1954 471 855 1940 267 1640 832 510 1540 842 1984 1 866 1067 969 86 495 333 828 265 1449 1096 1939 1244 977 1941 1848 1650 702 1812 204 980 615 759 1761 1663 428 155...
Participant's output
492
Jury's answer
492
Checker comment
ok answer is '492'
 
 
43
Time: 15 ms, memory: 8 KB
Verdict: OK
Input
1 1000
548
33 403 1446 339 1560 391 782 588 1588 1677 1934 680 28 657 399 69 908 1202 175 1126 834 246 575 1985 1555 1220 1299 1695 1748 1928 1782 479 1393 1826 675 211 473 1159 1853 1841 287 527 1192 1139 1627 1877 93 1384 711 458 474 1953 35 1667 80 1108 34 374 1844 189 1947 129 1694 1976 792 1507 636 152 234 1137 1632 1059 1875 1827 1086 244 250 68 560 1048 571 1045 338 1201 581 1738 405 646 1162 1659 944 1713 306 565 1930 1311 1192 327 642 372 747 709 1928 645 95 489 1889 603 1242 1901 1366 983 759 1...
Participant's output
774
Jury's answer
774
Checker comment
ok answer is '774'
 
 
44
Time: 30 ms, memory: 24 KB
Verdict: OK
Input
1 2000
733
1252 763 1135 332 1523 1935 1623 1706 399 1937 1225 1973 534 1162 1356 1709 713 388 971 391 846 78 502 490 1535 233 946 1717 1241 941 1893 1847 1790 181 203 646 19 526 468 137 1379 1021 1683 510 490 1398 1952 1525 730 405 1143 194 889 89 503 1167 225 1876 789 1368 144 1596 1366 1645 1430 1917 504 819 921 421 1561 643 1651 1111 462 442 435 617 1406 1192 840 1173 293 1569 986 1532 66 1935 497 654 665 1821 763 499 289 29 762 917 1318 1108 916 1124 472 1689 434 753 1547 425 1057 963 1942 1494 1892...
Participant's output
775
Jury's answer
775
Checker comment
ok answer is '775'
 
 
45
Time: 0 ms, memory: 4 KB
Verdict: OK
Input
5 1
416 387 336 116 1081
553
463967
Participant's output
3
Jury's answer
3
Checker comment
ok answer is '3'
 
 
46
Time: 31 ms, memory: 0 KB
Verdict: OK
Input
10 1
451 732 428 1649 428 1821 1098 756 1599 377
1567
14634213
Participant's output
10
Jury's answer
10
Checker comment
ok answer is '10'
 
 
47
Time: 31 ms, memory: 0 KB
Verdict: OK
Input
50 1
420 738 531 1575 1728 842 346 786 328 1944 942 1577 1247 1409 194 1398 1417 337 1886 83 559 1125 1741 481 1935 624 893 1028 1626 1143 257 1556 261 1429 642 1997 1720 1400 250 944 466 34 679 160 1138 1688 975 1862 336 1959
1878
16023096
Participant's output
11
Jury's answer
11
Checker comment
ok answer is '11'
 
 
48
Time: 0 ms, memory: 0 KB
Verdict: OK
Input
100 1
1525 1915 925 1023 803 904 802 1943 954 23 258 505 972 571 1291 1024 161 461 1020 880 67 1975 1612 1599 1024 682 1810 500 1068 1992 1834 79 476 842 1366 17 1307 1595 587 367 1961 1018 960 1699 1799 1453 1890 1003 780 601 131 808 83 26 1894 1345 1835 674 629 525 709 754 988 1612 810 1618 1979 1871 755 1279 407 1052 1951 1047 729 363 1392 1039 701 1915 414 1102 693 1870 1426 447 1428 1272 1500 51 1396 1332 111 556 1440 1199 511 212 42 1547
1882
70074388
Participant's output
39
Jury's answer
39
Checker comment
ok answer is '39'
 
 
49
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
250 1
1228 589 274 788 360 1167 477 970 1175 1736 341 1463 1152 564 278 1873 88 661 1842 1507 1836 1150 1040 219 1787 552 216 620 1546 1296 328 1342 414 1575 338 1897 1605 33 11 1870 1038 1335 30 1646 188 965 519 1648 1127 1804 1721 815 554 465 1192 1610 1702 1228 1472 819 462 330 1356 1041 89 1868 1199 1821 692 918 1919 1864 1693 96 869 1812 425 1577 1486 807 222 527 1837 603 1642 391 967 1089 1690 860 757 393 1236 1368 1237 1419 1182 92 922 785 180 1854 296 1690 934 534 184 1097 1207 1248 602 117 1215 1...
Participant's output
148
Jury's answer
148
Checker comment
ok answer is '148'
 
 
50
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
500 1
460 387 1279 83 965 963 1359 13 1299 1651 1603 805 1681 274 1425 929 1152 1361 580 1663 933 1431 1435 204 536 1772 1063 1486 1861 46 1617 603 655 319 65 447 1032 1780 1144 1818 1739 1592 1239 1856 1987 983 1782 1031 321 995 894 1580 777 355 1263 1438 1365 1151 523 1138 1441 533 1129 413 589 855 787 157 207 1435 328 1553 1694 1658 251 364 1800 1969 866 1302 1372 787 1207 1691 1921 1876 219 618 846 1855 1566 103 1439 1794 856 1449 407 509 1700 653 1720 1143 1487 1345 1020 985 1053 1578 1024 1984 181 1...
Participant's output
244
Jury's answer
244
Checker comment
ok answer is '244'
 
 
51
Time: 15 ms, memory: 12 KB
Verdict: OK
Input
1000 1
213 480 811 134 745 274 1681 345 524 1267 929 1642 15 16 46 726 598 1307 1166 274 584 1304 1515 980 210 1984 1428 184 1268 1985 762 444 1426 427 291 276 1764 596 683 1495 1238 1685 158 623 1817 140 431 957 256 664 1685 68 1972 192 1432 1897 465 460 1720 969 135 874 151 1443 1673 747 618 826 961 531 1371 1716 1962 732 1242 1085 1893 803 1207 1509 565 1114 938 30 418 1157 588 655 1370 669 891 436 1819 1120 1290 1499 1947 78 1566 1512 160 1326 1714 130 920 135 1156 1860 179 663 470 829 1956 1456 1374 ...
Participant's output
540
Jury's answer
540
Checker comment
ok answer is '540'
 
 
52
Time: 15 ms, memory: 24 KB
Verdict: OK
Input
2000 1
766 1957 1873 207 920 262 1836 1232 260 115 1723 1179 1042 1933 1368 988 24 252 914 52 1901 1879 780 996 431 141 1740 54 1390 255 157 580 239 131 317 1055 1001 707 784 905 1019 332 155 411 1924 1680 1049 1616 1882 612 266 1592 1972 130 1023 518 1216 968 1231 1587 174 856 886 297 354 1574 1408 1960 614 1021 386 420 837 1162 402 372 738 415 762 965 895 1938 473 1894 390 507 337 986 1796 1785 1498 201 729 510 206 1646 889 991 1835 682 1662 1413 1636 1984 1011 798 480 1127 1562 1724 842 187 88 517 1823...
Participant's output
351
Jury's answer
351
Checker comment
ok answer is '351'
 
 
53
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
10 10
461 1459 597 616 902 1894 1457 1248 691 493
1230 150 75 1793 1567 206 1661 560 956 1856
15296685
Participant's output
30
Jury's answer
30
Checker comment
ok answer is '30'
 
 
54
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
50 50
175 1571 1423 1837 1228 1923 1369 1875 1105 1762 203 1011 1596 1500 1213 950 557 451 8 390 1704 606 1084 227 1911 1189 795 481 1510 1862 348 1352 69 387 697 595 330 274 721 1842 1836 1164 1031 1880 281 1150 256 1853 1233 1499
1977 1404 1816 1031 1712 390 328 1646 342 462 685 523 435 1548 1383 1649 690 538 1291 1558 720 1145 307 1219 321 109 825 37 1836 989 1360 15 1610 852 923 1734 250 1539 612 1059 96 28 1415 293 1490 1016 1700 908 730 1395
244986462
Participant's output
450
Jury's answer
450
Checker comment
ok answer is '450'
 
 
55
Time: 0 ms, memory: 0 KB
Verdict: OK
Input
100 100
1482 1051 1081 1914 1137 17 1378 592 1764 1115 808 1986 489 708 887 1477 1766 1310 1315 612 1000 1725 592 1647 1021 1978 920 663 1913 49 1241 436 741 979 1316 1887 587 469 1903 776 780 960 500 49 170 1359 1472 608 1838 1571 1445 97 771 114 1976 1154 281 804 1859 246 339 629 1892 403 1449 822 1453 1699 1159 1852 1074 1831 492 943 1742 1423 844 909 1982 147 1807 340 612 509 1103 1755 1637 1485 446 1322 684 452 1998 1341 1621 377 1063 517 562 1991
564 1943 1930 1613 758 1819 533 1357 208 414 1665 18...
Participant's output
495
Jury's answer
495
Checker comment
ok answer is '495'
 
 
56
Time: 0 ms, memory: 0 KB
Verdict: OK
Input
250 250
1487 778 14 1950 732 1831 1518 1070 570 1996 1757 1269 826 1236 1861 1366 385 1484 888 1772 234 88 1959 1218 337 1326 380 425 824 1881 834 1461 838 711 583 1072 866 1292 1057 966 1277 1885 566 504 1414 1462 1538 89 483 1957 1621 564 382 1756 1362 403 486 579 1138 1097 602 1027 575 1706 642 572 1993 750 278 944 1220 1986 1892 1286 1624 1910 1646 56 1008 431 410 21 1228 199 1200 1615 127 200 1376 1742 1681 1541 1961 1292 334 1314 1891 1655 4 1318 486 179 585 1152 273 1973 1956 959 4 217 1519 1289 74...
Participant's output
432
Jury's answer
432
Checker comment
ok answer is '432'
 
 
57
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
500 500
436 1412 51 707 1791 700 296 967 122 1626 1698 1567 133 519 1357 445 500 542 276 1368 78 689 1515 1994 864 116 950 322 553 416 655 883 1755 113 1763 339 1472 1785 709 941 211 683 1178 607 419 1600 1660 829 1379 1301 24 844 1997 171 223 344 1946 502 8 302 971 1711 509 1395 932 1666 825 443 747 1073 529 1442 558 1567 360 551 218 1685 1800 1212 1508 1872 432 1544 1412 817 1057 21 37 28 112 514 487 1305 152 1921 1357 1431 853 1930 1712 196 89 1735 1865 1830 1626 1942 251 1909 354 986 151 286 1774 298 ...
Participant's output
500
Jury's answer
500
Checker comment
ok answer is '500'
 
 
58
Time: 15 ms, memory: 20 KB
Verdict: OK
Input
1000 1000
89 1983 751 1038 1201 34 39 841 873 1453 1065 1674 1216 560 1644 1914 345 670 1518 1622 938 1583 719 1137 78 1359 1860 448 1907 1741 629 236 1549 893 1999 1844 1345 1063 66 1320 1723 1990 467 1215 24 665 1756 1682 604 853 1160 1262 30 1153 1031 278 631 232 1360 495 519 347 906 259 992 541 33 1167 233 661 1720 1908 332 1055 1153 1017 376 1595 1206 39 767 925 1396 1868 1977 331 571 1945 1616 722 1247 708 754 1410 1482 1431 1891 93 504 143 376 1036 921 1549 1852 1354 658 1513 1487 1815 1100 698 126...
Participant's output
5000
Jury's answer
5000
Checker comment
ok answer is '5000'
 
 
59
Time: 0 ms, memory: 0 KB
Verdict: OK
Input
1 5
549
1422 1870 569 844 1178
2449088
Participant's output
3
Jury's answer
3
Checker comment
ok answer is '3'
 
 
60
Time: 0 ms, memory: 0 KB
Verdict: OK
Input
1 10
491
980 1907 1241 336 811 1048 957 440 143 1835
1270707
Participant's output
3
Jury's answer
3
Checker comment
ok answer is '3'
 
 
61
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
1 50
758
1915 1868 1403 691 77 403 1322 701 1192 1463 911 1029 1471 1610 736 1501 1243 1327 1624 412 455 177 371 750 1156 989 1861 498 567 803 1140 346 1654 1961 330 718 943 1880 1476 1193 1666 1757 405 202 417 585 1812 293 791 1858
27021941
Participant's output
35
Jury's answer
35
Checker comment
ok answer is '35'
 
 
62
Time: 0 ms, memory: 4 KB
Verdict: OK
Input
1 100
1612
1989 1820 1837 815 943 208 131 1252 1372 145 1182 1200 499 1312 1390 829 1343 1378 280 492 609 1439 1128 1597 123 372 953 472 1078 1522 526 1639 1357 1452 1357 89 480 1597 783 177 1106 688 1426 1334 1292 406 1959 1649 1768 1956 1844 273 454 354 1170 1514 10 557 1472 1697 1004 485 1870 1394 102 400 883 1979 938 501 1368 1038 922 1090 1339 1379 254 1335 1853 1923 1249 1449 1588 334 1460 256 1386 918 1818 409 236 1538 346 1860 587 268 81 1015 1838 1955
6085299
Participant's output
5
Jury's answer
5
Checker comment
ok answer is '5'
 
 
63
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
1 250
1134
1071 477 1612 148 1082 1322 388 1241 1275 328 285 248 1335 1438 1864 1441 1991 1428 775 1847 248 1482 639 1234 361 1008 45 590 1120 1852 910 1899 1014 135 437 123 582 352 1705 358 258 999 1492 1065 1470 531 1093 1298 563 317 1839 1046 285 1283 1256 1164 158 438 571 896 1353 1036 1702 1233 1527 1694 701 1266 517 939 1781 172 1828 1716 793 939 1000 958 521 909 1274 1523 870 1079 294 1441 1720 1039 878 857 712 1794 101 353 1638 1024 1748 1411 1460 11 1448 92 56 1804 1010 813 1934 1470 1398 926 17...
Participant's output
234
Jury's answer
234
Checker comment
ok answer is '234'
 
 
64
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
1 500
989
1292 627 1763 1411 1261 160 1265 1981 1642 224 247 1845 175 1684 1879 854 823 69 170 1411 454 1756 1260 942 496 8 1115 353 367 219 795 73 1392 573 276 581 1238 440 274 1035 742 106 1797 1268 538 1974 831 1195 926 547 1496 1363 630 699 317 702 1814 286 605 1654 1560 1405 1595 343 842 895 175 1219 1341 1455 1429 1277 1319 1515 60 1822 1954 471 855 1940 267 1640 832 510 1540 842 1984 1 866 1067 969 86 495 333 828 265 1449 1096 1939 1244 977 1941 1848 1650 702 1812 204 980 615 759 1761 1663 428 155...
Participant's output
490
Jury's answer
490
Checker comment
ok answer is '490'
 
 
65
Time: 15 ms, memory: 4 KB
Verdict: OK
Input
1 1000
548
33 403 1446 339 1560 391 782 588 1588 1677 1934 680 28 657 399 69 908 1202 175 1126 834 246 575 1985 1555 1220 1299 1695 1748 1928 1782 479 1393 1826 675 211 473 1159 1853 1841 287 527 1192 1139 1627 1877 93 1384 711 458 474 1953 35 1667 80 1108 34 374 1844 189 1947 129 1694 1976 792 1507 636 152 234 1137 1632 1059 1875 1827 1086 244 250 68 560 1048 571 1045 338 1201 581 1738 405 646 1162 1659 944 1713 306 565 1930 1311 1192 327 642 372 747 709 1928 645 95 489 1889 603 1242 1901 1366 983 759 1...
Participant's output
772
Jury's answer
772
Checker comment
ok answer is '772'
 
 
66
Time: 15 ms, memory: 28 KB
Verdict: OK
Input
1 2000
733
1252 763 1135 332 1523 1935 1623 1706 399 1937 1225 1973 534 1162 1356 1709 713 388 971 391 846 78 502 490 1535 233 946 1717 1241 941 1893 1847 1790 181 203 646 19 526 468 137 1379 1021 1683 510 490 1398 1952 1525 730 405 1143 194 889 89 503 1167 225 1876 789 1368 144 1596 1366 1645 1430 1917 504 819 921 421 1561 643 1651 1111 462 442 435 617 1406 1192 840 1173 293 1569 986 1532 66 1935 497 654 665 1821 763 499 289 29 762 917 1318 1108 916 1124 472 1689 434 753 1547 425 1057 963 1942 1494 1892...
Participant's output
773
Jury's answer
773
Checker comment
ok answer is '773'
 
 
67
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
5 1
416 387 336 116 1081
553
249955
Participant's output
1
Jury's answer
1
Checker comment
ok answer is '1'
 
 
68
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
10 1
451 732 428 1649 428 1821 1098 756 1599 377
1567
13927495
Participant's output
8
Jury's answer
8
Checker comment
ok answer is '8'
 
 
69
Time: 0 ms, memory: 0 KB
Verdict: OK
Input
50 1
420 738 531 1575 1728 842 346 786 328 1944 942 1577 1247 1409 194 1398 1417 337 1886 83 559 1125 1741 481 1935 624 893 1028 1626 1143 257 1556 261 1429 642 1997 1720 1400 250 944 466 34 679 160 1138 1688 975 1862 336 1959
1878
14524451
Participant's output
9
Jury's answer
9
Checker comment
ok answer is '9'
 
 
70
Time: 0 ms, memory: 8 KB
Verdict: OK
Input
100 1
1525 1915 925 1023 803 904 802 1943 954 23 258 505 972 571 1291 1024 161 461 1020 880 67 1975 1612 1599 1024 682 1810 500 1068 1992 1834 79 476 842 1366 17 1307 1595 587 367 1961 1018 960 1699 1799 1453 1890 1003 780 601 131 808 83 26 1894 1345 1835 674 629 525 709 754 988 1612 810 1618 1979 1871 755 1279 407 1052 1951 1047 729 363 1392 1039 701 1915 414 1102 693 1870 1426 447 1428 1272 1500 51 1396 1332 111 556 1440 1199 511 212 42 1547
1882
66470357
Participant's output
37
Jury's answer
37
Checker comment
ok answer is '37'
 
 
71
Time: 31 ms, memory: 0 KB
Verdict: OK
Input
250 1
1228 589 274 788 360 1167 477 970 1175 1736 341 1463 1152 564 278 1873 88 661 1842 1507 1836 1150 1040 219 1787 552 216 620 1546 1296 328 1342 414 1575 338 1897 1605 33 11 1870 1038 1335 30 1646 188 965 519 1648 1127 1804 1721 815 554 465 1192 1610 1702 1228 1472 819 462 330 1356 1041 89 1868 1199 1821 692 918 1919 1864 1693 96 869 1812 425 1577 1486 807 222 527 1837 603 1642 391 967 1089 1690 860 757 393 1236 1368 1237 1419 1182 92 922 785 180 1854 296 1690 934 534 184 1097 1207 1248 602 117 1215 1...
Participant's output
146
Jury's answer
146
Checker comment
ok answer is '146'
 
 
72
Time: 30 ms, memory: 8 KB
Verdict: OK
Input
500 1
460 387 1279 83 965 963 1359 13 1299 1651 1603 805 1681 274 1425 929 1152 1361 580 1663 933 1431 1435 204 536 1772 1063 1486 1861 46 1617 603 655 319 65 447 1032 1780 1144 1818 1739 1592 1239 1856 1987 983 1782 1031 321 995 894 1580 777 355 1263 1438 1365 1151 523 1138 1441 533 1129 413 589 855 787 157 207 1435 328 1553 1694 1658 251 364 1800 1969 866 1302 1372 787 1207 1691 1921 1876 219 618 846 1855 1566 103 1439 1794 856 1449 407 509 1700 653 1720 1143 1487 1345 1020 985 1053 1578 1024 1984 181 1...
Participant's output
242
Jury's answer
242
Checker comment
ok answer is '242'
 
 
73
Time: 30 ms, memory: 8 KB
Verdict: OK
Input
1000 1
213 480 811 134 745 274 1681 345 524 1267 929 1642 15 16 46 726 598 1307 1166 274 584 1304 1515 980 210 1984 1428 184 1268 1985 762 444 1426 427 291 276 1764 596 683 1495 1238 1685 158 623 1817 140 431 957 256 664 1685 68 1972 192 1432 1897 465 460 1720 969 135 874 151 1443 1673 747 618 826 961 531 1371 1716 1962 732 1242 1085 1893 803 1207 1509 565 1114 938 30 418 1157 588 655 1370 669 891 436 1819 1120 1290 1499 1947 78 1566 1512 160 1326 1714 130 920 135 1156 1860 179 663 470 829 1956 1456 1374 ...
Participant's output
538
Jury's answer
538
Checker comment
ok answer is '538'
 
 
74
Time: 15 ms, memory: 24 KB
Verdict: OK
Input
2000 1
766 1957 1873 207 920 262 1836 1232 260 115 1723 1179 1042 1933 1368 988 24 252 914 52 1901 1879 780 996 431 141 1740 54 1390 255 157 580 239 131 317 1055 1001 707 784 905 1019 332 155 411 1924 1680 1049 1616 1882 612 266 1592 1972 130 1023 518 1216 968 1231 1587 174 856 886 297 354 1574 1408 1960 614 1021 386 420 837 1162 402 372 738 415 762 965 895 1938 473 1894 390 507 337 986 1796 1785 1498 201 729 510 206 1646 889 991 1835 682 1662 1413 1636 1984 1011 798 480 1127 1562 1724 842 187 88 517 1823...
Participant's output
349
Jury's answer
349
Checker comment
ok answer is '349'
 
 
75
Time: 0 ms, memory: 8 KB
Verdict: OK
Input
10 10
461 1459 597 616 902 1894 1457 1248 691 493
1230 150 75 1793 1567 206 1661 560 956 1856
14737319
Participant's output
30
Jury's answer
30
Checker comment
ok answer is '30'
 
 
76
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
50 50
175 1571 1423 1837 1228 1923 1369 1875 1105 1762 203 1011 1596 1500 1213 950 557 451 8 390 1704 606 1084 227 1911 1189 795 481 1510 1862 348 1352 69 387 697 595 330 274 721 1842 1836 1164 1031 1880 281 1150 256 1853 1233 1499
1977 1404 1816 1031 1712 390 328 1646 342 462 685 523 435 1548 1383 1649 690 538 1291 1558 720 1145 307 1219 321 109 825 37 1836 989 1360 15 1610 852 923 1734 250 1539 612 1059 96 28 1415 293 1490 1016 1700 908 730 1395
244736879
Participant's output
450
Jury's answer
450
Checker comment
ok answer is '450'
 
 
77
Time: 15 ms, memory: 0 KB
Verdict: OK
Input
100 100
1482 1051 1081 1914 1137 17 1378 592 1764 1115 808 1986 489 708 887 1477 1766 1310 1315 612 1000 1725 592 1647 1021 1978 920 663 1913 49 1241 436 741 979 1316 1887 587 469 1903 776 780 960 500 49 170 1359 1472 608 1838 1571 1445 97 771 114 1976 1154 281 804 1859 246 339 629 1892 403 1449 822 1453 1699 1159 1852 1074 1831 492 943 1742 1423 844 909 1982 147 1807 340 612 509 1103 1755 1637 1485 446 1322 684 452 1998 1341 1621 377 1063 517 562 1991
564 1943 1930 1613 758 1819 533 1357 208 414 1665 18...
Participant's output
495
Jury's answer
495
Checker comment
ok answer is '495'
 
 
78
Time: 0 ms, memory: 0 KB
Verdict: OK
Input
250 250
1487 778 14 1950 732 1831 1518 1070 570 1996 1757 1269 826 1236 1861 1366 385 1484 888 1772 234 88 1959 1218 337 1326 380 425 824 1881 834 1461 838 711 583 1072 866 1292 1057 966 1277 1885 566 504 1414 1462 1538 89 483 1957 1621 564 382 1756 1362 403 486 579 1138 1097 602 1027 575 1706 642 572 1993 750 278 944 1220 1986 1892 1286 1624 1910 1646 56 1008 431 410 21 1228 199 1200 1615 127 200 1376 1742 1681 1541 1961 1292 334 1314 1891 1655 4 1318 486 179 585 1152 273 1973 1956 959 4 217 1519 1289 74...
Participant's output
430
Jury's answer
430
Checker comment
ok answer is '430'
 
 
79
Time: 15 ms, memory: 4 KB
Verdict: OK
Input
500 500
436 1412 51 707 1791 700 296 967 122 1626 1698 1567 133 519 1357 445 500 542 276 1368 78 689 1515 1994 864 116 950 322 553 416 655 883 1755 113 1763 339 1472 1785 709 941 211 683 1178 607 419 1600 1660 829 1379 1301 24 844 1997 171 223 344 1946 502 8 302 971 1711 509 1395 932 1666 825 443 747 1073 529 1442 558 1567 360 551 218 1685 1800 1212 1508 1872 432 1544 1412 817 1057 21 37 28 112 514 487 1305 152 1921 1357 1431 853 1930 1712 196 89 1735 1865 1830 1626 1942 251 1909 354 986 151 286 1774 298 ...
Participant's output
500
Jury's answer
500
Checker comment
ok answer is '500'
 
 
80
Time: 15 ms, memory: 32 KB
Verdict: OK
Input
1000 1000
89 1983 751 1038 1201 34 39 841 873 1453 1065 1674 1216 560 1644 1914 345 670 1518 1622 938 1583 719 1137 78 1359 1860 448 1907 1741 629 236 1549 893 1999 1844 1345 1063 66 1320 1723 1990 467 1215 24 665 1756 1682 604 853 1160 1262 30 1153 1031 278 631 232 1360 495 519 347 906 259 992 541 33 1167 233 661 1720 1908 332 1055 1153 1017 376 1595 1206 39 767 925 1396 1868 1977 331 571 1945 1616 722 1247 708 754 1410 1482 1431 1891 93 504 143 376 1036 921 1549 1852 1354 658 1513 1487 1815 1100 698 126...
Participant's output
5000
Jury's answer
5000
Checker comment
ok answer is '5000'
 
 
81
Time: 15 ms, memory: 4 KB
Verdict: OK
Input
1 1
2000
2000
2000000000
Participant's output
1
Jury's answer
1
Checker comment
ok answer is '1'
 
 
82
Time: 46 ms, memory: 52 KB
Verdict: OK
Input
2000 2000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 ...
Participant's output
1
Jury's answer
1
Checker comment
ok answer is '1'
 
 
83
Time: 30 ms, memory: 20 KB
Verdict: OK
Input
2000 1
2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 200...
Participant's output
500
Jury's answer
500
Checker comment
ok answer is '500'
 
 
84
Time: 15 ms, memory: 20 KB
Verdict: OK
Input
2000 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153...
Participant's output
1
Jury's answer
1
Checker comment
ok answer is '1'
 
 
85
Time: 0 ms, memory: 28 KB
Verdict: OK
Input
1 2000
2000
2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 2000 20...
Participant's output
500
Jury's answer
500
Checker comment
ok answer is '500'
 
 
86
Time: 15 ms, memory: 20 KB
Verdict: OK
Input
1 2000
1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 ...
Participant's output
1
Jury's answer
1
Checker comment
ok answer is '1'
 
 
87
Time: 15 ms, memory: 4 KB
Verdict: OK
Input
235 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1
1
Participant's output
1
Jury's answer
1
Checker comment
ok answer is '1'