:focus{outline:0}body{line-height:1;color:black}table{border-collapse:separate;border-spacing:0}caption,th,td{text-align:left;font-weight:normal}blockquote:before,blockquote:after,q:before,q:after{content:""}blockquote,q{quotes:"" ""}a,a:hover{text-decoration:none}.source-code-editor{position:absolute !important;top:0;right:0;bottom:0;left:0}.source-highlight,.source-code-editor{white-space:pre;font:15px "Monaco", "Menlo", "Ubuntu Mono", "Consolas", "source-code-pro", "Droid Sans Mono", monospace !important;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.source-highlight .ace_static_highlight,.source-code-editor .ace_static_highlight{font-size:15px;line-height:normal}.source-highlight .ace_hidden-cursors,.source-code-editor .ace_hidden-cursors{opacity:0}.page-submission-view .source-highlight{padding-left:2.6em}.page-submission-view .ace-tm{margin-left:-2.6em}.clearfix:after{content:"";display:table;clear:both}.fr{float:right}.fl{float:left}h1.h1-correct-unicode{overflow:hidden}.no-padding{padding:0 !important}hr{height:1px;width:100%;border-color:#dfdfe1}.blue{color:#4E92D0}.yellow{color:#E8BA40}.red{color:#e84f67}body{background-image:url(/images/site/content/kattis-grain.png);background-repeat:repeat;font-family:"Open Sans",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin-bottom:50px;min-width:1140px}.wrap{width:100%;max-width:1140px;margin:0 auto;position:relative}.page-top>a{color:#898992}.page-top>a:hover{color:#2A353A}.page-top>a>i{margin-right:10px;float:left;margin-top:2px}.page-headline,.page-top{margin:20px 0}.page-headline>div>a,.page-top>div>a{color:#898992}.page-headline>div>a:hover,.page-top>div>a:hover{color:#2A353A}.page-headline h1,.page-top h1{font-size:36px;color:#2A353A;line-height:42px;margin-top:0;margin-bottom:0}.page-headline h1>span,.page-top h1>span{font-weight:300;color:#B6B6BB;margin:0 15px}.wrap>.page-headline,.wrap>.page-top{margin-top:30px}.page-content{width:100%;margin-top:30px}.page-content.single{background:#fff;margin-bottom:20px;padding:30px;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,0.1)}.page-content>h3{margin-bottom:18px}.page-content h2{font-size:26px}.page-content h3{font-size:22px;font-weight:700;color:#2A353A}.page-content.boxed>section.box{background:#fff;margin-bottom:0;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,0.1)}.page-content.boxed .box-headline{width:100%;margin:40px 0 15px}.page-content.boxed .box-headline h2{margin:0}.page-content.boxed .box-headline .form-group{margin:-14px 0 0}.page-content .page-headline,.page-content .page-top{margin-top:0;margin-bottom:0}.header{background:#33333D;width:100%;margin-bottom:20px;height:65px;box-shadow:0 1px 2px rgba(0,0,0,0.1)}.header ul,.header li{list-style:none}.header .background{background-color:#33333D;height:60px}.header .header-title{height:40px;line-height:50px;font-size:24px;font-weight:600;color:white;padding:0 0 0 8px;max-width:590px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header .title-wrapper{float:left;margin-top:-4px}.header .logo-kattis{width:237px;margin:0 10px 0 -15px;left:-170px;position:absolute;padding-left:70px;padding-top:21px;color:white;font-size:18px;background:transparent;height:60px;z-index:2;transition:.3s ease-in-out}.header .logo-kattis:hover{left:0}.header .logo-kattis .bg{background-color:#33333D;position:absolute;top:0;left:0;bottom:0;right:32px;z-index:1}.header .logo-kattis .img{background:url(/images/site/header/logo-empty.png) transparent bottom right no-repeat;position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;background-size:100%}.header .logo-kattis .txt{position:absolute;top:27px;left:52px;z-index:3}.header .logo{height:54px;margin:3px 4px 0 0;float:left;overflow:hidden;position:relative}.header .logo-open{height:60px;width:81px;margin:0 4px 0 0}.header .logo img{max-width:100%;float:left;position:absolute;top:0;left:0;right:0;bottom:0;margin:auto}.header .main-nav{float:none;margin-top:-4px}.header .main-nav ul{margin-bottom:0}.header .main-nav li{line-height:inherit}.header .main-nav>ul>li{float:left;position:relative}.header .main-nav>ul>li>a,.header .main-nav>ul>li>div>button{font-weight:700;text-transform:uppercase;color:#898992;height:24px;line-height:24px;font-size:14px;padding:0 8px;display:block;transition:.1s ease-out}.header .main-nav>ul>li>a:hover,.header .main-nav>ul>li>div>button:hover{color:#fff;text-decoration:none}.header .main-nav>ul>li .btn-group button{background:none;border:none;box-shadow:none !important}.header .main-nav>ul>li .btn-group button .caret{color:#fff;border-top:6px solid #898992;border-right:5px solid transparent;border-bottom:0 dotted;border-left:5px solid transparent;content:""}.header .main-nav>ul>li .btn-group button:hover .caret{border-top-color:#fff}.header .main-nav>ul>li .btn-group .dropdown-menu{width:230px}.header .main-nav>ul>li .btn-group .dropdown-menu li{width:100%}.header .main-nav>ul>li .btn-group .dropdown-menu li a{width:100%;float:left;padding:7px 20px}.header .main-nav>ul>li .btn-group .dropdown-menu{float:none;padding:12px 0;margin:-2px -15px 0 0;min-width:250px;border:1px solid rgba(0,0,0,0.07);border-radius:4px;background-clip:padding-box;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.07)}.header .main-nav>ul>li .btn-group .dropdown-menu>li>a{padding:5px 25px;color:#898992;transition:.1s ease-out}.header .main-nav>ul>li .btn-group .dropdown-menu>li>a:hover{background:#F7F8F9;color:#2A353A}.header .main-nav>ul>li.current a{color:#fff}.header .main-nav>ul>li.current:before{border-bottom:5px solid #fff;border-left:5px solid transparent;border-right:5px solid transparent;display:inline-block;width:0;height:0;content:" ";border-top:0;right:13px;margin:0;position:absolute;left:50%;bottom:-4px;line-height:0;margin-left:-6px}.header .user-side{padding:12px 0}.header .user-side .user-nav>ul>li{margin:0 5px;float:left}.header .user-side .user-nav>ul>li>a{font-weight:600}.header .user-side .user-nav>ul>li>a>i{margin-right:8px;font-size:18px}.header .user-side .site-search{position:relative;display:inline-block;float:left}.header .user-side .site-search.active a{color:#B6B6BB;background:none}.header .user-side .site-search.active input{background-color:#fff}.header .user-side .site-search:hover input{background-color:#fff}.header .user-side .site-search input{background:#3A3A44;width:150px;height:30px;border:none;margin-top:3px;padding:0 36px 0 8px;border-radius:4px;transition:all .3s ease-out}.header .user-side .site-search input[type="text"]{color:#898992}.header .user-side .site-search input::-webkit-input-placeholder{font-style:italic}.header .user-side .site-search input::-moz-placeholder{font-style:italic}.header .user-side .site-search input:-ms-input-placeholder{font-style:italic}.header .user-side .site-search input::-ms-input-placeholder{font-style:italic}.header .user-side .site-search input::placeholder{font-style:italic}.header .user-side .site-search a{width:30px;height:30px;display:inline-block;border:none;text-align:center;line-height:30px;color:#898992;position:absolute;right:0px;top:0px;border-radius:4px}.header .user-side .my-profile{float:left}.header .user-side .my-profile>a:focus{outline:none}.header .user-side .my-profile .user-img{width:30px;height:30px;float:left;margin-top:3px;border:1px solid white;border-radius:100%}.header .user-side .my-profile .university-img{width:30px;height:30px;float:left;margin-top:3px;border:1px solid transparent}.header .user-side .my-profile .dropdown-menu{float:none;padding:15px 25px;margin:12px 10px 0 0;min-width:250px;border:1px solid rgba(0,0,0,0.07);border-radius:4px;background-clip:padding-box;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.07)}.header .user-side .my-profile .dropdown-menu li.caret{border-bottom:6px solid #fff;border-left:6px solid transparent;border-right:6px solid transparent;display:inline-block;width:0;height:0;content:" ";border-top:0;position:absolute;top:-6px;right:13px;margin:0}.header .user-side .my-profile .dropdown-menu>li>a{margin:0 -25px;padding:5px 25px;color:#898992;transition:.1s ease-out}.header .user-side .my-profile .dropdown-menu>li>a:hover{background:#F7F8F9;color:#2A353A}.header .user-side .my-profile .dropdown-menu>li>a>i{margin-right:15px;font-size:15px;margin-top:1px;float:left}.header .user-side .my-profile .dropdown-menu>li.divider{margin:10px -25px}.header .user-side .my-profile .caret{float:left;margin-top:5px;margin-left:0;border-top:6px solid white;border-left:5px solid transparent;border-right:5px solid transparent}.preview-header .background{padding-left:10px;padding-right:10px}h1>a{color:#5A5A64;position:relative;text-decoration:none}h1>a:hover{color:#5A5A64}h1>a:hover:before{visibility:visible;transform:scaleX(1)}h1>a:before{content:"";position:absolute;width:100%;height:2px;bottom:-4px;left:0;background-color:#5A5A64;visibility:hidden;transform:scaleX(0);transition:all 0.3s ease-in-out 0s}h2{font-size:23px;font-weight:700;color:#2A353A;margin-bottom:10px}h4{font-size:18px;font-weight:700;color:#2A353A;margin-bottom:10px}button.submitLink{background-color:transparent;border:none;cursor:pointer}i.deleteIcon{color:#F20707}i.solvedIcon{color:#35BD40}i.attemptedIcon{color:#F20707}i.pendingIcon{color:#F5BC2A}i.editExplanation,span.editExplanation{color:#e6ae55}i.addExplanation,span.addExplanation{color:#56c053}td.problemColumn{text-align:center}a,a:hover,button.submitLink{text-decoration:none}a,button.submitLink{color:#4E92D0;transition:.1s ease-out}a:hover,.submitLink{color:#3179ba}p{line-height:26px;font-size:16px}.tooltip .tooltip-inner{background:#2A353A;padding:6px 12px}.tooltip .tooltip-arrow{border-top-color:#2A353A !important}.select2-container{min-width:160px}.select2-container .select2-choice,.select2-container-active .select2-choice,.select2-container-active .select2-choices{background:none;box-shadow:none;height:40px;line-height:40px;padding:0 14px}.select2-container .select2-choice .select2-arrow,.select2-container-active .select2-choice .select2-arrow,.select2-container-active .select2-choices .select2-arrow{background:none;width:40px;border:none}.select2-container .select2-choice .select2-arrow b,.select2-container-active .select2-choice .select2-arrow b,.select2-container-active .select2-choices .select2-arrow b{border-bottom:0 dotted;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #898992;width:0;height:0;margin:17px auto}.judge-queue-select2-container{border:none;padding:0;height:30px}.judge-queue-select2-container>a.select2-choice{height:inherit;line-height:28px}.judge-queue-select2-container>a.select2-choice>span.select2-chosen{height:inherit}.judge-queue-select2-container>a.select2-choice>span.select2-arrow>b{margin:13px 15px}.judge-queue-select2-dropdown .select2-result-label{overflow:hidden}.donut text,.donut tspan{font-size:2px !important;color:red !important}tt,code,kbd,samp{font-family:monospace}.btn,.dataTables_paginate a{height:36px;padding:0 16px;margin-bottom:2px;margin-top:2px;font-size:15px;line-height:35px;border-radius:4px;transition:0.1s ease-out}.btn:active,.dataTables_paginate a:active{outline:none}.btn.green,.dataTables_paginate a.green{background:#4BC547;color:#fff}.btn.green:hover,.dataTables_paginate a.green:hover{background:#66ce62;color:#fff}.btn.dark-bg,.dataTables_paginate a.dark-bg{background:#3A3A44;border-color:#3A3A44;color:#898992}.btn.dark-bg:hover,.dataTables_paginate a.dark-bg:hover{background:#00B1BC;border-color:#00B1BC;color:#fff}.kat-button{display:inline-block;zoom:1;line-height:normal;white-space:nowrap;vertical-align:middle;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative}.kat-button{font-family:inherit;border:1px solid #999;border:none transparent;font-weight:600}.kat-button::-moz-focus-inner{padding:0;border:0}.kat-button:disabled{opacity:0.5}.kat-button.small{padding:10px 12px 10px 12px;font-size:12px}.kat-primary{background:#52bb50;text-decoration:none !important;border-radius:3px;color:#fff !important;text-align:center;cursor:pointer;box-shadow:inset 0px -2px 0px 0px #38a834}.kat-primary:hover{background:#56c053}.kat-primary:active{background:#52bb50;box-shadow:inset 0px 2px 0px 0px #38a834}.kat-primaryspan{position:relative}.kat-primaryspan:active{top:1px}.kat-default{background:#dbdbdb;text-decoration:none !important;border-radius:3px;color:#555 !important;text-align:center;cursor:pointer;box-shadow:inset 0px -2px 0px 0px #c7c7c7}.kat-default:hover{background:#e0e0e0}.kat-default:active{background:#dbdbdb;box-shadow:inset 0px 2px 0px 0px #c7c7c7}.kat-defaultspan{position:relative}.kat-defaultspan:active{top:1px}.kat-info{background:#00B1BC;text-decoration:none !important;border-radius:3px;color:#fff !important;text-align:center;cursor:pointer;box-shadow:inset 0px -2px 0px 0px #048D98}.kat-info:hover{background:#02B8C5}.kat-info:active{background:#00B1BC;box-shadow:inset 0px 2px 0px 0px #048D98}.kat-infospan{position:relative}.kat-infospan:active{top:1px}.kat-error{background:#E74C3C;text-decoration:none !important;border-radius:3px;color:#fff !important;text-align:center;cursor:pointer;box-shadow:inset 0px -2px 0px 0px #C0392B}.kat-error:hover{background:#E46555}.kat-error:active{background:#E74C3C;box-shadow:inset 0px 2px 0px 0px #C0392B}.kat-errorspan{position:relative}.kat-errorspan:active{top:1px}.checkbox{padding-left:0;line-height:22px;margin-bottom:2px;margin-left:20px}.dropdown{float:none;padding:0}.dropdown .dropdown-toggle{background:#fff;padding:10px 16px;border:1px solid #c2c6cb;width:100%;text-align:left;color:#66666E;border-radius:4px}.dropdown .dropdown-toggle .caret{border-top:6px solid #66666E;border-right:5px solid transparent;border-left:5px solid transparent;float:right;margin-top:7px}.dropdown .dropdown-menu{width:100%}.dropdown.open .dropdown-toggle{box-shadow:inset 0 1px 3px rgba(0,0,0,0.1)}textarea,textarea.explanation,input[type="text"],input[type="password"],input[type="datetime"],input[type="datetime-local"],input[type="date"],input[type="month"],input[type="time"],input[type="week"],input[type="number"],input[type="email"],input[type="url"],input[type="search"],input[type="tel"],input[type="color"],select{font-size:14px;color:#5A5A64;background-color:#fff;border:1px solid #c2c6cb;line-height:1.2;padding:0 10px;outline:0;display:inline-block;height:32px;border-radius:4px}textarea[name="set_filter_team"]>option,input[type="text"][name="set_filter_team"]>option,input[type="password"][name="set_filter_team"]>option,input[type="datetime"][name="set_filter_team"]>option,input[type="datetime-local"][name="set_filter_team"]>option,input[type="date"][name="set_filter_team"]>option,input[type="month"][name="set_filter_team"]>option,input[type="time"][name="set_filter_team"]>option,input[type="week"][name="set_filter_team"]>option,input[type="number"][name="set_filter_team"]>option,input[type="email"][name="set_filter_team"]>option,input[type="url"][name="set_filter_team"]>option,input[type="search"][name="set_filter_team"]>option,input[type="tel"][name="set_filter_team"]>option,input[type="color"][name="set_filter_team"]>option,select[name="set_filter_team"]>option{overflow:hidden}textarea,textarea.explanation{width:100%;height:auto;min-height:60px;resize:vertical}input:hover,textarea:hover,select:hover{border-color:#999fa8}textarea:focus,input[type="text"]:focus,input[type="password"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="time"]:focus,input[type="week"]:focus,input[type="number"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="color"]:focus,.form-control:focus{border-color:#7d8690}.characters-remain{text-align:right}.form-label{color:#2A353A}.explanation-tab-wrapper{display:flex}.explanation-tab{display:flex;position:relative;align-content:center;height:3.5rem;width:33%;border-radius:3px 3px 0 0;cursor:pointer}.explanation-tab h4{width:100%}.explanation-tab div{display:flex;padding-left:12px;width:100%}.explanation-tab div:after{right:-12px;border-radius:0 0 0 5px;width:12px;height:12px;z-index:2;content:"";position:absolute;top:23px}.explanation-tab:after{content:"";background:inherit;width:10px;height:10px;position:absolute;right:-10px;top:25px;z-index:1}.explanation-tab:first-child div:after{background:#d4d4d4}.explanation-tab:not(:first-child):before{content:"";left:-10px;background:inherit;width:10px;height:10px;position:absolute;top:25px;z-index:1}.explanation-tab:not(:first-child) div:after{background:#ffffff}.explanation-tab:not(:first-child) div:before{border-radius:0 0 5px 0;width:12px;height:12px;z-index:2;content:"";position:absolute;left:-12px;top:23px;background:#d4d4d4}.active-tab{background-color:#ececec;z-index:1}.not-active-tab{background-color:#d4d4d4;z-index:0}.explanation-data-wrapper{background-color:#ececec;border-radius:0 3px 3px 3px;padding:25px 10px 0}.explanation-link-box{height:22px;cursor:pointer}.explanation-link{font-weight:bold;margin-left:10px;font-family:"Open Sans",sans-serif;font-size:initial;-webkit-font-smoothing:antialiased}textarea.explanation{min-height:150px}.dataTables_paginate{margin-top:20px}.dataTables_paginate{float:right;height:30px}.dataTables_paginate a{height:32px;line-height:32px;border:1px solid #E7E7E8;float:left;margin-left:10px;cursor:pointer;color:#898992}.dataTables_paginate a:hover{background:#fff}.dataTables_paginate a.disabled{visibility:hidden}.table-kattis{margin-bottom:0}.table-kattis>thead>tr>th{background:#F7F8F9;text-transform:uppercase;font-weight:600;font-size:14px;color:#898992;padding:14px 16px;background-clip:padding-box}.table-kattis.center>thead>tr>th,.table-kattis.center>thead>tr>td,.table-kattis.center>tbody>tr>th,.table-kattis.center>tbody>tr>td,.table-kattis.center>tfoot>tr>th,.table-kattis.center>tfoot>tr>td{text-align:center}.table-kattis.center>thead>tr>th:first-child,.table-kattis.center>thead>tr>td:first-child,.table-kattis.center>tbody>tr>th:first-child,.table-kattis.center>tbody>tr>td:first-child,.table-kattis.center>tfoot>tr>th:first-child,.table-kattis.center>tfoot>tr>td:first-child{text-align:left}.table-kattis>tbody>tr>td,.table-kattis>tfoot>tr>td{padding:8px 16px;color:#5A5A64;background:#fff}.table-kattis>tbody>tr>td:first-child,.table-kattis>tfoot>tr>td:first-child{text-align:left}.table-kattis>tbody>tr>td,.table-kattis>tbody>tr>th,.table-kattis>tfoot>tr>td,.table-kattis>tfoot>tr>th,.table-kattis>thead>tr>th{border:none;border-left:1px solid #E7E7E8;border-bottom:1px solid #E7E7E8}.table-kattis>thead>tr:first-child>th{border-top:1px solid #E7E7E8 !important}.table-kattis tr>th:last-child,.table-kattis tr>td:last-child{border-right:1px solid #E7E7E8 !important}.table-kattis>thead>tr:first-child>th:first-child{border-radius:4px 0 0 0}.table-kattis>thead>tr:first-child>th:last-child{border-radius:0 4px 0 0}.table-kattis>thead>tr:first-child>th:only-child{border-radius:4px 4px 0 0}.table-kattis>tbody>tr:last-child>td:first-child,.table-kattis>tbody>tr:last-child>th:first-child{border-radius:0 0 0 4px}.table-kattis>tbody>tr:last-child>td:last-child,.table-kattis>tbody>tr:last-child>th:last-child{border-radius:0 0 4px 0}.table-kattis>tbody>tr:last-child>td:only-child,.table-kattis>tbody>tr:last-child>th:only-child{border-radius:0 0 4px 4px}.table-headerless>tbody>tr:first-child>th,.table-headerless>tbody>tr:first-child>td{border-top:1px solid #E7E7E8 !important}.table-headerless>tbody>tr:first-child>th:first-child,.table-headerless>tbody>tr:first-child>td:first-child{border-radius:4px 0 0 0}.table-headerless>tbody>tr:first-child>th:last-child,.table-headerless>tbody>tr:first-child>td:last-child{border-radius:0 4px 0 0}.table-headerless>tbody>tr:first-child>th:only-child,.table-headerless>tbody>tr:first-child>td:only-child{border-radius:4px 4px 0 0}.table-with-footer>tbody>tr:last-child>td,.table-with-footer>tbody>tr:last-child>th{border-radius:0 !important}.table-with-footer>tfoot>tr:last-child>td:first-child,.table-with-footer>tfoot>tr:last-child>th:first-child{border-radius:0 0 0 4px}.table-with-footer>tfoot>tr:last-child>td:last-child,.table-with-footer>tfoot>tr:last-child>th:last-child{border-radius:0 0 4px 0}.table-with-footer>tfoot>tr:last-child>td:only-child,.table-with-footer>tfoot>tr:last-child>th:only-child{border-radius:0 0 4px 4px}.table-user-emails>tbody>tr:last-child td{border-radius:0 0 4px 4px !important}.table-rowspan>tbody>tr:last-child>td,.table-rowspan>tbody>tr:last-child>th{border-radius:0}.table-rowspan td.cell-bottom-left:first-child{border-radius:0 0 0 4px !important}.table-rowspan td.cell-bottom-right{border-radius:0 0 4px 0 !important}.table-kattis>tbody>tr>th,.table-kattis>tfoot>tr>th{padding:14px 16px;background:#F7F8F9;text-transform:uppercase;font-weight:600;font-size:14px;color:#898992}.table-kattis>tbody>tr>td{background-clip:padding-box;padding:4px 16px}.table-kattis>tbody>tr>td.overflow-hidden>div{overflow:hidden}.table-kattis tr th.right{text-align:right}.table-kattis>tbody>tr>th.problem_letter{font-size:16px;text-align:center}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th,.table-hover>tfoot>tr:hover>td,.table-hover>tfoot>tr:hover>th{background:#fafbfb}.table-multiple-head-rows{margin-top:20px}.table-multiple-head-rows>thead>tr:first-child>th:not(.solve_status_wrapper){padding:14px 16px}.table-multiple-head-rows>thead>tr>th{padding:6px 16px;position:relative}.table-problem-judging>thead>tr>th{padding:8px}.table-problem-judging .judging-value{display:inline-block;width:50px;margin-left:5px}.table-testcases>thead>tr>th{padding:8px}.table-testcases .hash{font-size:11px}.page-stats .page-content .stats-content{height:400px}.page-stats .page-content .stats-content .left-list,.page-stats .page-content .stats-content .right-list{width:30%}.page-stats .page-content .stats-content .left-list{padding:70px 0 70px 50px;float:left}.page-stats .page-content .stats-content .right-list{padding:90px 80px 0 0;float:right}.page-stats .page-content .stats-content .stat-list li{color:#898992;font-size:16px;margin:8px 0;float:left;width:100%}.page-stats .page-content .stats-content .stat-list li strong{font-weight:600;color:#2A353A;width:70%;float:left}.page-stats .page-content .stats-content .stat-list li span{width:30%;float:left}.page-stats .page-content .stats-content .donut{width:400px;position:absolute;left:50%;margin:22px 0 0 -180px}.page-stats .page-content #stats-bar,.page-stats .page-content .stats-bar{position:unset !important;width:100%}.page-stats .page-content #stats-bar svg,.page-stats .page-content .stats-bar svg{width:100% !important}.page-stats .page-content #stats-bar .morris-hover,.page-stats .page-content .stats-bar .morris-hover{position:inherit;font-size:16px;display:flex;flex-wrap:wrap;padding:0 25px;width:100%;line-height:30px}.page-stats .page-content #stats-bar .morris-hover .morris-hover-point,.page-stats .page-content .stats-bar .morris-hover .morris-hover-point{width:33.3%}.page-stats .page-content #stats-bar .morris-hover .morris-hover-point .label-1,.page-stats .page-content .stats-bar .morris-hover .morris-hover-point .label-1{font-weight:600;margin-right:20px;float:left;width:80%}.page-stats .page-content #stats-bar .morris-hover .morris-hover-point .label-1 strong,.page-stats .page-content .stats-bar .morris-hover .morris-hover-point .label-1 strong{padding:2px 6px;color:#fff;border-radius:3px}.page-stats .page-content #stats-bar .morris-hover .morris-hover-point .label-1 strong.language,.page-stats .page-content .stats-bar .morris-hover .morris-hover-point .label-1 strong.language{white-space:nowrap}.page-stats .page-content #stats-bar .morris-hover .morris-hover-point span,.page-stats .page-content .stats-bar .morris-hover .morris-hover-point span{color:#898992}.page-stats .page-content #stats-bar .morris-hover-row-label,.page-stats .page-content .stats-bar .morris-hover-row-label{display:none !important}.page-stats .page-content .legends{float:right}.page-stats .page-content .legends li{margin-bottom:22px;color:#5A5A64}.page-stats .page-content .legends .cube{margin-top:-1px;width:18px;height:18px;float:left;margin-right:20px;border-radius:3px}.page-stats .page-content ul,.page-stats .page-content ol,.page-stats .page-content li{margin:0;padding:0;list-style:none}.page-stats .page-content h2{margin-top:0}.page-stats .box.stats-box{padding-top:0;padding-bottom:0}.page-profile .user-info .user-img{width:80px;height:80px;float:left;border-radius:80px}.page-profile .user-info .basic-info{height:80px;position:inherit;min-width:840px}.page-profile .user-info .basic-info .user-img{width:80px;height:80px;float:left;margin-right:20px;border-radius:80px}.page-profile .user-info .basic-info .university-img{width:80px;height:80px;float:left;margin-right:20px;background-position:center center;background-size:contain;background-repeat:no-repeat}.page-profile .user-info .basic-info .fullname{margin-bottom:10px}.page-profile .user-info .basic-info .fullname h1{margin-top:-2px}.page-profile .user-info .social a{line-height:25px;text-align:center;float:left;margin:-5px 5px 0 0;font-size:16px;color:#5A5A64;border-radius:4px;transition:opacity .2s ease-out}.page-profile .user-info .social a:hover{opacity:0.6}.page-profile .user-info .rank{text-align:left;font-size:40px;color:#5A5A64;font-weight:600}.page-profile .user-info .rank td{padding-left:40px;text-align:center}.page-contest-edit [data-flexible-enabled=no] .if-flexible{display:none}.page-contest-edit .if-show-types-column{display:none}.page-contest-edit [data-is-scoring=no].has-scoring-problem .if-show-types-column,.page-contest-edit [data-is-scoring=no].adding-scoring-problem .if-show-types-column,.page-contest-edit [data-is-scoring=yes].has-passfail-problem .if-show-types-column,.page-contest-edit [data-is-scoring=yes].adding-passfail-problem .if-show-types-column{display:table-cell}.page-contest-edit [data-is-scoring=no] .if-scoring{display:none}.page-contest-edit .problem-score-input{min-width:50px;width:100%}.appear-animated{transition:all 400ms}.appear-animated.appearing{box-shadow:red 0 0 10px 10px;opacity:0;transform:scale(0.5)}div.queueform{text-align:right}div.clar_header{padding:0px;margin-top:20px;border-spacing:0px;font-weight:bold}div.reply_header{font-weight:bold}.clar_reply{padding:10px;margin-top:15px;margin-left:20px;white-space:pre-wrap}#clarbox{text-align:center;border:2px solid #135;color:red;font-weight:bold}#clarbox:empty{display:none}.clar_question{font-style:italic;margin-top:15px;padding:10px;background-color:#ffffe0;border:1px solid khaki;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);white-space:pre-wrap}.clar_reply.new{border:solid black 2px}.clar_reply.new span.new_alert{color:red}html,body{height:100%;margin-bottom:0}.date-time-picker tr td:first-child{text-align:center !important}.date-time-picker tr td:first-child span.active{background-color:#5e6868 !important}.progress{background-color:#dcdcdc !important;border:2px solid #fff !important;border-radius:15px !important;overflow:visible !important;height:10px !important}.progress-empty{background-color:#dcdcdc !important;border:2px solid #fff !important;border-radius:15px !important;overflow:visible !important;height:22px !important;margin-top:6px !important}.progress-bar{background-color:#4AAE4B !important;border-radius:15px !important;height:18px !important;box-shadow:none !important;vertical-align:middle;margin-top:-6px !important}#wrapper{min-height:100%;height:auto;margin:0 auto -60px;padding:0 0 90px;font-size:16px;line-height:1}#wrapper .problembody li{margin-top:5px}#wrapper .problembody li p{display:block;margin:0}#wrapper .problembody li p+p{margin-top:5px}#wrapper .form-control-static{margin:0;padding:0;padding-top:4px}#footer{min-height:60px;background-color:#33333D;padding-top:10px;padding-bottom:10px}.footer-info{font-size:11px;padding-top:10px;color:#999;line-height:1.3;white-space:nowrap}.footer-info.has-much-info{padding-top:2px}.footer-powered{text-align:center}.footer-powered h4{font-size:15px;margin-top:14px;margin-bottom:3px;text-transform:lowercase;font-variant:small-caps;color:#eee}.wrap li,.container li{line-height:1.6}.main-nav ul{padding:0}input.form-control{height:36px}.user-nav{margin-top:-9px}.user-nav .btn,.user-nav .dataTables_paginate a,.dataTables_paginate .user-nav a{margin:0}.user-img,.university-img{background-position:center center;background-size:cover;background-repeat:no-repeat}.user-img{background-color:white}a.user-img-link{display:block;overflow:hidden;padding-right:5px}.main-content{padding:10px 30px 15px 30px;line-height:1.4}section.box p{margin:0 0 10px}section.box.main-content{padding-bottom:20px}section.box.main-content p{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px}.problem-headline .headline-wrapper{margin:-30px 150px -10px 150px}.problem-headline h1{font-family:"Merriweather",serif !important}.color_legend .btn,.color_legend .dataTables_paginate a,.dataTables_paginate .color_legend a{background-color:#fff;text-transform:uppercase}#problem_list_wrapper .problem_list tr.solved td,.course_results td.solved,.problem-button-wrap .btn.solved,.problem-button-wrap .dataTables_paginate a.solved,.dataTables_paginate .problem-button-wrap a.solved{background-color:#E3FFE5}#problem_list_wrapper .problem_list tr.tried td,.course_results td.attempted,.problem-button-wrap .btn.tried,.problem-button-wrap .dataTables_paginate a.tried,.dataTables_paginate .problem-button-wrap a.tried{background-color:#FFE3E3}#problem_list_wrapper .problem_list tr.partial-score td,.course_results td.partial-score,.problem-button-wrap .btn.partial-score,.problem-button-wrap .dataTables_paginate a.partial-score,.dataTables_paginate .problem-button-wrap a.partial-score{background-color:#FFEFC6}#problem_list_wrapper .problem_list tr.pending td,.course_results td.pending,.problem-button-wrap .btn.pending,.problem-button-wrap .dataTables_paginate a.pending,.dataTables_paginate .problem-button-wrap a.pending{background-color:#fff}.btn-group-justified .btn,.btn-group-justified .dataTables_paginate a,.dataTables_paginate .btn-group-justified a{border-right-width:0px}.btn-group-justified .btn:last-of-type,.btn-group-justified .dataTables_paginate a:last-of-type,.dataTables_paginate .btn-group-justified a:last-of-type{border-right-width:1px}.additional_info a{margin-right:8px}.problemColumn .solution-score{color:#2AB335;font-weight:bold}#problem_list_wrapper .problem_list td.numeric{text-align:right}.score_wrapper{margin-top:-80px}.page-profile .user-info .rank span{text-transform:uppercase;text-align:center;display:block;font-size:12px;font-weight:600;color:#898992}.page-profile .recommendations div{background-color:#D9D9D9}.page-profile .recommendations p{-webkit-print-color-adjust:exact;display:inline}.page-profile .recommendations .recommended-static p{color:#D9D9D9 !important}.page-profile .recommendations .recommended-highlight p{color:#111 !important}.page-profile .recommendations .strongly-recommended.recommended-highlight div,.page-profile .recommendations .recommended.recommended-highlight div{background-color:#52BB50}.page-profile .recommendations .info-needed.recommended-highlight div{background-color:#F4D03F}.page-profile .recommendations .not-recommended.recommended-highlight div{background-color:#F20708}.page-profile .technical-skill-label{display:inline;text-transform:uppercase;font-size:12px}.page-profile .technical-skill-icon{display:inline-block;width:12px;height:10px}.page-profile .technical-skill-icon-result{background:#449FE1 !important}.page-profile .technical-skill-icon-threshold{background:#F0B034 !important}@media print{.page-profile .recommended-highlight div,.page-profile .recommended-static div,.page-profile .technical-skill-icon{position:relative;overflow:hidden}.page-profile .recommended-highlight div:before,.page-profile .recommended-static div:before,.page-profile .technical-skill-icon:before{content:'';position:absolute;top:0;right:0;left:0;bottom:0;border:99999px white solid}.page-profile .strongly-recommended.recommended-highlight div:before,.page-profile .recommended.recommended-highlight div:before{border-color:#52BB50}.page-profile .info-needed.recommended-highlight div:before{border-color:#F4D03F}.page-profile .not-recommended.recommended-highlight div:before{border-color:#F20708}.page-profile .recommended-static div:before{border-color:#D9D9D9}.page-profile .technical-skill-icon-result:before{border-color:#449FE1}.page-profile .technical-skill-icon-threshold:before{border-color:#F0B034}}.sidebar-info p{font-size:15px}.sidebar-info .alt-buttons{padding-bottom:10px}.sidebar-info .problem-download{margin-bottom:-10px}.sidebar-info .problem-license{border-width:0;margin-bottom:5px}.infobox{float:left;font-size:14px;margin-right:20px;margin-bottom:0;color:#2A353A;font-weight:600;line-height:1.3}.infobox span.title{text-transform:uppercase;display:block;font-size:12px;color:#898992;margin-bottom:2px}.infobox span.header-value{font-size:20px}.table-min-wrap{width:1% !important;white-space:nowrap !important}.table-min-wrap .country-flag{display:inline}.table-td-align-right{text-align:right !important}.last-updated-info{color:#999;text-align:right}.checkbox_middle{margin-top:10px}table.table td.nowrap,table.table th.nowrap{white-space:nowrap}table.table td.middle,table.table th.middle{vertical-align:middle}table tr td.row-header{background:#F7F8F9;text-transform:uppercase;font-weight:600;font-size:14px;color:#898992}.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px;height:auto}.wrap-fullwidth,#wrapper.wrap-fullwidth{width:100%;margin:0;margin-top:30px;padding-left:30px;padding-right:30px;position:relative}div.above-everything{margin-bottom:30px}.rejudge_summary td{text-align:right}.rejudge_summary td.no_change{background:#dfd}.rejudge_summary td.change{background:#FFE3E3}.rejudge_summary td.no_change_filtered_out{background:#E3FFE5;color:#aaa}.rejudge_summary td.change_filtered_out{background:#FFF0F0;color:#aaa}.rejudge_summary td.unjudged{background:#aaa}.rejudge_summary td.unjudged_filtered_out{background:#aaa}#banner{text-align:center}.problem_list{clear:both;position:relative;margin-top:0}.problem_list tbody tr{font-size:16px}.problem_list td{vertical-align:middle}.problem_list th.solve_status_wrapper{padding:0;padding-left:4px;padding-right:2px;padding-bottom:3px}.problem_list .color_legend .btn,.problem_list .color_legend .dataTables_paginate a,.dataTables_paginate .problem_list .color_legend a{padding-top:7px}.problem_list .stats-btn,.problem_list .submit-btn{padding:0}.color_legend input[type="checkbox"]{position:relative;left:-2px}.color_legend span{position:relative;top:-2px}.color_legend div span{top:1px}td.name_column,th.name_column{max-width:320px;word-wrap:break-word}#problem_list_wrapper td.name_column{text-align:left}#submission_files td{vertical-align:middle}.banner_wrapper{padding-left:30px;padding-right:30px;min-width:1140px}.stats-btn a,.submit-btn a{display:block;height:100%;width:100%;padding-top:3px;min-width:50px;min-height:28px}.table>tbody>tr>td{vertical-align:middle}.page-headline-padding{padding:10px 0px 20px 0px}.color_legend .solved,.color_legend .tried,.color_legend .untried{background:none !important;box-shadow:none !important;border-color:#D8D8D8}.color_legend .solved.active{background:#E3FFE5 !important;color:#59A136;border-color:#C1E0B2}.color_legend .tried.active{background:#FFE3E3 !important;color:#BD606E;border-color:#E0B2B9}.color_legend .untried.active{background:#fff !important}.box{padding-top:20px;padding-bottom:30px}.box ul{margin-bottom:0}#judge_table{margin-top:20px}.banner_wrapper .page-content.alert{padding:0}table>tbody>tr.highlight>td{background-color:#EFF8FD;box-shadow:#AED1DB 0 4px 4px -4px inset,#AED1DB 0 -4px 4px -4px inset}table>tbody>tr.highlight>td:first-child{box-shadow:#AED1DB 4px 4px 4px -4px inset,#AED1DB 0 -4px 4px -4px inset}table>tbody>tr.highlight>td:last-child{box-shadow:#AED1DB -4px 4px 4px -4px inset,#AED1DB 0 -4px 4px -4px inset}table>thead>tr>th.submission_id,table>tbody>tr>td.submission_id{vertical-align:top}.explanation-table>tbody>tr>td{vertical-align:top}#filter_by_value{margin-top:2px}.form-control.selectify-this,.form-control.selectify-style{border:none;padding:0}.problem-button-wrap{text-align:center}.submission_code_wrapper>table{width:100%}.select2-container .select2-choice abbr.select2-search-choice-close{z-index:4;top:12px;right:30px}.select2-container .country-flag img,.select2-container .subdivision-flag img,.select2-container .university-logo img,.select2-drop .country-flag img,.select2-drop .subdivision-flag img,.select2-drop .university-logo img{margin-right:5px}.country-flag img,.subdivision-flag img{max-width:20px;max-height:20px;border-radius:50%;border:1px #898992 solid}.university-logo img{max-width:20px;max-height:20px;border-radius:0;border:none}#standings .country-flag img,#standings .subdivision-flag img,#standings .university-logo img{max-width:28px;max-height:28px}.country-flag,.subdivision-flag{overflow:hidden}.country-flag span.text,.subdivision-flag span.text,.university-logo span.text{margin-top:4px;margin-left:5px}.ranklist-local-name{font-weight:500;margin-top:0;margin-bottom:2px}.infobox .country-flag span.text,.infobox .country-flag img{float:left}.ranklist-menu,.emaillist{list-style:none;overflow:hidden;margin:0;padding:0}.ranklist-menu li{float:left;margin:0;padding:0;margin-right:20px;margin-bottom:20px}.ranklist-menu .selectify-style{min-width:280px}.page-submit .page-content.single{padding-top:20px}.alert{margin-top:20px;margin-bottom:0}.open-ace{margin-top:15px;display:block}#session_banner{text-align:center;margin-bottom:10px}#session_banner img{max-width:100%}#contest_time h2.title{text-align:center;display:inline}.contest-progress .progress{margin-top:10px;margin-bottom:13px;position:relative}.contest-progress.session-nearend .progress-bar,.contest-progress .nearend span{background-color:#D9534F}.contest-progress.session-finished .progress-bar{background-color:#5CB85C}.contest-progress .info{overflow:hidden}.contest-progress .info h4{display:inline;margin:0;margin-right:5px}.contest-progress .info .left{float:left;text-align:left}.contest-progress .info .right{float:right;text-align:right}.contest-progress .nearend,.contest-progress .finished,.contest-progress .notstarted,.contest-progress .nostart{display:none;position:absolute;left:50%;width:300px;margin-top:-1px;margin-left:-150px;text-align:center;color:white}.contest-progress .notstarted,.contest-progress .nostart{padding-top:6px}.contest-progress .notstarted,.contest-progress .nostart{color:black}.contest-progress.session-nearend .nearend,.contest-progress.session-finished .finished,.contest-progress.session-notstarted .notstarted,.contest-progress.session-nostart .nostart{display:block}.contest-progress.session-notstarted .only_in_contest,.contest-progress.session-nostart .only_in_contest,.contest-progress.session-finished .only_in_contest{display:none}.testcases{min-height:17px}.testcases span{display:block;float:left;border:1px solid #C9C9C9;margin-left:2px;padding:0px;text-align:center;border-radius:4px;font-size:11px;height:17px;width:17px;background-color:#F9F9F9;padding-top:1px}.testcases span i{display:block}.testcases span.rejected i:before{color:#e84f67}.testcases span.accepted i:before{color:#84CD64}.testcases span.accepted i{margin-top:-1px}ul.testgroup_judgements{list-style:none;padding:0;width:50}ul.testgroup_judgements li{margin:1em 0}ul.testgroup_judgements li span.item{width:100%;display:block;background:#F7F8F9;color:#898992;padding:.75em;border:1px solid #E7E7E8;border-radius:0.15em;text-transform:uppercase;font-weight:600}ul.testgroup_judgements li span.item span.score{padding:2px 11px;border-radius:5px;color:white;font-size:10pt;margin-left:10px}ul.testgroup_judgements li ul.inner_testgroup{list-style:none;padding:0 1em 0 1em;overflow:hidden;border:1px solid #E7E7E8;border-top:0px}.plagiarism-warning.high{color:#F20707}.plagiarism-warning.medium,.plagiarism-warning.low{color:#F5BC2A}.rejected{color:#F20707;font-weight:bold}.partially-accepted{color:#F4B413;font-weight:bold}.accepted{color:#35BD40;font-weight:bold}.other{color:#99F;font-weight:bold}td.status i{font-size:17px;margin-right:10px;position:relative;top:2px}td.status.other i{font-size:20px;top:1px}.scoreboard_filters{clear:both;padding-top:10px}.scoreboard_filters .filter_row{overflow:hidden;clear:both;padding:0;padding-top:3px}.scoreboard_filters .filter_header{float:left;margin:0;margin-right:10px;font-size:16px}.scoreboard_filters .filter_header_offset{margin-bottom:8px}.scoreboard_filters .filter_item{float:left;margin-left:5px;border-radius:4px;font-size:14px;margin-bottom:3px}.scoreboard_filters .compact .filter_header{margin-top:6px}.scoreboard_filters .filter_item .filter_name{display:block;padding:6px 5px;border-radius:4px;color:#1b1b1f;background-color:#dcdcdc}.scoreboard_filters .filter_select.active .select2-container .select2-choice{border-color:#82868b}.scoreboard_filters .filter_item,.scoreboard_filters .filter_select.active .select2-container{background:#efefef;color:#fff}.scoreboard_filters .filter_name.active{background:#1b1b1f;color:#fff}.scoreboard_filters .filter_select{margin-left:5px;float:left;font-size:14px;margin-bottom:3px}.scoreboard_filters .filter_select .select2-container{min-width:80px}.scoreboard_filters .filter_select .select2-container .select2-choice,.scoreboard_filters .filter_select .select2-container-active .select2-choice,.scoreboard_filters .filter_select .select2-container-active .select2-choices{height:30px;line-height:30px;padding:0 7px}.scoreboard_filters .filter_select .select2-container .select2-choice>.select2-chosen{line-height:27px;padding-left:5px}.scoreboard_filters .filter_select .select2-container .select2-choice .select2-arrow{width:20px}.scoreboard_filters .filter_select .select2-container .select2-choice .select2-arrow b{margin:12px 0;margin-right:-10px}.filter_heading{margin-bottom:2px}.control-strip{padding-bottom:5px;float:right}.contest-buttons{margin-top:10px;display:inline-block}#standings .solved{color:#555;background:#AAE2AB no-repeat center/32px url("/images/standings/check.svg")}#standings .partial-score{color:#555;background:#ff9 no-repeat center/32px url("/images/standings/check_partial.svg")}#standings .solvedfirst{color:white;background:#57B257 no-repeat center/32px url("/images/standings/check_first.svg")}#standings .attempted{color:#fff;background:#F67B51 no-repeat center/32px url("/images/standings/cross.svg")}#standings .pending{color:#555;background:#dcdcdc no-repeat center/32px url("/images/standings/question.svg")}.legend-solved{background:#AAE2AB no-repeat center/75% url("/images/standings/check.svg")}.legend-solvedfirst{background:#57B257 no-repeat center/75% url("/images/standings/check_first.svg")}.legend-attempted{background:#F67B51 no-repeat center/75% url("/images/standings/cross.svg")}.legend-pending{background:#dcdcdc no-repeat center/50% url("/images/standings/question.svg")}.legend-partial-score{background:no-repeat center/85% url("/images/standings/check_partial.svg"),linear-gradient(to top left, #f67a51 -100%, #ff9 50%, #dff19d 90%, #aae2ab 200%);border:1px solid #eee}.no-pad{padding:0 !important}.judge-links,.judge-links-stats{display:inline;margin-top:10px;margin-bottom:5px}.judge-links-stats{display:block;margin-bottom:-10px}.legend-strip{clear:both}.legend-strip .table-legend:not(:first-child){margin-left:20px}.table-legend{border:1px solid #CBCBCB;padding:4px;display:inline;border-radius:4px;margin-top:8px;margin-bottom:15px;color:#82868b}.table-legend .legend-label{display:inline;font-size:14px;margin-top:2px}.table-legend div{display:inline}.table-legend div:not(:first-child){padding-left:20px}.table-legend .legend-status,.table-legend .legend-leader,.table-legend .legend-whoami{width:23px;height:23px;border-radius:2px;display:inline-block;vertical-align:middle}.table-legend .legend-leader{background-color:#FCCA2D;border-radius:50%;border:3px solid #fff}.table-legend .legend-whoami{background-color:#CEE4EE}.legend-leader-td{width:20px;height:20px;background-color:#FCCA2D;border-radius:50%;display:inline;float:right}table.kattis-table-contest-standings .problemcolheader,table.kattis-table-contest-stats th{text-align:center;text-transform:none}table.kattis-table-contest-standings .problemcolheader-standings{padding:0}table.kattis-table-contest-standings .problemcolheader-standings a{display:block;font-weight:600 !important;padding:15px;text-align:center}table.kattis-table-contest-stats td{text-align:right}table.link-cells tbody td{cursor:pointer}.user-nav-ul{padding:0}.user-nav-ul .btn,.user-nav-ul .dataTables_paginate a,.dataTables_paginate .user-nav-ul a{height:30px;line-height:29px;padding:0 8px;margin-top:3px}.dropdown-divider{padding-left:15px;font-weight:bold}.extrainfo{margin-bottom:20px}table#candidate_table{margin-top:20px}form.candidate_change_visibility_form:first-child{margin-right:7px}form.inline_form{display:inline-block}.grab{cursor:-webkit-grab;cursor:grab}.grabbing{cursor:-webkit-grabbing;cursor:grabbing}dl.dl-horizontal.team-settings>*{padding-top:20px}dl.team-settings .form-control{max-width:400px}.team-members{max-width:580px}.runtime{text-align:right}.recommendation-column{text-align:center !important;padding-left:6px !important;padding-right:6px !important}td.recommendation-column.strongly-recommended,td.recommendation-column.recommended{background-color:#1CA427}td.recommendation-column.info-needed{background-color:#F5BC2A}td.recommendation-column.not-recommended{background-color:#D90000}td.recommendation-column.strongly-recommended{color:#F5BC2A}td.recommendation-column.recommended,td.recommendation-column.info-needed,td.recommendation-column.not-recommended{color:white}tr.problem-difficulty th{border-top:none !important;font-size:12px !important;padding:1px 0 !important;text-align:center}tr td.problem-difficulty{text-align:center}tr.problem-difficulty th.problem-difficulty{width:60px}thead tr.preceding-problem-difficulty-row th{padding-bottom:4px !important;border-bottom:none}.monospace{font-family:monospace}.inline-heading:after{content:':'}.wrapped-link:before{content:'['}.wrapped-link:after{content:']'}.table>tbody>tr>td.link-out{text-align:center}.programming-test .image{background-repeat:no-repeat;background-position:center;background-size:contain;width:100%;height:380px;margin:0px auto 0px 50px}.programming-test .image.kattis{background-image:url("/images/kattis/judge.png")}.programming-test.table>tbody>tr>td{border:none;padding:3px}.programming-test tr td:first-child{text-align:right;width:50%}.programming-test h4,.programming-test p{line-height:normal}.programming-test .user-info .rank span{text-transform:uppercase;text-align:center;display:block;font-size:12px;font-weight:600;color:#898992}.programming-test .user-img{width:80px;height:80px;float:left;border-radius:80px;margin-right:20px}.landing-page .image{background-repeat:no-repeat;background-position:center;background-size:contain;width:100%;height:200px;margin:20px auto 10px}.landing-page .image.select{background-image:url("/images/recruiting/select.png")}.landing-page .image.solve{background-image:url("/images/recruiting/solve.png")}.landing-page .image.submit{background-image:url("/images/recruiting/submit.png")}.landing-page.table>tbody>tr>td{border:none;padding:3px}.landing-page tr td:first-child{text-align:right;width:50%}.landing-page h4,.landing-page p{line-height:normal}.text-box-center{width:60%;margin-left:auto;margin-right:auto}.glyph{font-size:64px;width:200px;margin-bottom:10px;float:left;overflow:hidden}.glyphicon-small{font-size:14px;display:inline;overflow:hidden}.glyphicon-session-list{vertical-align:2px;font-size:14px;display:inline;overflow:hidden;margin-right:2px}.fs0{font-size:16px}.pl10{padding-left:10px}.vam{vertical-align:middle}li.user{margin-right:-13px !important}.user-infobox{font-size:10pt;font-weight:600;color:#fff;margin-right:8px}.user-infobox .user-infobox-name{margin-left:auto;max-width:150px}.user-infobox .user-infobox-status{margin-top:-5px}.user-infobox div{text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-infobox a{color:#fff}.inline-list,.profile-header-list{display:inline;padding:0}.inline-list li,.profile-header-list li{display:inline}.inline-list li+li:before,.profile-header-list li+li:before{content:', '}.answer-right{background-color:#35B041}.answer-wrong{background-color:#F20707}#curve{display:block;margin:0 auto}.modal-dialog{height:100%;width:100%;display:flex;align-items:center;pointer-events:none}.modal-expanding-form{max-height:315px;width:100%;overflow:auto;padding:0;margin:0}.modal-content{margin:0 auto;pointer-events:auto}.control-label{padding-bottom:5px}.recommendations{list-style:none}.recommendations li{padding-bottom:16px;margin-left:-35px}.recommended-static div{width:12px;height:12px;border-radius:50px;display:inline-block;margin-right:8px}.recommended-highlight div{width:16px;height:16px;border-radius:50px;vertical-align:-2px;display:inline-block;margin-right:5px;margin-left:-2px}.test-infobox-div{text-align:center;width:320px;margin:0 auto;position:relative}.test-infobox-div .test-infobox{font-weight:600;display:inline-block;margin-top:9px}.test-infobox-div .test-infobox:not(:last-child){padding-right:30px}.test-infobox-div .test-infobox span.test-title{margin-top:-20px;text-transform:uppercase;display:inline-block;font-size:12px;color:#898992}.test-infobox-div .test-infobox .test-content{text-align:left;margin-top:-6px !important;font-weight:600;font-size:14px;color:#1b1b1f}.circliful{position:relative}.circle-text,.circle-info,.circle-text-half,.circle-info-half{width:100%;position:absolute;text-align:center;display:inline-block;padding-top:5px;color:#1b1b1f}.circle-info,.circle-info-half{color:#B6B6BB}.circliful .fa{margin:-10px 3px 0 3px;position:relative;bottom:4px}.truncate-table-td{width:448px;white-space:nowrap;overflow:auto}.test-header-title{margin:0;padding:0 0 10px 0px;font-size:32px;font-weight:bold;color:#2A353A}.candidate-header-offset{display:inline;padding-top:20px;font-size:26px;font-weight:bold;color:#2A353A}.page-sub-header{padding-bottom:20px}.page-sub-header h2{display:inline}.page-sub-header a{margin-top:-5px}.search-type-header{font-size:26px;line-height:28px;margin:20px 0 -2px 0;font-weight:bold;color:#2A353A}.search-table{margin-bottom:0}.test-content-offset{padding-top:20px}.intelligence-test a.question-option img{border:thick solid white;width:100px}.intelligence-test a.question-option:hover img{border:thick solid #4AA2D2}.intelligence-test a.question-option img.selected{border:thick solid #1b1b1f}.intelligence-test span.example-correct-response{color:#84CD64;font-size:120%;padding:10px;display:none}.intelligence-test span.example-incorrect-response{color:#e84f67;font-size:120%;padding:10px;display:none}.intelligence-test div{margin:10px 0}.intelligence-test div.navigation-container{text-align:center}.intelligence-test div.navigation-container button{margin:10px}.intelligence-test div.remaining-time{text-align:right}.intelligence-test div.example-response-container{text-align:center;padding:20px}.intelligence-test div.question{text-align:center}.intelligence-test div.question img.prompt{width:360px}.intelligence-test .breadcrumbs{text-align:center;padding-bottom:20px}.intelligence-test .breadcrumbs i{margin:0 10px}.intelligence-test .breadcrumbs .answered-question{color:#1b1b1f}.intelligence-test .breadcrumbs .unanswered-question{color:#1b1b1f}.intelligence-test .breadcrumbs .current-question{color:#4AA2D2}.intelligence-test .breadcrumbs .unseen-question{color:#B6B6BB}.intelligence-test .offset-y{margin-top:24px}.test-results{clear:both;display:flex}.test-results table{font-size:14px}.test-results table td div{height:28px;width:28px;text-align:center;line-height:28px}.test-results table th{color:#BEC0C1;text-align:center;padding-right:6px}.test-results table td{padding:6px 9px}.test-results table tr :hover{cursor:pointer}.test-results table tr .selected div{border-radius:4px;color:white}.test-results table tr .correct div{font-weight:bold}.test-results table tr.correct td{background-color:#96E495}.test-results table tr.correct:hover td,.test-results table tr.correct.hilite td{background-color:#a1e7a0}.test-results table tr.correct .selected div{background-color:#56B955}.test-results table tr.incorrect td{background-color:#FF906A}.test-results table tr.incorrect:hover td,.test-results table tr.incorrect.hilite td{background-color:#ff9b79}.test-results table tr.incorrect .selected div{background-color:#E55F2E}.test-results table tr.unshown td{background-color:#BEC0C1}.test-results table tr.unshown:hover td,.test-results table tr.unshown.hilite td{background-color:#c5c6c7}.test-results table tr:first-child th+td{border-top-left-radius:5px}.test-results table tr:first-child td:last-child{border-top-right-radius:5px}.test-results table tr:last-child th+td{border-bottom-left-radius:5px}.test-results table tr:last-child td:last-child{border-bottom-right-radius:5px}.test-results .detail{margin-left:28px;flex-grow:1;display:flex;flex-direction:column}.test-results .detail .arrow-box{flex-grow:1}.test-results .arrow-box{display:flex;flex-direction:column;justify-content:space-around;align-items:center;padding:40px;position:relative;border:1px solid #BEC0C1;border-radius:5px}.test-results .arrow-box:after,.test-results .arrow-box:before{border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;right:100%}.test-results .arrow-box:after{border-width:10px;border-right-color:white;margin-top:-10px}.test-results .arrow-box:before{border-width:11px;border-right-color:#BEC0C1;margin-top:-11px}.test-results .arrow-box img{height:90px}.test-results .arrow-box .full-width{width:100%}.test-results .arrow-box .choices{display:flex;text-align:center}.test-results .arrow-box .choices>div>div{border:3px solid transparent;border-radius:7px}.test-results .arrow-box .choices>div.selected>div{border-color:#E55F2E}.test-results .arrow-box .choices>div.correct>div{border-style:dashed;border-color:#96E495}.test-results .arrow-box .choices>div.selected.correct>div{border-style:solid;border-color:#56B955}.test-results .arrow-box .summary{font-size:24px}.test-results .arrow-box .summary.correct{color:#56B955}.test-results .arrow-box .summary.incorrect{color:#E55F2E}.email-not-validated{color:#B6B6BB}.email-primary{font-weight:bold}.label-email-primary{margin-left:5px;text-transform:uppercase;border-radius:1em;padding:2px 6px}.label-verification-email-sent{color:#898992;margin-right:10px}.btn-set-primary-email,.btn-resend-verification{padding:0;font-size:16px;line-height:1;height:auto;margin-right:10px}.delete-button{background-color:transparent;border:0;color:#bd2c00;font-size:16px;padding:0 6px}.programmers-box{margin-right:-15px;padding-bottom:6px !important}.text-danger{color:#a94442 !important}.text-success{color:#3c763d !important}.contest-filter{margin-bottom:-5px}.contest-filter .contest-filter-head{color:#898992;text-transform:uppercase;font-size:14px}.kat-contest-filter{display:inline-block;border:1px solid #C9C9C9;border-radius:4px;padding:3px 5px 5px 5px}.kat-contest-filter input{vertical-align:-3px;cursor:pointer}.kat-contest-filter .filter-label{font-size:12px;text-transform:uppercase;color:#2A353A}.kat-contest-filter .filter-item:not(:first-child){padding-left:15px}.glyphicon-kattis{color:#E0A833}.glyphicon-other{color:#4E92D0}.programming-test-buttons-wraper{margin-top:-37px}.programming-test-button{width:110px;margin:0 3px}@media print{header.header,div.banner_wrapper,.contest-header,#clarbox,#footer,.problem-download,.problem-button-wrap,.alt-buttons{display:none}a[href]:after{content:none}body.page-problem div.container div.page-content.single{max-width:none}table.sample td pre,table.sample th pre{max-width:none}table.sample{page-break-inside:avoid}body{min-width:0}.container{width:auto}.page-problem-layout .page-content .problem-wrapper{font-size:80%;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal}.page-problem-layout .page-content .problem-wrapper p,p,.wrap li,.container li{font:inherit;line-height:inherit}.page-problem-layout .page-content .problem-headline h1{font-size:210%}.page-content h2{font-size:140%}.problembody dd,.problembody dt{line-height:inherit;padding:0}.problembody dd{padding-bottom:5px}.problembody dt:after{content:"\00a0"}.main-content,.problem-wrapper,.page-problem .page-content.single,#wrapper,#wrapper>*,#wrapper .problem-headline .headline-wrapper{margin:0;padding:0}.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}}table.diff_side_by_side{width:100%;border-collapse:collapse;border:solid grey 1px;font-family:"Courier New", Courier, monospace}th.diff_header{border:solid grey 1px;text-align:center}.diff_side_by_side td.diff_line_number{width:5%}td.diff_line_number{border:solid grey 1px;text-align:right}.diff_side_by_side td.diff_line_right{width:45%}.diff_side_by_side td.diff_line_left{width:45%}.diff_side_by_side td.diff_line_same{width:45%}td.diff_line_right{background-color:#d0ffd0;border:0px}td.diff_line_left{background-color:#ffd0d0;border:0px}td.diff_line_same{background-color:white;border:0px}.diff_line_right span.highlight{background-color:#50dd50}.diff_line_left span.highlight{background-color:#ff8080}@font-face{font-family:'kattis_font';src:url("fonts/kattis_font.eot?xfghy5");src:url("fonts/kattis_font.eot?xfghy5#iefix") format("embedded-opentype"),url("fonts/kattis_font.ttf?xfghy5") format("truetype"),url("fonts/kattis_font.woff?xfghy5") format("woff"),url("fonts/kattis_font.svg?xfghy5#kattis_font") format("svg");font-weight:normal;font-style:normal;font-display:block}[class^="icon-"],[class*=" icon-"]{font-family:'kattis_font' !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-fsharp:before{content:"\e91c"}.icon-c:before{content:"\e600"}.icon-c2:before{content:"\e601"}.icon-objc:before{content:"\e602"}.icon-go:before{content:"\e603"}.icon-haskell:before{content:"\e604"}.icon-java:before{content:"\e605"}.icon-jsspidermonkey:before{content:"\e606"}.icon-php:before{content:"\e607"}.icon-python:before{content:"\e608"}.icon-ruby:before{content:"\e609"}.icon-c3:before{content:"\e60a"}.icon-inprogress:before{content:"\e60b"}.icon-gavel:before{content:"\e60c"}.icon-prolog:before{content:"\e800"}.icon-user:before{content:"\e901"}.icon-pascal:before{content:"\e902"}.icon-bitbucket:before{content:"\e903"}.icon-stackoverflow:before{content:"\e904"}.icon-googleplus:before{content:"\e905"}.icon-linkedin:before{content:"\e906"}.icon-facebook:before{content:"\e907"}.icon-skype:before{content:"\e908"}.icon-github:before{content:"\e909"}.icon-clock:before{content:"\e90a"}.icon-edit:before{content:"\e90b"}.icon-archive:before{content:"\e90c"}.icon-delete:before{content:"\e90d"}.icon-gravatar:before{content:"\e90e"}.icon-stackexchange:before{content:"\e90f"}.icon-plagiarism3:before{content:"\e910"}.icon-plagiarism2:before{content:"\e911"}.icon-plagiarism1:before{content:"\e912"}.icon-scala:before{content:"\e913"}.icon-paw:before{content:"\e914"}.icon-kotlin:before{content:"\e915"}.icon-js:before{content:"\e916"}.icon-rust:before{content:"\e917"}.icon-ocaml:before{content:"\e918"}.icon-lisp:before{content:"\e919"}.icon-cobol:before{content:"\e91b"}.enumerate li{list-style-type:decimal;margin-left:20px}.enumerate li:first-child{margin-top:5px}.enumerate li:last-child{margin-bottom:10px}.tabular{margin-bottom:20px}.tabular:after{content:"";display:table;clear:both}.tabular th{padding:10px}.tabular td{padding:10px;border-color:#B6B6BB !important}.tabular td p{margin:0 !important}div.illustration{float:right;padding-left:20px}div.illustration .illustration{width:100%;border-radius:4px}div.figure{display:block;float:none;margin-left:auto;margin-right:auto;font-family:"Merriweather",serif;font-size:14px;line-height:24px;margin-bottom:20px}div.figure .caption{margin-top:15px}div.description{color:#898992;font-style:italic;font-family:"Merriweather",serif;font-size:12px;text-align:right;margin-top:5px}.page-problem .page-content.single{max-width:900px;margin:30px auto}.page-problem-layout .page-content .problem-headline{margin-top:10px;padding-bottom:20px;margin-bottom:0;border-bottom:1px solid #E7E7E8;position:relative}.page-problem-layout .page-content .problem-headline h1{text-align:center;font-size:44px}.page-problem-layout .page-content .problem-headline h1>a{color:#2A353A}.page-problem-layout .page-content .problem-wrapper{padding:30px 0 0;margin-bottom:15px;font-size:14px;line-height:24px}.page-problem-layout .page-content .problembody{font-family:"Merriweather",serif}.page-problem-layout .page-content .problem-wrapper h1,.page-problem-layout .page-content .problem-wrapper h2,.page-problem-layout .page-content .problem-wrapper h3,.page-problem-layout .page-content .problem-wrapper h4{font-family:"Merriweather",serif}.page-problem-layout .page-content .problem-wrapper h2{margin-top:30px}.page-problem-layout .page-content .problem-wrapper p{margin:15px 0;font-size:14px;line-height:24px}.page-problem-layout .page-content .problem-wrapper .minipage{width:auto !important}.page-problem-layout .page-content .source{margin-top:20px;border-top:1px solid #E7E7E8;color:#898992}.page-problem-layout .page-content.boxed .problem-headline{margin-top:35px}.table-sample,table.sample{margin-top:20px}.table-sample>tbody>tr>th,.table-sample>tfoot>tr>th,.table-sample tr>th,table.sample>tbody>tr>th,table.sample>tfoot>tr>th,table.sample tr>th{border-top:none;font-size:18px;font-weight:600;color:#2A353A}table.sample{width:100%;margin-bottom:20px}table.sample td,table.sample th{padding:4px;vertical-align:baseline;width:50%}table.sample td pre,table.sample th pre{border:1px solid #B6B6BB;font-family:monospace;padding:6px 11px;max-width:410px;position:relative}table.sample th{font-family:"Merriweather",serif}table.sample .copy-to-clipboard{display:block;position:absolute;width:24px;height:24px;right:0px;top:1px;background-image:url(/images/files-o.svg);background-size:16px;background-repeat:no-repeat;background-position:top 4px right 4px;opacity:0.2;cursor:pointer}table.sample .copy-to-clipboard:hover{opacity:1}div.sampleinteractionread{width:60%;float:left;margin:3px 0px 3px 0px}div.sampleinteractionread pre{margin:1px 5px 1px 5px}div.sampleinteractionwrite{width:60%;float:right;margin:3px 0px 3px 0px}div.sampleinteractionwrite pre{margin:1px 5px 1px 5px}.problembody dd p{display:inline}.description:after{content:'';display:table;clear:both}div.problembody{text-align:justify}.problembody{margin-top:15px}.problembody dt{float:left;clear:left;margin:0;padding:7px 7px 0 0}.problembody dd{margin:0 0 0 40px;float:none;padding:5px 0}.problembody ul{padding-left:40px}.problembody ol{padding-left:20px}.problembody .scshape{font-variant:small-caps;font-size:1.1em}dl.hanging-indent dd{margin-left:40px}blockquote{background:#F7F8F9;font-style:italic;font-size:16px;padding:20px 30px;margin-bottom:20px;border-radius:4px}blockquote>div{font-size:14px;color:#898992}@media print{table.sample td pre,table.sample th pre{max-width:none}.problembody dd,.problembody dt{line-height:inherit;padding:0}.problembody dd{padding-bottom:5px}.problembody dt:after{content:"\00a0"}}table tr td.partial-score,table tr td.team_problem_cell{font-size:14px;padding:0;margin:0;text-align:center}table tr td.stats{font-size:14px;padding:0;text-align:center}table tr td .scoreboard-submission-link{display:block;color:inherit;text-decoration:none}table>tbody>tr>td.resolve-problem,table>tbody>tr.highlight>td.resolve-problem{box-shadow:inset 4px 3px 16px -5px #33333D}@media screen{#editor_resize{overflow:hidden;padding-bottom:10px;border:1px solid black;height:310px;min-height:310px}.editor_wrapper{position:relative;height:100%;resize:none}}.file_upload,.switch_button{position:relative;border:1px solid rgba(0,0,0,0.03);border-radius:3px;background:rgba(0,0,0,0.03);padding:23px;min-height:60px}.file_upload{min-height:180px}.switch_button{cursor:hand}.file_upload .message,.switch_button .message{text-align:center;position:absolute;width:428px;height:60px;margin-left:-214px;top:50%;left:50%}.file_upload .message{margin-top:-28px}.switch_button .message{font-size:1.4em;font-weight:600;margin-top:-10px;color:black}.file_upload .message .upper{font-size:1.4em}.file_upload .message .upper .dnd{font-weight:600}.file_upload .message .lower{margin-top:10px;color:#C4C4C4;font-style:italic}.file_upload [type=file]{display:block;position:absolute;top:0;left:0;height:100%;width:100%;opacity:0;cursor:pointer}.file_upload .file_display{display:none;padding-left:100px}.file_upload.has_files .message{display:none}.file_upload.has_files .file_display{display:block}.login{width:700px;margin:0 auto;text-align:center}.login-left{float:left;width:400px}.login-right{float:left;margin-top:2em;width:300px}.login-methods{margin-top:10em;display:inline}.login-methods button{font-weight:300;text-shadow:1px 1px 0 rgba(0,0,0,0.4);width:15em;margin:.5em 0;color:#fff;padding:0.9em 0.8em 0.9em 0.8em;border-radius:3px;border:1px solid #bbb;line-height:normal}.login-methods button i{display:inline;line-height:normal;font-size:1.3em;padding-right:1em}.kth-ico{padding-right:1em;vertical-align:text-bottom}.Facebook{font-size:1em;background:#3b5998;border-color:#263961;box-shadow:0 1px 0 0 rgba(255,255,255,0.3) inset}.Facebook:hover{background:#3b5998;background:linear-gradient(to bottom, #5f7ec1 0, #4466ae 30%, #3b5998 100%)}.Facebook:active{box-shadow:0 2px 10px 0 rgba(0,0,0,0.3) inset;background:#3b5998}.Google{font-size:1em;background:#c63d2d;border-color:#882a1f;box-shadow:0 1px 0 0 rgba(255,255,255,0.3) inset}.Google:hover{background:#c63d2d;background:linear-gradient(to bottom, #dc7064 0, #d34e3e 30%, #c63d2d 100%)}.Google:active{box-shadow:0 2px 10px 0 rgba(0,0,0,0.3) inset;background:#c63d2d}.LinkedIn{font-size:1em;background:#007bb6;border-color:#00476a;box-shadow:0 1px 0 0 rgba(255,255,255,0.3) inset}.LinkedIn:hover{background:#007bb6;background:linear-gradient(to bottom, #03adff 0, #0090d5 30%, #007bb6 100%)}.LinkedIn:active{box-shadow:0 2px 10px 0 rgba(0,0,0,0.3) inset;background:#007bb6}.Azure{font-size:1em;background:#005db9;border-color:#003972;box-shadow:0 1px 0 0 rgba(255,255,255,0.3) inset}.Azure:hover{background:#005db9;background:linear-gradient(to bottom, #007FFF 0, #006ad4 30%, #005db9 100%)}.Azure:active{box-shadow:0 2px 10px 0 rgba(0,0,0,0.3) inset;background:#005db9}.Github{font-size:1em;background:#657079;border-color:#424c55;box-shadow:0 1px 0 0 rgba(255,255,255,0.3) inset}.Github:hover{background:#657079;background:linear-gradient(to bottom, #8e9294 0, #7a8088 30%, #657079 100%)}.Github:active{box-shadow:0 2px 10px 0 rgba(0,0,0,0.3) inset;background:#657079}.kth{font-size:1em;background:#aaa;border-color:#888;box-shadow:0 1px 0 0 rgba(255,255,255,0.3) inset}.kth:hover{background:#aaa;background:linear-gradient(to bottom, #ccc 0, #bbb 30%, #aaa 100%)}.kth:active{box-shadow:0 2px 10px 0 rgba(0,0,0,0.3) inset;background:#aaa}.email{font-size:1em;background:#333;border-color:#222;box-shadow:0 1px 0 0 rgba(255,255,255,0.3) inset}.email:hover{background:#333;background:linear-gradient(to bottom, #666 0, #444 30%, #333 100%)}.email:active{box-shadow:0 2px 10px 0 rgba(0,0,0,0.3) inset;background:#333}
