cp.nvim/tests/fixtures/codechef_P4209.html
2025-10-25 00:26:33 -04:00

5940 lines
278 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="en">
<head>
<style id="ace-tomorrow-night">
.ace-tomorrow-night .ace_gutter {
background: #25282c;
color: #c5c8c6;
}
.ace-tomorrow-night .ace_print-margin {
width: 1px;
background: #25282c;
}
.ace-tomorrow-night {
background-color: #1d1f21;
color: #c5c8c6;
}
.ace-tomorrow-night .ace_cursor {
color: #aeafad;
}
.ace-tomorrow-night .ace_marker-layer .ace_selection {
background: #373b41;
}
.ace-tomorrow-night.ace_multiselect .ace_selection.ace_start {
box-shadow: 0 0 3px 0px #1d1f21;
}
.ace-tomorrow-night .ace_marker-layer .ace_step {
background: rgb(102, 82, 0);
}
.ace-tomorrow-night .ace_marker-layer .ace_bracket {
margin: -1px 0 0 -1px;
border: 1px solid #4b4e55;
}
.ace-tomorrow-night .ace_marker-layer .ace_active-line {
background: #282a2e;
}
.ace-tomorrow-night .ace_gutter-active-line {
background-color: #282a2e;
}
.ace-tomorrow-night .ace_marker-layer .ace_selected-word {
border: 1px solid #373b41;
}
.ace-tomorrow-night .ace_invisible {
color: #4b4e55;
}
.ace-tomorrow-night .ace_keyword,
.ace-tomorrow-night .ace_meta,
.ace-tomorrow-night .ace_storage,
.ace-tomorrow-night .ace_storage.ace_type,
.ace-tomorrow-night .ace_support.ace_type {
color: #b294bb;
}
.ace-tomorrow-night .ace_keyword.ace_operator {
color: #8abeb7;
}
.ace-tomorrow-night .ace_constant.ace_character,
.ace-tomorrow-night .ace_constant.ace_language,
.ace-tomorrow-night .ace_constant.ace_numeric,
.ace-tomorrow-night .ace_keyword.ace_other.ace_unit,
.ace-tomorrow-night .ace_support.ace_constant,
.ace-tomorrow-night .ace_variable.ace_parameter {
color: #de935f;
}
.ace-tomorrow-night .ace_constant.ace_other {
color: #ced1cf;
}
.ace-tomorrow-night .ace_invalid {
color: #ced2cf;
background-color: #df5f5f;
}
.ace-tomorrow-night .ace_invalid.ace_deprecated {
color: #ced2cf;
background-color: #b798bf;
}
.ace-tomorrow-night .ace_fold {
background-color: #81a2be;
border-color: #c5c8c6;
}
.ace-tomorrow-night .ace_entity.ace_name.ace_function,
.ace-tomorrow-night .ace_support.ace_function,
.ace-tomorrow-night .ace_variable {
color: #81a2be;
}
.ace-tomorrow-night .ace_support.ace_class,
.ace-tomorrow-night .ace_support.ace_type {
color: #f0c674;
}
.ace-tomorrow-night .ace_heading,
.ace-tomorrow-night .ace_markup.ace_heading,
.ace-tomorrow-night .ace_string {
color: #b5bd68;
}
.ace-tomorrow-night .ace_entity.ace_name.ace_tag,
.ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name,
.ace-tomorrow-night .ace_meta.ace_tag,
.ace-tomorrow-night .ace_string.ace_regexp,
.ace-tomorrow-night .ace_variable {
color: #cc6666;
}
.ace-tomorrow-night .ace_comment {
color: #969896;
}
.ace-tomorrow-night .ace_indent-guide {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC)
right repeat-y;
}
/*# sourceURL=ace/css/ace-tomorrow-night */
</style>
<style id="autocompletion.css">
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
background-color: #cad6fa;
z-index: 1;
}
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {
background-color: #3a674e;
}
.ace_editor.ace_autocomplete .ace_line-hover {
border: 1px solid #abbffe;
margin-top: -1px;
background: rgba(233, 233, 253, 0.4);
position: absolute;
z-index: 2;
}
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {
border: 1px solid rgba(109, 150, 13, 0.8);
background: rgba(58, 103, 78, 0.62);
}
.ace_completion-meta {
opacity: 0.5;
margin-left: 0.9em;
}
.ace_completion-message {
margin-left: 0.9em;
color: blue;
}
.ace_editor.ace_autocomplete .ace_completion-highlight {
color: #2d69c7;
}
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight {
color: #93ca12;
}
.ace_editor.ace_autocomplete {
width: 300px;
z-index: 200000;
border: 1px lightgray solid;
position: fixed;
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.2);
line-height: 1.4;
background: #fefefe;
color: #111;
}
.ace_dark.ace_editor.ace_autocomplete {
border: 1px #484747 solid;
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);
line-height: 1.4;
background: #25282c;
color: #c1c1c1;
}
.ace_autocomplete .ace_text-layer {
width: calc(100% - 8px);
}
.ace_autocomplete .ace_line {
display: flex;
align-items: center;
}
.ace_autocomplete .ace_line > * {
min-width: 0;
flex: 0 0 auto;
}
.ace_autocomplete .ace_line .ace_ {
flex: 0 1 auto;
overflow: hidden;
text-overflow: ellipsis;
}
.ace_autocomplete .ace_completion-spacer {
flex: 1;
}
.ace_autocomplete.ace_loading:after {
content: '';
position: absolute;
top: 0px;
height: 2px;
width: 8%;
background: blue;
z-index: 100;
animation: ace_progress 3s infinite linear;
animation-delay: 300ms;
transform: translateX(-100%) scaleX(1);
}
@keyframes ace_progress {
0% {
transform: translateX(-100%) scaleX(1);
}
50% {
transform: translateX(625%) scaleX(2);
}
100% {
transform: translateX(1500%) scaleX(3);
}
}
@media (prefers-reduced-motion) {
.ace_autocomplete.ace_loading:after {
transform: translateX(625%) scaleX(2);
animation: none;
}
}
/*# sourceURL=ace/css/autocompletion.css */
</style>
<style id="snippets.css">
.ace_snippet-marker {
-moz-box-sizing: border-box;
box-sizing: border-box;
background: rgba(194, 193, 208, 0.09);
border: 1px dotted rgba(211, 208, 235, 0.62);
position: absolute;
}
/*# sourceURL=ace/css/snippets.css */
</style>
<style id="error_marker.css">
.error_widget_wrapper {
background: inherit;
color: inherit;
border: none;
}
.error_widget {
border-top: solid 2px;
border-bottom: solid 2px;
margin: 5px 0;
padding: 10px 40px;
white-space: pre-wrap;
}
.error_widget.ace_error,
.error_widget_arrow.ace_error {
border-color: #ff5a5a;
}
.error_widget.ace_warning,
.error_widget_arrow.ace_warning {
border-color: #f1d817;
}
.error_widget.ace_info,
.error_widget_arrow.ace_info {
border-color: #5a5a5a;
}
.error_widget.ace_ok,
.error_widget_arrow.ace_ok {
border-color: #5aaa5a;
}
.error_widget_arrow {
position: absolute;
border: solid 5px;
border-top-color: transparent !important;
border-right-color: transparent !important;
border-left-color: transparent !important;
top: -5px;
}
/*# sourceURL=ace/css/error_marker.css */
</style>
<style id="ace-tm">
.ace-tm .ace_gutter {
background: #f0f0f0;
color: #333;
}
.ace-tm .ace_print-margin {
width: 1px;
background: #e8e8e8;
}
.ace-tm .ace_fold {
background-color: #6b72e6;
}
.ace-tm {
background-color: #ffffff;
color: black;
}
.ace-tm .ace_cursor {
color: black;
}
.ace-tm .ace_invisible {
color: rgb(191, 191, 191);
}
.ace-tm .ace_storage,
.ace-tm .ace_keyword {
color: blue;
}
.ace-tm .ace_constant {
color: rgb(197, 6, 11);
}
.ace-tm .ace_constant.ace_buildin {
color: rgb(88, 72, 246);
}
.ace-tm .ace_constant.ace_language {
color: rgb(88, 92, 246);
}
.ace-tm .ace_constant.ace_library {
color: rgb(6, 150, 14);
}
.ace-tm .ace_invalid {
background-color: rgba(255, 0, 0, 0.1);
color: red;
}
.ace-tm .ace_support.ace_function {
color: rgb(60, 76, 114);
}
.ace-tm .ace_support.ace_constant {
color: rgb(6, 150, 14);
}
.ace-tm .ace_support.ace_type,
.ace-tm .ace_support.ace_class {
color: rgb(109, 121, 222);
}
.ace-tm .ace_keyword.ace_operator {
color: rgb(104, 118, 135);
}
.ace-tm .ace_string {
color: rgb(3, 106, 7);
}
.ace-tm .ace_comment {
color: rgb(76, 136, 107);
}
.ace-tm .ace_comment.ace_doc {
color: rgb(0, 102, 255);
}
.ace-tm .ace_comment.ace_doc.ace_tag {
color: rgb(128, 159, 191);
}
.ace-tm .ace_constant.ace_numeric {
color: rgb(0, 0, 205);
}
.ace-tm .ace_variable {
color: rgb(49, 132, 149);
}
.ace-tm .ace_xml-pe {
color: rgb(104, 104, 91);
}
.ace-tm .ace_entity.ace_name.ace_function {
color: #0000a2;
}
.ace-tm .ace_heading {
color: rgb(12, 7, 255);
}
.ace-tm .ace_list {
color: rgb(185, 6, 144);
}
.ace-tm .ace_meta.ace_tag {
color: rgb(0, 22, 142);
}
.ace-tm .ace_string.ace_regex {
color: rgb(255, 0, 0);
}
.ace-tm .ace_marker-layer .ace_selection {
background: rgb(181, 213, 255);
}
.ace-tm.ace_multiselect .ace_selection.ace_start {
box-shadow: 0 0 3px 0px white;
}
.ace-tm .ace_marker-layer .ace_step {
background: rgb(252, 255, 0);
}
.ace-tm .ace_marker-layer .ace_stack {
background: rgb(164, 229, 101);
}
.ace-tm .ace_marker-layer .ace_bracket {
margin: -1px 0 0 -1px;
border: 1px solid rgb(192, 192, 192);
}
.ace-tm .ace_marker-layer .ace_active-line {
background: rgba(0, 0, 0, 0.07);
}
.ace-tm .ace_gutter-active-line {
background-color: #dcdcdc;
}
.ace-tm .ace_marker-layer .ace_selected-word {
background: rgb(250, 250, 255);
border: 1px solid rgb(200, 200, 250);
}
.ace-tm .ace_indent-guide {
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==')
right repeat-y;
}
.ace-tm .ace_indent-guide-active {
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC')
right repeat-y;
}
/*# sourceURL=ace/css/ace-tm */
</style>
<style id="ace_editor.css">
.ace_br1 {
border-top-left-radius: 3px;
}
.ace_br2 {
border-top-right-radius: 3px;
}
.ace_br3 {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.ace_br4 {
border-bottom-right-radius: 3px;
}
.ace_br5 {
border-top-left-radius: 3px;
border-bottom-right-radius: 3px;
}
.ace_br6 {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
.ace_br7 {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
}
.ace_br8 {
border-bottom-left-radius: 3px;
}
.ace_br9 {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.ace_br10 {
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.ace_br11 {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.ace_br12 {
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.ace_br13 {
border-top-left-radius: 3px;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.ace_br14 {
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.ace_br15 {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.ace_editor {
position: relative;
overflow: hidden;
padding: 0;
font:
12px / normal 'Monaco',
'Menlo',
'Ubuntu Mono',
'Consolas',
'Source Code Pro',
'source-code-pro',
monospace;
direction: ltr;
text-align: left;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
forced-color-adjust: none;
}
.ace_scroller {
position: absolute;
overflow: hidden;
top: 0;
bottom: 0;
background-color: inherit;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
cursor: text;
}
.ace_content {
position: absolute;
box-sizing: border-box;
min-width: 100%;
contain: style size layout;
font-variant-ligatures: no-common-ligatures;
}
.ace_invisible {
font-variant-ligatures: none;
}
.ace_keyboard-focus:focus {
box-shadow: inset 0 0 0 2px #5e9ed6;
outline: none;
}
.ace_dragging .ace_scroller:before {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
content: '';
background: rgba(250, 250, 250, 0.01);
z-index: 1000;
}
.ace_dragging.ace_dark .ace_scroller:before {
background: rgba(0, 0, 0, 0.01);
}
.ace_gutter {
position: absolute;
overflow: hidden;
width: auto;
top: 0;
bottom: 0;
left: 0;
cursor: default;
z-index: 4;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
contain: style size layout;
}
.ace_gutter-active-line {
position: absolute;
left: 0;
right: 0;
}
.ace_scroller.ace_scroll-left:after {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;
pointer-events: none;
}
.ace_gutter-cell,
.ace_gutter-cell_svg-icons {
position: absolute;
top: 0;
left: 0;
right: 0;
padding-left: 19px;
padding-right: 6px;
background-repeat: no-repeat;
}
.ace_gutter-cell_svg-icons .ace_gutter_annotation {
margin-left: -14px;
float: left;
}
.ace_gutter-cell .ace_gutter_annotation {
margin-left: -19px;
float: left;
}
.ace_gutter-cell.ace_error,
.ace_icon.ace_error,
.ace_icon.ace_error_fold,
.ace_gutter-cell.ace_security,
.ace_icon.ace_security,
.ace_icon.ace_security_fold {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==');
background-repeat: no-repeat;
background-position: 2px center;
}
.ace_gutter-cell.ace_warning,
.ace_icon.ace_warning,
.ace_icon.ace_warning_fold {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==');
background-repeat: no-repeat;
background-position: 2px center;
}
.ace_gutter-cell.ace_info,
.ace_icon.ace_info,
.ace_gutter-cell.ace_hint,
.ace_icon.ace_hint {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=');
background-repeat: no-repeat;
background-position: 2px center;
}
.ace_dark .ace_gutter-cell.ace_info,
.ace_dark .ace_icon.ace_info,
.ace_dark .ace_gutter-cell.ace_hint,
.ace_dark .ace_icon.ace_hint {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC');
}
.ace_icon_svg.ace_error {
-webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+');
background-color: crimson;
}
.ace_icon_svg.ace_security {
-webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+');
background-color: crimson;
}
.ace_icon_svg.ace_warning {
-webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==');
background-color: darkorange;
}
.ace_icon_svg.ace_info {
-webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==');
background-color: royalblue;
}
.ace_icon_svg.ace_hint {
-webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg==');
background-color: silver;
}
.ace_icon_svg.ace_error_fold {
-webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=');
background-color: crimson;
}
.ace_icon_svg.ace_security_fold {
-webkit-mask-image: url('data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=');
background-color: crimson;
}
.ace_icon_svg.ace_warning_fold {
-webkit-mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=');
background-color: darkorange;
}
.ace_scrollbar {
contain: strict;
position: absolute;
right: 0;
bottom: 0;
z-index: 6;
}
.ace_scrollbar-inner {
position: absolute;
cursor: text;
left: 0;
top: 0;
}
.ace_scrollbar-v {
overflow-x: hidden;
overflow-y: scroll;
top: 0;
}
.ace_scrollbar-h {
overflow-x: scroll;
overflow-y: hidden;
left: 0;
}
.ace_print-margin {
position: absolute;
height: 100%;
}
.ace_text-input {
position: absolute;
z-index: 0;
width: 0.5em;
height: 1em;
opacity: 0;
background: transparent;
-moz-appearance: none;
appearance: none;
border: none;
resize: none;
outline: none;
overflow: hidden;
font: inherit;
padding: 0 1px;
margin: 0 -1px;
contain: strict;
-ms-user-select: text;
-moz-user-select: text;
-webkit-user-select: text;
user-select: text;
/*with `pre-line` chrome inserts &nbsp; instead of space*/
white-space: pre !important;
}
.ace_text-input.ace_composition {
background: transparent;
color: inherit;
z-index: 1000;
opacity: 1;
}
.ace_composition_placeholder {
color: transparent;
}
.ace_composition_marker {
border-bottom: 1px solid;
position: absolute;
border-radius: 0;
margin-top: 1px;
}
[ace_nocontext='true'] {
transform: none !important;
filter: none !important;
clip-path: none !important;
mask: none !important;
contain: none !important;
perspective: none !important;
mix-blend-mode: initial !important;
z-index: auto;
}
.ace_layer {
z-index: 1;
position: absolute;
overflow: hidden;
/* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/
word-wrap: normal;
white-space: pre;
height: 100%;
width: 100%;
box-sizing: border-box;
/* setting pointer-events: auto; on node under the mouse, which changes
during scroll, will break mouse wheel scrolling in Safari */
pointer-events: none;
}
.ace_gutter-layer {
position: relative;
width: auto;
text-align: right;
pointer-events: auto;
height: 1000000px;
contain: style size layout;
}
.ace_text-layer {
font: inherit !important;
position: absolute;
height: 1000000px;
width: 1000000px;
contain: style size layout;
}
.ace_text-layer > .ace_line,
.ace_text-layer > .ace_line_group {
contain: style size layout;
position: absolute;
top: 0;
left: 0;
right: 0;
}
.ace_hidpi .ace_text-layer,
.ace_hidpi .ace_gutter-layer,
.ace_hidpi .ace_content,
.ace_hidpi .ace_gutter {
contain: strict;
}
.ace_hidpi .ace_text-layer > .ace_line,
.ace_hidpi .ace_text-layer > .ace_line_group {
contain: strict;
}
.ace_cjk {
display: inline-block;
text-align: center;
}
.ace_cursor-layer {
z-index: 4;
}
.ace_cursor {
z-index: 4;
position: absolute;
box-sizing: border-box;
border-left: 2px solid;
/* workaround for smooth cursor repaintng whole screen in chrome */
transform: translatez(0);
}
.ace_multiselect .ace_cursor {
border-left-width: 1px;
}
.ace_slim-cursors .ace_cursor {
border-left-width: 1px;
}
.ace_overwrite-cursors .ace_cursor {
border-left-width: 0;
border-bottom: 1px solid;
}
.ace_hidden-cursors .ace_cursor {
opacity: 0.2;
}
.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {
opacity: 0;
}
.ace_smooth-blinking .ace_cursor {
transition: opacity 0.18s;
}
.ace_animate-blinking .ace_cursor {
animation-duration: 1000ms;
animation-timing-function: step-end;
animation-name: blink-ace-animate;
animation-iteration-count: infinite;
}
.ace_animate-blinking.ace_smooth-blinking .ace_cursor {
animation-duration: 1000ms;
animation-timing-function: ease-in-out;
animation-name: blink-ace-animate-smooth;
}
@keyframes blink-ace-animate {
from,
to {
opacity: 1;
}
60% {
opacity: 0;
}
}
@keyframes blink-ace-animate-smooth {
from,
to {
opacity: 1;
}
45% {
opacity: 1;
}
60% {
opacity: 0;
}
85% {
opacity: 0;
}
}
.ace_marker-layer .ace_step,
.ace_marker-layer .ace_stack {
position: absolute;
z-index: 3;
}
.ace_marker-layer .ace_selection {
position: absolute;
z-index: 5;
}
.ace_marker-layer .ace_bracket {
position: absolute;
z-index: 6;
}
.ace_marker-layer .ace_error_bracket {
position: absolute;
border-bottom: 1px solid #de5555;
border-radius: 0;
}
.ace_marker-layer .ace_active-line {
position: absolute;
z-index: 2;
}
.ace_marker-layer .ace_selected-word {
position: absolute;
z-index: 4;
box-sizing: border-box;
}
.ace_line .ace_fold {
box-sizing: border-box;
display: inline-block;
height: 11px;
margin-top: -2px;
vertical-align: middle;
background-image:
url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII='),
url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=');
background-repeat: no-repeat, repeat-x;
background-position:
center center,
top left;
color: transparent;
border: 1px solid black;
border-radius: 2px;
cursor: pointer;
pointer-events: auto;
}
.ace_dark .ace_fold {
}
.ace_fold:hover {
background-image:
url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII='),
url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC');
}
.ace_tooltip {
background-color: #f5f5f5;
border: 1px solid gray;
border-radius: 1px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
color: black;
padding: 3px 4px;
position: fixed;
z-index: 999999;
box-sizing: border-box;
cursor: default;
white-space: pre-wrap;
word-wrap: break-word;
line-height: normal;
font-style: normal;
font-weight: normal;
letter-spacing: normal;
pointer-events: none;
overflow: auto;
max-width: min(33em, 66vw);
overscroll-behavior: contain;
}
.ace_tooltip pre {
white-space: pre-wrap;
}
.ace_tooltip.ace_dark {
background-color: #636363;
color: #fff;
}
.ace_tooltip:focus {
outline: 1px solid #5e9ed6;
}
.ace_icon {
display: inline-block;
width: 18px;
vertical-align: top;
}
.ace_icon_svg {
display: inline-block;
width: 12px;
vertical-align: top;
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: 12px;
-webkit-mask-position: center;
}
.ace_folding-enabled > .ace_gutter-cell,
.ace_folding-enabled > .ace_gutter-cell_svg-icons {
padding-right: 13px;
}
.ace_fold-widget,
.ace_custom-widget {
box-sizing: border-box;
margin: 0 -12px 0 1px;
display: none;
width: 11px;
vertical-align: top;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==');
background-repeat: no-repeat;
background-position: center;
border-radius: 3px;
border: 1px solid transparent;
cursor: pointer;
pointer-events: auto;
}
.ace_custom-widget {
background: none;
}
.ace_folding-enabled .ace_fold-widget {
display: inline-block;
}
.ace_fold-widget.ace_end {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==');
}
.ace_fold-widget.ace_closed {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==');
}
.ace_fold-widget:hover {
border: 1px solid rgba(0, 0, 0, 0.3);
background-color: rgba(255, 255, 255, 0.2);
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}
.ace_fold-widget:active {
border: 1px solid rgba(0, 0, 0, 0.4);
background-color: rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}
/**
* Dark version for fold widgets
*/
.ace_dark .ace_fold-widget {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC');
}
.ace_dark .ace_fold-widget.ace_end {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==');
}
.ace_dark .ace_fold-widget.ace_closed {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==');
}
.ace_dark .ace_fold-widget:hover {
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
background-color: rgba(255, 255, 255, 0.1);
}
.ace_dark .ace_fold-widget:active {
box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}
.ace_inline_button {
border: 1px solid lightgray;
display: inline-block;
margin: -1px 8px;
padding: 0 5px;
pointer-events: auto;
cursor: pointer;
}
.ace_inline_button:hover {
border-color: gray;
background: rgba(200, 200, 200, 0.2);
display: inline-block;
pointer-events: auto;
}
.ace_fold-widget.ace_invalid {
background-color: #ffb4b4;
border-color: #de5555;
}
.ace_fade-fold-widgets .ace_fold-widget {
transition: opacity 0.4s ease 0.05s;
opacity: 0;
}
.ace_fade-fold-widgets:hover .ace_fold-widget {
transition: opacity 0.05s ease 0.05s;
opacity: 1;
}
.ace_underline {
text-decoration: underline;
}
.ace_bold {
font-weight: bold;
}
.ace_nobold .ace_bold {
font-weight: normal;
}
.ace_italic {
font-style: italic;
}
.ace_error-marker {
background-color: rgba(255, 0, 0, 0.2);
position: absolute;
z-index: 9;
}
.ace_highlight-marker {
background-color: rgba(255, 255, 0, 0.2);
position: absolute;
z-index: 8;
}
.ace_mobile-menu {
position: absolute;
line-height: 1.5;
border-radius: 4px;
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
background: white;
box-shadow: 1px 3px 2px grey;
border: 1px solid #dcdcdc;
color: black;
}
.ace_dark > .ace_mobile-menu {
background: #333;
color: #ccc;
box-shadow: 1px 3px 2px grey;
border: 1px solid #444;
}
.ace_mobile-button {
padding: 2px;
cursor: pointer;
overflow: hidden;
}
.ace_mobile-button:hover {
background-color: #eee;
opacity: 1;
}
.ace_mobile-button:active {
background-color: #ddd;
}
.ace_placeholder {
position: relative;
font-family: arial;
transform: scale(0.9);
transform-origin: left;
white-space: pre;
opacity: 0.7;
margin: 0 10px;
z-index: 1;
}
.ace_ghost_text {
opacity: 0.5;
font-style: italic;
}
.ace_ghost_text_container > div {
white-space: pre;
}
.ghost_text_line_wrapped::after {
content: '↩';
position: absolute;
}
.ace_lineWidgetContainer.ace_ghost_text {
margin: 0px 4px;
}
.ace_screenreader-only {
position: absolute;
left: -10000px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
}
.ace_hidden_token {
display: none;
}
/*# sourceURL=ace/css/ace_editor.css */
</style>
<style id="ace_scrollbar.css">
.ace_editor > .ace_sb-v div,
.ace_editor > .ace_sb-h div {
position: absolute;
background: rgba(128, 128, 128, 0.6);
-moz-box-sizing: border-box;
box-sizing: border-box;
border: 1px solid #bbb;
border-radius: 2px;
z-index: 8;
}
.ace_editor > .ace_sb-v,
.ace_editor > .ace_sb-h {
position: absolute;
z-index: 6;
background: none;
overflow: hidden !important;
}
.ace_editor > .ace_sb-v {
z-index: 6;
right: 0;
top: 0;
width: 12px;
}
.ace_editor > .ace_sb-v div {
z-index: 8;
right: 0;
width: 100%;
}
.ace_editor > .ace_sb-h {
bottom: 0;
left: 0;
height: 12px;
}
.ace_editor > .ace_sb-h div {
bottom: 0;
height: 100%;
}
.ace_editor > .ace_sb_grabbed {
z-index: 8;
background: #000;
}
/*# sourceURL=ace/css/ace_scrollbar.css */
</style>
<style data-emotion="css-global" data-s=""></style>
<meta name="emotion-insertion-point" content="" />
<style data-emotion="css" data-s=""></style>
<link
rel="icon"
href="https://www.codechef.com/favicon.ico"
type="image/x-icon"
/>
<title>Tactical Conversion Practice Coding Problem</title>
<meta charset="utf-8" />
<meta
name="description"
content="Improve your coding skills with our Tactical Conversion practice problem! Challenge yourself and solve Tactical Conversion practical programming coding exercises."
/>
<meta
name="og:image"
content="https://cdn.codechef.com/sites/all/themes/abessive/cc-logo.png"
/>
<meta name="og:type" content="website" />
<meta name="theme-color" content="#000000" />
<meta name="robots" content="noindex, nofollow" />
<link rel="canonical" href="https://www.codechef.com/problems/P4209" />
<script
type="text/javascript"
async=""
src="https://www.google-analytics.com/analytics.js"
></script>
<script
type="text/javascript"
async=""
src="https://www.googletagmanager.com/gtag/js?id=G-C8RQQ7NY18&amp;cx=c&amp;gtm=4e5am0"
></script>
<script
async=""
src="https://www.googletagmanager.com/gtm.js?id=GTM-TV5X2M"
></script>
<script
async=""
src="https://accounts.google.com/gsi/client"
type="text/javascript"
></script>
<link
rel="prefetch"
href="https://cdn.codechef.com/images/cc-logo.svg"
as="image"
type="image/svg+xml"
/>
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&amp;family=Roboto+Mono:wght@100;300;400;500;700&amp;family=Fustat:wght@100;200;300;400;500;600;700;800;900&amp;display=swap"
rel="stylesheet"
/>
<!-- Initial loader classes -->
<style>
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.loadingIcon {
border: 0.4em solid rgba(0, 0, 0, 0);
border-top: 0.4em solid #2a67b1;
border-radius: 50%;
width: 4em;
height: 4em;
animation: spin 1s linear infinite;
color: #2a67b1;
}
.loading {
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: rgb(108, 116, 134);
background: inherit;
z-index: 100;
position: absolute;
}
.message {
padding: 16px;
text-align: center;
font-family: sans-serif;
}
/* Dark Mode styles */
.loader-icon-dark {
border-top: 0.4em solid #5780b0;
}
.dark {
background: #1d1e23;
color: rgb(255 255 255 / 60%);
}
</style>
<script type="text/javascript">
const languageIdeRoutes = [
'python',
'java',
'cpp',
'c',
'pypy',
'csharp',
'javascript',
'go',
'php',
'kotlin',
'rust',
'r',
'sql',
'html',
'oracledb',
'react'
]
if (
['pro', 'contests'].includes(
window.location.pathname.split('/').filter(Boolean).pop()
) ||
[
'learn',
'games',
'viewsolution',
'submit',
'practice',
'dashboard',
'getting-started',
'college-program',
'practice-old',
'roadmap',
'blogs',
'roadmaps',
'blogs',
'skill-tests',
'ide',
'mobile'
].includes(window.location.pathname.split('/').filter(Boolean)[0]) ||
['submit'].includes(
window.location.pathname.split('/').filter(Boolean)[1]
) ||
['status'].includes(
window.location.pathname
.split('/')
.filter(Boolean)
.slice(-2, -1)
.pop()
) ||
[
// Regex to match the practice and contest submit routes
/^\/(submit\/([A-Z]+[A-Z0-9_]*)+|problems\/([A-Z]+[A-Z0-9_]*)+|([A-Z]+[A-Z0-9_]*)+\/submit\/([A-Z]+[A-Z0-9_]*)+|([A-Z]+[A-Z0-9_]*)+\/problems\/([A-Z]+[A-Z0-9_]*)+)$/
].some((regexp) => regexp.test(window.location.pathname)) ||
languageIdeRoutes.some((lang) =>
window.location.pathname.includes(`${lang}-online-compiler`)
)
) {
const metaElement = document.createElement('meta')
metaElement.setAttribute('name', 'viewport')
metaElement.setAttribute(
'content',
'width=device-width, initial-scale=1'
)
document.head.appendChild(metaElement)
}
;(function (w, d, s, l, i) {
w[l] = w[l] || []
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
})
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : ''
j.async = true
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl
f.parentNode.insertBefore(j, f)
})(window, document, 'script', 'dataLayer', 'GTM-TV5X2M')
</script>
<script
type="module"
crossorigin=""
src="/build/react2/assets/index-DUPfMjw9.js"
></script>
<link
rel="modulepreload"
crossorigin=""
href="/build/react2/assets/__commonjsHelpers__-BosuxZz1.js"
/>
<link
rel="modulepreload"
crossorigin=""
href="/build/react2/assets/vendor-mui-DN6FwYT-.js"
/>
<link
rel="modulepreload"
crossorigin=""
href="/build/react2/assets/vendor-sweetalert2-CokzRhbv.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/index-LeVhyc-_.css"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style data-emotion="css" data-s=""></style>
<style type="text/css">
.alert-box p {
font-size: 16px;
}
</style>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/Hints-zGzgG94F.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/MarkdownPreview-DTa4sJaq.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/server.browser-DTCjZsQK.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/MarkdownPreviewLite-BbbxMKsz.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/vendor-react-markdown-QCGSnXg2.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/vendor-katex--NZxydnM.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/vendor-prismjs-DNZw6GtJ.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/MarkdownPreviewLite-C7tWntZm.css"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/katex-DSyo5k8n.css"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/prism-vs-dark-B-GUGs9_.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/CodeVisualizer-CjtS7HTh.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/CodeVisualizer-LtaI2zlQ.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/FeatureToolTip-D1hv6ejZ.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/FeatureToolTip-VveDvckU.css"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/MarkdownPreview-BOwe2Icf.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/LearningContest-BgX08Eoh.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/Constant-Cd-YD7MD.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/vendor-ace-1bCY7ZOD.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/LearningContest-ChzRaBvn.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/Badges-C7ty5AuB.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/Badges-BtA0P8JH.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/FileSaver.min-B6ghjeiv.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/Constants-Ci9azsM5.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/HorizontalTabPanel-Je8w2HZI.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/HorizontalTabPanel-D4piIELt.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/BreadCrumbs-DnkoKVrC.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/BreadCrumbs-9soXbGl9.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/SubmitResult-DX6PGAmK.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/index.es-DfXXNc0-.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/Constants-CsOP_ErY.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/SubmitResult-DmfLSgsO.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/InputFields-5Pq5F-g5.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/CheckBox-CfbU7c8T.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/CheckBox-sUUsLIgT.css"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/InputFields-pCVQAfih.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/UserStar--wP-SRkl.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/UserStar-DVebVVJp.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/SelectDropdown-CbBq0aVl.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/SelectDropdown-DO-u6-Ti.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/FeedbackComponent-DvdP5tjN.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/FeedbackComponent-ClgYIttc.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/index-D6q2CRoJ.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/vendor-mui-datatables-Ck0WFL1C.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/MobileHorizontalTab-CZ2t8Nol.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/Bookmark-DXaGz8u6.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/Bookmark-CG3kOXzE.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/MySubmissions-DbmtpfuT.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/TablePagination-D9ZyxwuV.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/TablePagination-CLYgiw_w.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/PremiumBanners-CrFs0okE.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/PremiumBanners-BbLQiGaF.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/DataGrid-BSXV-Fps.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/index.es-CLmToPHp.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/MySubmissions-DN-wAxrh.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/TopBanner.module--qQpYJq9.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/TopBanner-CKeyNyjs.css"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/ProblemSolution-DS5yFSpf.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/VideoPlayer-Bu8t9Hfp.js"
/>
<link
rel="modulepreload"
as="script"
crossorigin=""
href="/build/react2/assets/ProblemSolution.module-B8G4Vgx3.js"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/ProblemSolution-Bxg2lSIZ.css"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/ProblemSolution-DNsXnEDg.css"
/>
<link
rel="stylesheet"
crossorigin=""
href="/build/react2/assets/Hints-B7OcHRda.css"
/>
<link
id="googleidentityservice"
type="text/css"
media="all"
href="https://accounts.google.com/gsi/style"
rel="stylesheet"
/>
<meta
http-equiv="origin-trial"
content="A8o5T4MyEkRZqLA9WeG2XTFdV5tsX2Prg85xyQ+RL1btVuybB1K/EQ+7JUsPK+J32oBMTnsoF9B4A+qTlL6efgQAAABweyJvcmlnaW4iOiJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb206NDQzIiwiZmVhdHVyZSI6IkZlZENtQnV0dG9uTW9kZSIsImV4cGlyeSI6MTc0NDY3NTIwMCwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ=="
/>
<style id="googleidentityservice_button_styles">
.qJTHM {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
color: #202124;
direction: ltr;
-webkit-touch-callout: none;
font-family: 'Roboto-Regular', arial, sans-serif;
-webkit-font-smoothing: antialiased;
font-weight: 400;
margin: 0;
overflow: hidden;
-webkit-text-size-adjust: 100%;
}
.ynRLnc {
left: -9999px;
position: absolute;
top: -9999px;
}
.L6cTce {
display: none;
}
.bltWBb {
overflow-wrap: break-word;
word-break: break-word;
}
.hSRGPd {
color: #1a73e8;
cursor: pointer;
font-weight: 500;
text-decoration: none;
}
.Bz112c-W3lGp {
height: 16px;
width: 16px;
}
.Bz112c-E3DyYd {
height: 20px;
width: 20px;
}
.Bz112c-r9oPif {
height: 24px;
width: 24px;
}
.Bz112c-u2z5K {
height: 36px;
width: 36px;
}
.Bz112c-uaxL4e {
border-radius: 10px;
}
.LgbsSe-Bz112c {
display: block;
}
.S9gUrf-YoZ4jf {
border: none;
margin: 0;
padding: 0;
}
.S9gUrf-YoZ4jf * {
border: none;
margin: 0;
padding: 0;
}
.fFW7wc-ibnC6b > .aZ2wEe > div {
border-color: #4285f4;
}
.P1ekSe-ZMv3u {
transition: height linear 0.2s;
}
.P1ekSe-ZMv3u > div:nth-child(1) {
background-color: #1a73e8 !important;
transition: width linear 0.3s;
}
.P1ekSe-ZMv3u > div:nth-child(2) {
background-image:
linear-gradient(
to right,
rgba(255, 255, 255, 0.7),
rgba(255, 255, 255, 0.7)
),
linear-gradient(to right, #1a73e8, #1a73e8) !important;
}
.P1ekSe-ZMv3u > div:nth-child(3) {
background-image:
linear-gradient(
to right,
rgba(255, 255, 255, 0.7),
rgba(255, 255, 255, 0.7)
),
linear-gradient(to right, #1a73e8, #1a73e8) !important;
}
.haAclf {
display: inline-block;
}
.nsm7Bb-HzV7m-LgbsSe {
border-radius: 4px;
-moz-box-sizing: border-box;
box-sizing: border-box;
transition:
background-color 0.218s,
border-color 0.218s;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
-webkit-appearance: none;
background-color: #fff;
background-image: none;
border: 1px solid #dadce0;
color: #3c4043;
cursor: pointer;
font-family: 'Google Sans', arial, sans-serif;
font-size: 14px;
height: 40px;
letter-spacing: 0.25px;
outline: none;
overflow: hidden;
padding: 0 12px;
position: relative;
text-align: center;
vertical-align: middle;
white-space: nowrap;
width: auto;
}
@media screen and (-ms-high-contrast: active) {
.nsm7Bb-HzV7m-LgbsSe {
border: 2px solid windowText;
color: windowText;
}
}
@media screen and (preferes-contrast: more) {
.nsm7Bb-HzV7m-LgbsSe {
color: #000;
}
}
.nsm7Bb-HzV7m-LgbsSe.pSzOP-SxQuSe {
font-size: 14px;
height: 32px;
letter-spacing: 0.25px;
padding: 0 10px;
}
.nsm7Bb-HzV7m-LgbsSe.purZT-SxQuSe {
font-size: 11px;
height: 20px;
letter-spacing: 0.3px;
padding: 0 8px;
}
.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe {
padding: 0;
width: 40px;
}
.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe.pSzOP-SxQuSe {
width: 32px;
}
.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe.purZT-SxQuSe {
width: 20px;
}
.nsm7Bb-HzV7m-LgbsSe.JGcpL-RbRzK {
border-radius: 20px;
}
.nsm7Bb-HzV7m-LgbsSe.JGcpL-RbRzK.pSzOP-SxQuSe {
border-radius: 16px;
}
.nsm7Bb-HzV7m-LgbsSe.JGcpL-RbRzK.purZT-SxQuSe {
border-radius: 10px;
}
.nsm7Bb-HzV7m-LgbsSe.MFS4be-Ia7Qfc {
border: none;
color: #fff;
}
.nsm7Bb-HzV7m-LgbsSe.MFS4be-v3pZbf-Ia7Qfc {
background-color: #1a73e8;
}
.nsm7Bb-HzV7m-LgbsSe.MFS4be-JaPV2b-Ia7Qfc {
background-color: #202124;
color: #e8eaed;
}
@media screen and (prefers-contrast: more) {
.nsm7Bb-HzV7m-LgbsSe.MFS4be-JaPV2b-Ia7Qfc {
color: #fff;
}
}
.nsm7Bb-HzV7m-LgbsSe .nsm7Bb-HzV7m-LgbsSe-Bz112c {
height: 18px;
margin-right: 8px;
min-width: 18px;
width: 18px;
}
.nsm7Bb-HzV7m-LgbsSe.pSzOP-SxQuSe .nsm7Bb-HzV7m-LgbsSe-Bz112c {
height: 14px;
min-width: 14px;
width: 14px;
}
.nsm7Bb-HzV7m-LgbsSe.purZT-SxQuSe .nsm7Bb-HzV7m-LgbsSe-Bz112c {
height: 10px;
min-width: 10px;
width: 10px;
}
.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-Bz112c {
margin-left: 8px;
margin-right: -4px;
}
.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe .nsm7Bb-HzV7m-LgbsSe-Bz112c {
margin: 0;
padding: 10px;
}
.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe.pSzOP-SxQuSe
.nsm7Bb-HzV7m-LgbsSe-Bz112c {
padding: 8px;
}
.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe.purZT-SxQuSe
.nsm7Bb-HzV7m-LgbsSe-Bz112c {
padding: 4px;
}
.nsm7Bb-HzV7m-LgbsSe .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
display: -moz-box;
display: flex;
-moz-box-pack: center;
justify-content: center;
-moz-box-align: center;
align-items: center;
background-color: #fff;
height: 36px;
margin-left: -10px;
margin-right: 12px;
min-width: 36px;
width: 36px;
}
.nsm7Bb-HzV7m-LgbsSe
.nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf
.nsm7Bb-HzV7m-LgbsSe-Bz112c,
.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe
.nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf
.nsm7Bb-HzV7m-LgbsSe-Bz112c {
margin: 0;
padding: 0;
}
.nsm7Bb-HzV7m-LgbsSe.pSzOP-SxQuSe .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf {
height: 28px;
margin-left: -8px;
margin-right: 10px;
min-width: 28px;
width: 28px;
}
.nsm7Bb-HzV7m-LgbsSe.purZT-SxQuSe .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf {
height: 16px;
margin-left: -6px;
margin-right: 8px;
min-width: 16px;
width: 16px;
}
.nsm7Bb-HzV7m-LgbsSe.Bz112c-LgbsSe .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf {
border-radius: 3px;
margin-left: 2px;
margin-right: 0;
padding: 0;
}
.nsm7Bb-HzV7m-LgbsSe.JGcpL-RbRzK .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf {
border-radius: 18px;
}
.nsm7Bb-HzV7m-LgbsSe.pSzOP-SxQuSe.JGcpL-RbRzK
.nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf {
border-radius: 14px;
}
.nsm7Bb-HzV7m-LgbsSe.purZT-SxQuSe.JGcpL-RbRzK
.nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf {
border-radius: 8px;
}
.nsm7Bb-HzV7m-LgbsSe .nsm7Bb-HzV7m-LgbsSe-bN97Pc-sM5MNb {
display: -moz-box;
display: flex;
-moz-box-align: center;
align-items: center;
-moz-box-orient: horizontal;
-moz-box-direction: normal;
flex-direction: row;
-moz-box-pack: justify;
justify-content: space-between;
flex-wrap: nowrap;
height: 100%;
position: relative;
width: 100%;
}
.nsm7Bb-HzV7m-LgbsSe .oXtfBe-l4eHX {
-moz-box-pack: center;
justify-content: center;
}
.nsm7Bb-HzV7m-LgbsSe .nsm7Bb-HzV7m-LgbsSe-BPrWId {
-moz-box-flex: 1;
flex-grow: 1;
font-family: 'Google Sans', arial, sans-serif;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: top;
}
.nsm7Bb-HzV7m-LgbsSe.purZT-SxQuSe .nsm7Bb-HzV7m-LgbsSe-BPrWId {
font-weight: 300;
}
.nsm7Bb-HzV7m-LgbsSe .oXtfBe-l4eHX .nsm7Bb-HzV7m-LgbsSe-BPrWId {
-moz-box-flex: 0;
flex-grow: 0;
}
.nsm7Bb-HzV7m-LgbsSe .nsm7Bb-HzV7m-LgbsSe-MJoBVe {
transition: background-color 0.218s;
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0;
}
.nsm7Bb-HzV7m-LgbsSe:hover,
.nsm7Bb-HzV7m-LgbsSe:focus {
box-shadow: none;
border-color: rgb(210, 227, 252);
outline: none;
}
.nsm7Bb-HzV7m-LgbsSe:focus-within {
outline: 2px solid #00639b;
border-color: transparent;
}
.nsm7Bb-HzV7m-LgbsSe:hover .nsm7Bb-HzV7m-LgbsSe-MJoBVe {
background: rgba(66, 133, 244, 0.08);
}
.nsm7Bb-HzV7m-LgbsSe:active .nsm7Bb-HzV7m-LgbsSe-MJoBVe,
.nsm7Bb-HzV7m-LgbsSe:focus .nsm7Bb-HzV7m-LgbsSe-MJoBVe {
background: rgba(66, 133, 244, 0.1);
}
.nsm7Bb-HzV7m-LgbsSe.MFS4be-Ia7Qfc:hover .nsm7Bb-HzV7m-LgbsSe-MJoBVe {
background: rgba(255, 255, 255, 0.24);
}
.nsm7Bb-HzV7m-LgbsSe.MFS4be-Ia7Qfc:active .nsm7Bb-HzV7m-LgbsSe-MJoBVe,
.nsm7Bb-HzV7m-LgbsSe.MFS4be-Ia7Qfc:focus .nsm7Bb-HzV7m-LgbsSe-MJoBVe {
background: rgba(255, 255, 255, 0.32);
}
.nsm7Bb-HzV7m-LgbsSe .n1UuX-DkfjY {
border-radius: 50%;
display: -moz-box;
display: flex;
height: 20px;
margin-left: -4px;
margin-right: 8px;
min-width: 20px;
width: 20px;
}
.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-BPrWId {
font-family: 'Roboto';
font-size: 12px;
text-align: left;
}
.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-BPrWId .ssJRIf,
.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-BPrWId .K4efff .fmcmS {
overflow: hidden;
text-overflow: ellipsis;
}
.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-BPrWId .K4efff {
display: -moz-box;
display: flex;
-moz-box-align: center;
align-items: center;
color: #5f6368;
fill: #5f6368;
font-size: 11px;
font-weight: 400;
}
.nsm7Bb-HzV7m-LgbsSe.jVeSEe.MFS4be-Ia7Qfc
.nsm7Bb-HzV7m-LgbsSe-BPrWId
.K4efff {
color: #e8eaed;
fill: #e8eaed;
}
@media screen and (prefers-contrast: more) {
.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-BPrWId .K4efff,
.nsm7Bb-HzV7m-LgbsSe.jVeSEe.MFS4be-Ia7Qfc
.nsm7Bb-HzV7m-LgbsSe-BPrWId
.K4efff {
color: #000;
fill: #000;
}
}
.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-BPrWId .K4efff .Bz112c {
height: 18px;
margin: -3px -3px -3px 2px;
min-width: 18px;
width: 18px;
}
.nsm7Bb-HzV7m-LgbsSe.jVeSEe .nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
margin-left: 12px;
margin-right: -10px;
}
.nsm7Bb-HzV7m-LgbsSe.jVeSEe.JGcpL-RbRzK
.nsm7Bb-HzV7m-LgbsSe-Bz112c-haAclf {
border-radius: 18px;
}
.L5Fo6c-sM5MNb {
border: 0;
display: block;
left: 0;
position: relative;
top: 0;
}
.L5Fo6c-bF1uUb {
border-radius: 4px;
bottom: 0;
cursor: pointer;
left: 0;
position: absolute;
right: 0;
top: 0;
}
.L5Fo6c-bF1uUb:focus {
border: none;
outline: none;
}
sentinel {
}
</style>
<style data-jss="" data-meta="makeStyles">
.jss25 {
padding: 0;
min-height: fit-content;
}
.jss25.jss28 {
min-height: fit-content;
}
.jss26 {
margin: 0;
}
.jss26.jss28 {
margin: 0;
}
.jss27 {
padding: 0;
margin-right: 0;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/ace-builds@1.4.14/src-noconflict/mode-plain_text.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ace-builds@1.4.14/src-noconflict/theme-tomorrow_night.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ace-builds@1.4.14/src-noconflict/snippets/python.js"></script>
<script
type="text/javascript"
async=""
src="https://googleads.g.doubleclick.net/pagead/viewthroughconversion/16598187415/?random=1761365603554&amp;cv=11&amp;fst=1761365603554&amp;bg=ffffff&amp;guid=ON&amp;async=1&amp;en=gtag.config&amp;gtm=45je5am0v879754718z871598775za200zb71598775zd71598775xec&amp;gcd=13l3l3l3l1l1&amp;dma=0&amp;tag_exp=101509157~103116026~103200004~103233427~104527906~104528500~104573694~104684208~104684211~104948813~105322304~115480709~115938465~115938469~116217636~116217638&amp;u_w=683&amp;u_h=384&amp;url=https%3A%2F%2Fwww.codechef.com%2Fproblems%2FP4209&amp;ref=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dcodechef&amp;frm=0&amp;tiba=Tactical%20Conversion%20Practice%20Coding%20Problem&amp;hn=www.googleadservices.com&amp;npa=0&amp;pscdl=noapi&amp;auid=1606972950.1761365603&amp;data=event%3Dgtag.config&amp;rfmt=3&amp;fmt=4"
></script>
<script src="https://cdn.jsdelivr.net/npm/ace-builds@1.4.14/src-noconflict/mode-c_cpp.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ace-builds@1.4.14/src-noconflict/snippets/c_cpp.js"></script>
</head>
<body style="background: #1d1e23">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root" class="no-print">
<div style="background: rgb(29, 30, 35)">
<div
aria-hidden="true"
class="MuiBackdrop-root _backdrop_pm713_1 undefined css-11m57ox"
style="opacity: 0; visibility: hidden"
>
<span
class="MuiLinearProgress-root MuiLinearProgress-colorPrimary MuiLinearProgress-indeterminate _progress_pm713_7 css-1bkwg0l"
role="progressbar"
><span
class="MuiLinearProgress-bar MuiLinearProgress-bar1 MuiLinearProgress-barColorPrimary MuiLinearProgress-bar1Indeterminate css-y6kna5"
></span
><span
class="MuiLinearProgress-bar MuiLinearProgress-bar2 MuiLinearProgress-barColorPrimary MuiLinearProgress-bar2Indeterminate css-mddmmv"
></span
></span>
</div>
<div
class="_pageContainer_1se0b_3 _dark_1se0b_9"
style="max-width: 100%"
>
<div style="display: block">
<div class="_problem-submit-page__container_c2pcj_2">
<div class="_problemBanner__container_a2x1m_314 _dark_a2x1m_126">
<div class="_navigate-button__container_a2x1m_725">
<div class="_navigation-left-wrapper_a2x1m_731">
<a
class="_backToPractice__box_a2x1m_663"
href="/practice-old"
aria-label="Back to practice old"
><div class="_icon__container_a2x1m_362">
<svg
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium _icon_a2x1m_347 css-q7mezt"
focusable="false"
aria-hidden="true"
viewBox="0 0 24 24"
data-testid="ArrowBackIcon"
>
<path
d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
></path>
</svg></div
></a>
<div
class="_difficulty-ratings__box_a2x1m_503 _dark_a2x1m_126"
>
<span>Difficulty:</span
><span class="_value_a2x1m_395 _dark_a2x1m_126"
>1626</span
>
</div>
<div
class="_darkModeContainer_2m751_2 _dark_2m751_2"
title="Switch to Light Mode"
style="margin-left: 0px"
>
<svg
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium _sunIcon_2m751_22 _dark_2m751_2 css-q7mezt"
focusable="false"
aria-hidden="true"
viewBox="0 0 24 24"
data-testid="WbSunnyIcon"
>
<path
d="m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM4 10.5H1v2h3zm9-9.95h-2V3.5h2zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5v2h3v-2zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m-1 16.95h2V19.5h-2zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41z"
></path>
</svg>
</div>
<div class="_expand__container_a2x1m_756 _dark_a2x1m_126">
Expand<span class="_icon__container_a2x1m_362"
><svg
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium _icon__downwards_a2x1m_379 css-q7mezt"
focusable="false"
aria-hidden="true"
viewBox="0 0 24 24"
data-testid="ChevronLeftIcon"
>
<path
d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
></path></svg
></span>
</div>
</div>
<div
class="_navigation-button__box_a2x1m_793 _problemPageNavigation__box_a2x1m_838"
>
<a
class="_previous__container_a2x1m_796"
href="/problems/ABCXOR"
><div class="_icon__container_a2x1m_362">
<svg
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium _icon_a2x1m_347 css-q7mezt"
focusable="false"
aria-hidden="true"
viewBox="0 0 24 24"
data-testid="ChevronLeftIcon"
>
<path
d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"
></path>
</svg>
</div>
<span>Prev</span></a
><a class="_next__container_a2x1m_816" href="/problems/RED0"
><span>Next</span>
<div class="_icon__container_a2x1m_362">
<svg
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium _icon_a2x1m_347 css-q7mezt"
focusable="false"
aria-hidden="true"
viewBox="0 0 24 24"
data-testid="ChevronRightIcon"
>
<path
d="M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
></path>
</svg></div
></a>
</div>
</div>
</div>
<div class="_submit__container_c2pcj_17 _dark_c2pcj_20">
<div class="_split__container_c2pcj_23 _dark_c2pcj_20">
<div
class="_tabs-wrapper__panel_c2pcj_29"
style="width: calc(50% - 5px)"
>
<div
class="_tabPanel_15j3k_2 _dark_15j3k_30 MuiBox-root css-0"
>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 notranslate css-vwhgwc"
style="
--Paper-shadow:
0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px 0px rgba(0, 0, 0, 0.14),
0px 1px 3px 0px rgba(0, 0, 0, 0.12);
"
>
<div
class="MuiTabs-root _tab__container_c2pcj_60 _dark_c2pcj_20 css-1fa633z"
>
<div
style="overflow: hidden; margin-bottom: 0px"
class="MuiTabs-scroller MuiTabs-fixed css-2xu61f"
>
<div
role="tablist"
class="MuiTabs-list MuiTabs-flexContainer css-17do188"
>
<button
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary Mui-selected _tab__title_c2pcj_40 _dark_c2pcj_20 css-u9647s"
tabindex="0"
type="button"
role="tab"
aria-selected="true"
id="vertical-tab-panel-0"
aria-controls="vertical-tab-panel-0"
>
<span class="MuiTab-wrapper"
>Statement</span
></button
><button
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary _tab__title_c2pcj_40 _dark_c2pcj_20 css-u9647s"
tabindex="-1"
type="button"
role="tab"
aria-selected="false"
id="vertical-tab-panel-1"
aria-controls="vertical-tab-panel-1"
>
<span class="MuiTab-wrapper"
>Submissions</span
></button
><button
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary _tab__title_c2pcj_40 _dark_c2pcj_20 css-u9647s"
tabindex="-1"
type="button"
role="tab"
aria-selected="false"
id="vertical-tab-panel-2"
aria-controls="vertical-tab-panel-2"
>
<span class="MuiTab-wrapper"
>Solution</span
></button
><button
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary _tab__title_c2pcj_40 _dark_c2pcj_20 css-u9647s"
tabindex="-1"
type="button"
role="tab"
aria-selected="false"
id="vertical-tab-panel-3"
aria-controls="vertical-tab-panel-3"
>
<span class="MuiTab-wrapper">Help</span>
</button>
</div>
<span
style="
left: 0px;
width: 160px;
background: rgb(90, 134, 220);
"
class="MuiTabs-indicator css-1bv7ie6"
></span>
</div>
</div>
</div>
<div
id="vertical-tab-panel-0"
aria-labelledby="vertical-tab-panel-0"
style="height: calc(-97px + 100vh)"
class="_tab__content_c2pcj_68 _dark_c2pcj_20"
>
<div class="MuiBox-root css-0">
<div
class="_problemStatement__container_10e0b_2 _dark_10e0b_20"
>
<div class="" style="display: block">
<div
class="_fullscreen__container_10e0b_87 _dark_10e0b_20"
>
<div
class="css-1eiukdk _fullscreen-clickable__container_10e0b_131"
aria-label="Go Fullscreen"
>
<span class="_icon__box_10e0b_147"
><i class="_fullscreen__icon_10e0b_159"></i
></span>
</div>
</div>
<hr
class="MuiDivider-root MuiDivider-fullWidth _fullscreen__divider_10e0b_188 _dark_10e0b_20 css-9k49o2"
/>
</div>
<div
class="_problem-statement__inner__container_10e0b_202"
style="display: flex"
>
<div
class="_learnRecommendationBlock_10e0b_218 _dark_10e0b_20"
>
<div class="_titleContainer_10e0b_239">
<div
class="_i_icon_10e0b_244 _dark_10e0b_20"
></div>
<div class="_blockTitle_10e0b_265">
Learn the building blocks of programming
languages
</div>
</div>
<div class="_blockDescription_10e0b_270">
Take our free programming courses and learn to
solve problems like these.
</div>
<a
class="_link_10e0b_102 _dark_10e0b_20 _hoverClass_2pyv4_10"
href="https://www.codechef.com/learn"
target="_blank"
rel="noopener noreferrer"
>Start Learning<span
class="_icon__container_10e0b_114"
><svg
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium _icon_10e0b_114 css-q7mezt"
focusable="false"
aria-hidden="true"
viewBox="0 0 24 24"
data-testid="CallMadeIcon"
>
<path
d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"
></path></svg></span
></a>
</div>
<div
id="problem-statement"
class="_problemBody_1llav_33 _dark_1llav_231 print"
>
<h3 class="notranslate">Tactical Conversion</h3>
<p>
You are given a <strong>binary</strong> string
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mi>S</mi></mrow
><annotation
encoding="application/x-tex"
>S</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6833em"
></span
><span
class="mord mathnormal"
style="margin-right: 0.05764em"
>S</span
></span
></span
></span
></span
>
of length
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mi>N</mi></mrow
><annotation
encoding="application/x-tex"
>N</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6833em"
></span
><span
class="mord mathnormal"
style="margin-right: 0.10903em"
>N</span
></span
></span
></span
></span
>, i.e. each character of
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mi>S</mi></mrow
><annotation
encoding="application/x-tex"
>S</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6833em"
></span
><span
class="mord mathnormal"
style="margin-right: 0.05764em"
>S</span
></span
></span
></span
></span
>
is either
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>0</mn></mrow
><annotation
encoding="application/x-tex"
>0</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">0</span></span
></span
></span
></span
>
or
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>1</mn></mrow
><annotation
encoding="application/x-tex"
>1</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">1</span></span
></span
></span
></span
>.
</p>
<p>
You would like to convert every character of
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mi>S</mi></mrow
><annotation
encoding="application/x-tex"
>S</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6833em"
></span
><span
class="mord mathnormal"
style="margin-right: 0.05764em"
>S</span
></span
></span
></span
></span
>
into
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>0</mn></mrow
><annotation
encoding="application/x-tex"
>0</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">0</span></span
></span
></span
></span
>.<br />
To achieve this, you can perform the following
operation:
</p>
<ul>
<li>
Choose an index
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mi>i</mi></mrow
><annotation
encoding="application/x-tex"
>i</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6595em"
></span
><span class="mord mathnormal"
>i</span
></span
></span
></span
></span
>
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><mo stretchy="false">(</mo
><mn>1</mn><mo></mo><mi>i</mi
><mo></mo><mi>N</mi
><mo stretchy="false"
>)</mo
></mrow
><annotation
encoding="application/x-tex"
>(1 \le i \le N)</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="
height: 1em;
vertical-align: -0.25em;
"
></span
><span class="mopen">(</span
><span class="mord">1</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel"></span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="
height: 0.7955em;
vertical-align: -0.136em;
"
></span
><span class="mord mathnormal"
>i</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel"></span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="
height: 1em;
vertical-align: -0.25em;
"
></span
><span
class="mord mathnormal"
style="margin-right: 0.10903em"
>N</span
><span class="mclose">)</span></span
></span
></span
></span
>
such that
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><msub
><mi>S</mi><mi>i</mi></msub
><mo>=</mo><mn>1</mn></mrow
><annotation
encoding="application/x-tex"
>S_i = 1</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="
height: 0.8333em;
vertical-align: -0.15em;
"
></span
><span class="mord"
><span
class="mord mathnormal"
style="margin-right: 0.05764em"
>S</span
><span class="msupsub"
><span class="vlist-t vlist-t2"
><span class="vlist-r"
><span
class="vlist"
style="height: 0.3117em"
><span
style="
top: -2.55em;
margin-left: -0.0576em;
margin-right: 0.05em;
"
><span
class="pstrut"
style="height: 2.7em"
></span
><span
class="sizing reset-size6 size3 mtight"
><span
class="mord mathnormal mtight"
>i</span
></span
></span
></span
><span class="vlist-s"
></span
></span
><span class="vlist-r"
><span
class="vlist"
style="height: 0.15em"
><span></span></span></span></span></span></span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel">=</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">1</span></span
></span
></span
></span
>, and change
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><msub
><mi>S</mi><mi>i</mi></msub
></mrow
><annotation
encoding="application/x-tex"
>S_i</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="
height: 0.8333em;
vertical-align: -0.15em;
"
></span
><span class="mord"
><span
class="mord mathnormal"
style="margin-right: 0.05764em"
>S</span
><span class="msupsub"
><span class="vlist-t vlist-t2"
><span class="vlist-r"
><span
class="vlist"
style="height: 0.3117em"
><span
style="
top: -2.55em;
margin-left: -0.0576em;
margin-right: 0.05em;
"
><span
class="pstrut"
style="height: 2.7em"
></span
><span
class="sizing reset-size6 size3 mtight"
><span
class="mord mathnormal mtight"
>i</span
></span
></span
></span
><span class="vlist-s"
></span
></span
><span class="vlist-r"
><span
class="vlist"
style="height: 0.15em"
><span></span></span></span></span></span></span></span></span></span
></span>
to
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>0</mn></mrow
><annotation
encoding="application/x-tex"
>0</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">0</span></span
></span
></span
></span
>.
</li>
</ul>
<p>
However, there is one restriction:<br />
You cannot perform two consecutive operations
on adjacent indices.<br />
That is, if you operate on the sequence of
indices
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><msub><mi>i</mi><mn>1</mn></msub
><mo separator="true">,</mo
><msub><mi>i</mi><mn>2</mn></msub
><mo separator="true">,</mo
><mo></mo
><mo separator="true">,</mo
><msub
><mi>i</mi><mi>k</mi></msub
></mrow
><annotation
encoding="application/x-tex"
>i_1, i_2, \ldots, i_k</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="
height: 0.854em;
vertical-align: -0.1944em;
"
></span
><span class="mord"
><span class="mord mathnormal"
>i</span
><span class="msupsub"
><span class="vlist-t vlist-t2"
><span class="vlist-r"
><span
class="vlist"
style="height: 0.3011em"
><span
style="
top: -2.55em;
margin-left: 0em;
margin-right: 0.05em;
"
><span
class="pstrut"
style="height: 2.7em"
></span
><span
class="sizing reset-size6 size3 mtight"
><span
class="mord mtight"
>1</span
></span
></span
></span
><span class="vlist-s"
></span
></span
><span class="vlist-r"
><span
class="vlist"
style="height: 0.15em"
><span></span></span></span></span></span></span
><span class="mpunct">,</span
><span
class="mspace"
style="margin-right: 0.1667em"
></span
><span class="mord"
><span class="mord mathnormal"
>i</span
><span class="msupsub"
><span class="vlist-t vlist-t2"
><span class="vlist-r"
><span
class="vlist"
style="height: 0.3011em"
><span
style="
top: -2.55em;
margin-left: 0em;
margin-right: 0.05em;
"
><span
class="pstrut"
style="height: 2.7em"
></span
><span
class="sizing reset-size6 size3 mtight"
><span
class="mord mtight"
>2</span
></span
></span
></span
><span class="vlist-s"
></span
></span
><span class="vlist-r"
><span
class="vlist"
style="height: 0.15em"
><span></span></span></span></span></span></span
><span class="mpunct">,</span
><span
class="mspace"
style="margin-right: 0.1667em"
></span
><span class="minner"></span
><span
class="mspace"
style="margin-right: 0.1667em"
></span
><span class="mpunct">,</span
><span
class="mspace"
style="margin-right: 0.1667em"
></span
><span class="mord"
><span class="mord mathnormal"
>i</span
><span class="msupsub"
><span class="vlist-t vlist-t2"
><span class="vlist-r"
><span
class="vlist"
style="height: 0.3361em"
><span
style="
top: -2.55em;
margin-left: 0em;
margin-right: 0.05em;
"
><span
class="pstrut"
style="height: 2.7em"
></span
><span
class="sizing reset-size6 size3 mtight"
><span
class="mord mathnormal mtight"
style="
margin-right: 0.03148em;
"
>k</span
></span
></span
></span
><span class="vlist-s"
></span
></span
><span class="vlist-r"
><span
class="vlist"
style="height: 0.15em"
><span></span></span></span></span></span></span></span></span></span></span
>, then for each
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><mn>1</mn><mo></mo><mi>j</mi
><mo>&lt;</mo><mi>k</mi></mrow
><annotation
encoding="application/x-tex"
>1 \le j \lt k</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="
height: 0.7804em;
vertical-align: -0.136em;
"
></span
><span class="mord">1</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel"></span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="
height: 0.854em;
vertical-align: -0.1944em;
"
></span
><span
class="mord mathnormal"
style="margin-right: 0.05724em"
>j</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel">&lt;</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="height: 0.6944em"
></span
><span
class="mord mathnormal"
style="margin-right: 0.03148em"
>k</span
></span
></span
></span
></span
>
the condition
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><mi mathvariant="normal"></mi
><msub><mi>i</mi><mi>j</mi></msub
><mo></mo
><msub
><mi>i</mi
><mrow
><mi>j</mi><mo>+</mo
><mn>1</mn></mrow
></msub
><mi mathvariant="normal"></mi
><mo>&gt;</mo><mn>1</mn></mrow
><annotation
encoding="application/x-tex"
>|i_j - i_{j+1}| \gt 1</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="
height: 1.0361em;
vertical-align: -0.2861em;
"
></span
><span class="mord"></span
><span class="mord"
><span class="mord mathnormal"
>i</span
><span class="msupsub"
><span class="vlist-t vlist-t2"
><span class="vlist-r"
><span
class="vlist"
style="height: 0.3117em"
><span
style="
top: -2.55em;
margin-left: 0em;
margin-right: 0.05em;
"
><span
class="pstrut"
style="height: 2.7em"
></span
><span
class="sizing reset-size6 size3 mtight"
><span
class="mord mathnormal mtight"
style="
margin-right: 0.05724em;
"
>j</span
></span
></span
></span
><span class="vlist-s"
></span
></span
><span class="vlist-r"
><span
class="vlist"
style="height: 0.2861em"
><span></span></span></span></span></span></span
><span
class="mspace"
style="margin-right: 0.2222em"
></span
><span class="mbin"></span
><span
class="mspace"
style="margin-right: 0.2222em"
></span></span
><span class="base"
><span
class="strut"
style="
height: 1.0361em;
vertical-align: -0.2861em;
"
></span
><span class="mord"
><span class="mord mathnormal"
>i</span
><span class="msupsub"
><span class="vlist-t vlist-t2"
><span class="vlist-r"
><span
class="vlist"
style="height: 0.3117em"
><span
style="
top: -2.55em;
margin-left: 0em;
margin-right: 0.05em;
"
><span
class="pstrut"
style="height: 2.7em"
></span
><span
class="sizing reset-size6 size3 mtight"
><span
class="mord mtight"
><span
class="mord mathnormal mtight"
style="
margin-right: 0.05724em;
"
>j</span
><span
class="mbin mtight"
>+</span
><span
class="mord mtight"
>1</span
></span
></span
></span
></span
><span class="vlist-s"
></span
></span
><span class="vlist-r"
><span
class="vlist"
style="height: 0.2861em"
><span></span></span></span></span></span></span
><span class="mord"></span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel">&gt;</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">1</span></span
></span
></span
></span
>
must hold.
</p>
<p>
Determine whether it is possible to make the
entire string consist of only zeros under
these conditions.
</p>
<div class="notranslate">
<h3>Input Format</h3>
<ul>
<li>
The first line of input contains a single
integer
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mi>T</mi></mrow
><annotation
encoding="application/x-tex"
>T</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6833em"
></span
><span
class="mord mathnormal"
style="margin-right: 0.13889em"
>T</span
></span
></span
></span
></span
>, denoting the number of test cases.
</li>
<li>
Each test case consists of two lines of
input:
<ul>
<li>
The first line contains a single
integer
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mi>N</mi></mrow
><annotation
encoding="application/x-tex"
>N</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6833em"
></span
><span
class="mord mathnormal"
style="
margin-right: 0.10903em;
"
>N</span
></span
></span
></span
></span
>
— the length of the binary string.
</li>
<li>
The second line contains the binary
string
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mi>S</mi></mrow
><annotation
encoding="application/x-tex"
>S</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6833em"
></span
><span
class="mord mathnormal"
style="
margin-right: 0.05764em;
"
>S</span
></span
></span
></span
></span
>
of length
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mi>N</mi></mrow
><annotation
encoding="application/x-tex"
>N</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6833em"
></span
><span
class="mord mathnormal"
style="
margin-right: 0.10903em;
"
>N</span
></span
></span
></span
></span
>, consisting only of characters
<code>0</code> and <code>1</code>.
</li>
</ul>
</li>
</ul>
</div>
<div class="notranslate">
<h3>Output Format</h3>
<p>
For each test case, output a single string
on a new line — <code>YES</code> if it is
possible to convert the entire string to all
zeros under the given rule, or
<code>NO</code> otherwise.
</p>
<p>
You may print each character of the string
in uppercase or lowercase (for example, the
strings <code>YES</code>, <code>yEs</code>,
<code>yes</code>, and <code>yeS</code> will
all be treated as identical).
</p>
</div>
<h3 class="notranslate">Constraints</h3>
<div
class="_html_code__block_1llav_174 notranslate"
>
<ul>
<li>
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><mn>1</mn><mo></mo><mi>T</mi
><mo></mo><mn>2</mn><mo></mo
><msup
><mn>10</mn><mn>5</mn></msup
></mrow
><annotation
encoding="application/x-tex"
>1 \leq T \leq 2\cdot
10^5</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="
height: 0.7804em;
vertical-align: -0.136em;
"
></span
><span class="mord">1</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel"></span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="
height: 0.8193em;
vertical-align: -0.136em;
"
></span
><span
class="mord mathnormal"
style="margin-right: 0.13889em"
>T</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel"></span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">2</span
><span
class="mspace"
style="margin-right: 0.2222em"
></span
><span class="mbin"></span
><span
class="mspace"
style="margin-right: 0.2222em"
></span></span
><span class="base"
><span
class="strut"
style="height: 0.8141em"
></span
><span class="mord">1</span
><span class="mord"
><span class="mord">0</span
><span class="msupsub"
><span class="vlist-t"
><span class="vlist-r"
><span
class="vlist"
style="height: 0.8141em"
><span
style="
top: -3.063em;
margin-right: 0.05em;
"
><span
class="pstrut"
style="
height: 2.7em;
"
></span
><span
class="sizing reset-size6 size3 mtight"
><span
class="mord mtight"
>5</span
></span
></span
></span
></span
></span
></span
></span
></span
></span
></span
></span
>
</li>
<li>
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><mn>1</mn><mo></mo><mi>N</mi
><mo></mo><mn>2</mn><mo></mo
><msup
><mn>10</mn><mn>5</mn></msup
></mrow
><annotation
encoding="application/x-tex"
>1 \leq N \leq 2\cdot
10^5</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="
height: 0.7804em;
vertical-align: -0.136em;
"
></span
><span class="mord">1</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel"></span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="
height: 0.8193em;
vertical-align: -0.136em;
"
></span
><span
class="mord mathnormal"
style="margin-right: 0.10903em"
>N</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel"></span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">2</span
><span
class="mspace"
style="margin-right: 0.2222em"
></span
><span class="mbin"></span
><span
class="mspace"
style="margin-right: 0.2222em"
></span></span
><span class="base"
><span
class="strut"
style="height: 0.8141em"
></span
><span class="mord">1</span
><span class="mord"
><span class="mord">0</span
><span class="msupsub"
><span class="vlist-t"
><span class="vlist-r"
><span
class="vlist"
style="height: 0.8141em"
><span
style="
top: -3.063em;
margin-right: 0.05em;
"
><span
class="pstrut"
style="
height: 2.7em;
"
></span
><span
class="sizing reset-size6 size3 mtight"
><span
class="mord mtight"
>5</span
></span
></span
></span
></span
></span
></span
></span
></span
></span
></span
></span
>
</li>
<li>
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mi>S</mi></mrow
><annotation
encoding="application/x-tex"
>S</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6833em"
></span
><span
class="mord mathnormal"
style="margin-right: 0.05764em"
>S</span
></span
></span
></span
></span
>
is a binary string.
</li>
<li>
The sum of
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mi>N</mi></mrow
><annotation
encoding="application/x-tex"
>N</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6833em"
></span
><span
class="mord mathnormal"
style="margin-right: 0.10903em"
>N</span
></span
></span
></span
></span
>
over all test cases won't exceed
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><mn>2</mn><mo></mo
><msup
><mn>10</mn><mn>5</mn></msup
></mrow
><annotation
encoding="application/x-tex"
>2\cdot 10^5</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">2</span
><span
class="mspace"
style="margin-right: 0.2222em"
></span
><span class="mbin"></span
><span
class="mspace"
style="margin-right: 0.2222em"
></span></span
><span class="base"
><span
class="strut"
style="height: 0.8141em"
></span
><span class="mord">1</span
><span class="mord"
><span class="mord">0</span
><span class="msupsub"
><span class="vlist-t"
><span class="vlist-r"
><span
class="vlist"
style="height: 0.8141em"
><span
style="
top: -3.063em;
margin-right: 0.05em;
"
><span
class="pstrut"
style="
height: 2.7em;
"
></span
><span
class="sizing reset-size6 size3 mtight"
><span
class="mord mtight"
>5</span
></span
></span
></span
></span
></span
></span
></span
></span
></span
></span
></span
>.
</li>
</ul>
</div>
<h3 class="notranslate">Sample 1:</h3>
<div
class="_input_output__table_1llav_186 notranslate"
>
<div class="_text_copy__container_1llav_190">
<div
class="_text_copy_1llav_190 _input_top__box_1llav_203"
>
<span>Input</span>
<div
style="pointer-events: all"
aria-label="Copy to clipboard"
class="undefined css-1eiukdk"
>
<span
class="_icon__box_10bs7_2 _dark_10bs7_27 undefined"
><i class="_copy__icon_10bs7_14"></i
></span>
</div>
</div>
<div
class="_text_copy_1llav_190 _ouput_top__box_1llav_206"
>
<span>Output</span>
<div
style="pointer-events: all"
aria-label="Copy to clipboard"
class="undefined css-1eiukdk"
>
<span
class="_icon__box_10bs7_2 _dark_10bs7_27 undefined"
><i class="_copy__icon_10bs7_14"></i
></span>
</div>
</div>
</div>
<div class="_values__container_1llav_209">
<div class="_values_1llav_209">
<pre>
5
2
00
3
001
3
101
3
111
2
11
</pre
>
</div>
<div class="_values_1llav_209">
<pre>
Yes
Yes
Yes
No
No</pre
>
</div>
</div>
</div>
<h3 class="notranslate">Explanation:</h3>
<div class="notranslate">
<p>
<strong
>Test case
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>1</mn></mrow
><annotation
encoding="application/x-tex"
>1</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">1</span></span
></span
></span
></span
>:</strong
>
No operations are needed.
</p>
<p>
<strong
>Test case
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>2</mn></mrow
><annotation
encoding="application/x-tex"
>2</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">2</span></span
></span
></span
></span
>:</strong
>
There is a single
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>1</mn></mrow
><annotation
encoding="application/x-tex"
>1</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">1</span></span
></span
></span
></span
>
at position
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>3</mn></mrow
><annotation
encoding="application/x-tex"
>3</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">3</span></span
></span
></span
></span
>.<br />
Simply perform one operation with
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><mi>i</mi><mo>=</mo
><mn>3</mn></mrow
><annotation
encoding="application/x-tex"
>i = 3</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6595em"
></span
><span class="mord mathnormal"
>i</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel">=</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">3</span></span
></span
></span
></span
>, and the string becomes
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>000</mn></mrow
><annotation
encoding="application/x-tex"
>000</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">000</span></span
></span
></span
></span
>
as desired.
</p>
<p>
<strong
>Test case
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>3</mn></mrow
><annotation
encoding="application/x-tex"
>3</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">3</span></span
></span
></span
></span
>:</strong
>
There are two
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>1</mn></mrow
><annotation
encoding="application/x-tex"
>1</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">1</span></span
></span
></span
></span
>'s, at positions
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>1</mn></mrow
><annotation
encoding="application/x-tex"
>1</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">1</span></span
></span
></span
></span
>
and
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>3</mn></mrow
><annotation
encoding="application/x-tex"
>3</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">3</span></span
></span
></span
></span
>.<br />
Perform one operation with
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><mi>i</mi><mo>=</mo
><mn>1</mn></mrow
><annotation
encoding="application/x-tex"
>i = 1</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6595em"
></span
><span class="mord mathnormal"
>i</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel">=</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">1</span></span
></span
></span
></span
>, and the next operation with
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><mi>i</mi><mo>=</mo
><mn>3</mn></mrow
><annotation
encoding="application/x-tex"
>i = 3</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6595em"
></span
><span class="mord mathnormal"
>i</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span
><span class="mrel">=</span
><span
class="mspace"
style="margin-right: 0.2778em"
></span></span
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">3</span></span
></span
></span
></span
>, and we're done.
</p>
<p>
<strong
>Test case
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>4</mn></mrow
><annotation
encoding="application/x-tex"
>4</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">4</span></span
></span
></span
></span
>:</strong
>
There are three ones, at positions
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow
><mn>1</mn
><mo separator="true">,</mo
><mn>2</mn
><mo separator="true">,</mo
><mn>3</mn></mrow
><annotation
encoding="application/x-tex"
>1, 2, 3</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="
height: 0.8389em;
vertical-align: -0.1944em;
"
></span
><span class="mord">1</span
><span class="mpunct">,</span
><span
class="mspace"
style="margin-right: 0.1667em"
></span
><span class="mord">2</span
><span class="mpunct">,</span
><span
class="mspace"
style="margin-right: 0.1667em"
></span
><span class="mord">3</span></span
></span
></span
></span
>.<br />
It's not possible to operate on all of them,
because:
</p>
<ul>
<li>
If our first operation is on index
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>1</mn></mrow
><annotation
encoding="application/x-tex"
>1</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">1</span></span
></span
></span
></span
>, the second operation cannot be index
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>2</mn></mrow
><annotation
encoding="application/x-tex"
>2</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">2</span></span
></span
></span
></span
>
and so must be index
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>3</mn></mrow
><annotation
encoding="application/x-tex"
>3</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">3</span></span
></span
></span
></span
>.<br />
But then after index
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>3</mn></mrow
><annotation
encoding="application/x-tex"
>3</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">3</span></span
></span
></span
></span
>
we cannot operate on index
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>2</mn></mrow
><annotation
encoding="application/x-tex"
>2</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">2</span></span
></span
></span
></span
>
anyway, so that index will continue to
contain a
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>1</mn></mrow
><annotation
encoding="application/x-tex"
>1</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">1</span></span
></span
></span
></span
>.
</li>
<li>
Similarly, the first operation being on
index
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>3</mn></mrow
><annotation
encoding="application/x-tex"
>3</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">3</span></span
></span
></span
></span
>
will leave us unable to operate on index
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>2</mn></mrow
><annotation
encoding="application/x-tex"
>2</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">2</span></span
></span
></span
></span
>.
</li>
<li>
Finally, if the first operation is on
index
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>2</mn></mrow
><annotation
encoding="application/x-tex"
>2</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">2</span></span
></span
></span
></span
>, then the second operation cannot be on
either index
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>1</mn></mrow
><annotation
encoding="application/x-tex"
>1</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">1</span></span
></span
></span
></span
>
or index
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>3</mn></mrow
><annotation
encoding="application/x-tex"
>3</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">3</span></span
></span
></span
></span
>
since they're both adjacent to it.
</li>
</ul>
<p>
Thus, there's no way to make everything
<span class="math math-inline"
><span class="katex"
><span class="katex-mathml"
><math
xmlns="http://www.w3.org/1998/Math/MathML"
><semantics
><mrow><mn>0</mn></mrow
><annotation
encoding="application/x-tex"
>0</annotation
></semantics
></math
></span
><span
class="katex-html"
aria-hidden="true"
><span class="base"
><span
class="strut"
style="height: 0.6444em"
></span
><span class="mord">0</span></span
></span
></span
></span
>.
</p>
</div>
<div></div>
</div>
<div class="_feedback__container_10e0b_460"></div>
<hr
class="MuiDivider-root MuiDivider-fullWidth _horizontal__divider_10e0b_322 _dark_10e0b_20 css-9k49o2"
/>
<div
class="_moreInfo__container_10e0b_463 _dark_10e0b_20"
>
<div class="_accordion_10e0b_466">
<div class="_accordion__summary_10e0b_470">
More Info
</div>
<div class="_accordion__details_10e0b_475">
<div>
<span class="_title_10e0b_239"
>Time limit</span
><span class="_value_10e0b_497"
>1 secs</span
>
</div>
<div>
<span class="_title_10e0b_239"
>Memory limit</span
><span class="_value_10e0b_497"
>1.5 GB</span
>
</div>
<div>
<span class="_title_10e0b_239"
>Source Limit</span
><span class="_value_10e0b_497"
>50000 Bytes</span
>
</div>
</div>
</div>
</div>
<hr
class="MuiDivider-root MuiDivider-fullWidth _horizontal__divider_10e0b_322 _dark_10e0b_20 css-9k49o2"
/>
<div
class="_contributorsInfo__container_10e0b_467 _dark_10e0b_20"
>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation1 MuiAccordion-root MuiAccordion-gutters _accordion_10e0b_466 css-1sh2c7f"
style="
--Paper-shadow:
0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px 0px rgba(0, 0, 0, 0.14),
0px 1px 3px 0px rgba(0, 0, 0, 0.12);
"
>
<h3 class="MuiAccordion-heading css-wnfue5">
<button
class="MuiButtonBase-root MuiAccordionSummary-root MuiAccordionSummary-gutters _accordion__summary_10e0b_470 css-ececx"
tabindex="0"
type="button"
aria-expanded="false"
>
<span
class="MuiAccordionSummary-content MuiAccordionSummary-contentGutters css-1b8uc0m"
><span>Contributors</span></span
><span
class="MuiAccordionSummary-expandIconWrapper css-f8wb7g"
><svg
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium _expandIcon_10e0b_646 _dark_10e0b_20 css-q7mezt"
focusable="false"
aria-hidden="true"
viewBox="0 0 24 24"
data-testid="ExpandMoreIcon"
>
<path
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
></path></svg
></span>
</button>
</h3>
<div
class="MuiCollapse-root MuiCollapse-vertical MuiCollapse-hidden css-abqyn"
style="min-height: 0px"
>
<div
class="MuiCollapse-wrapper MuiCollapse-vertical css-15830to"
>
<div
class="MuiCollapse-wrapperInner MuiCollapse-vertical css-9vd5ud"
>
<div
role="region"
class="MuiAccordion-region"
>
<div
class="MuiAccordionDetails-root _accordion__details_10e0b_475 css-l9xe8y"
>
<div>
<span class="_title_10e0b_239"
>Author(s)</span
>
<div
class="_usernamesContainer_10e0b_492"
>
<a
class="_value_10e0b_497 _hoverClass_2pyv4_10"
href="https://www.codechef.com/users/archit_adm"
target="_blank"
rel="noopener noreferrer"
>archit_adm</a
>
</div>
</div>
<div>
<span class="_title_10e0b_239"
>Tester(s)</span
>
<div
class="_usernamesContainer_10e0b_492"
>
<a
class="_value_10e0b_497 _hoverClass_2pyv4_10"
href="https://www.codechef.com/users/kingmessi"
target="_blank"
rel="noopener noreferrer"
>kingmessi</a
>
</div>
</div>
<div>
<span class="_title_10e0b_239"
>Editorialist(s)</span
>
<div
class="_usernamesContainer_10e0b_492"
>
<a
class="_value_10e0b_497 _hoverClass_2pyv4_10"
href="https://www.codechef.com/users/iceknight1093"
target="_blank"
rel="noopener noreferrer"
>iceknight1093</a
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
hidden=""
id="vertical-tab-panel-1"
aria-labelledby="vertical-tab-panel-1"
style="height: calc(-97px + 100vh)"
class="_tab__content_c2pcj_68 _dark_c2pcj_20"
></div>
<div
hidden=""
id="vertical-tab-panel-2"
aria-labelledby="vertical-tab-panel-2"
style="height: calc(-97px + 100vh)"
class="_tab__content_c2pcj_68 _dark_c2pcj_20"
></div>
<div
hidden=""
id="vertical-tab-panel-3"
aria-labelledby="vertical-tab-panel-3"
style="height: calc(-97px + 100vh)"
class="_tab__content_c2pcj_68 _dark_c2pcj_20"
></div>
</div>
</div>
<div
class="gutter gutter-horizontal"
style="width: 10px"
></div>
<div
class="_ideWrapper__panel_c2pcj_83 _dark_c2pcj_20"
style="width: calc(50% - 5px)"
>
<div class="_ide_r2w6z_2 _dark_r2w6z_30 notranslate">
<div
class="_ide__container_r2w6z_6"
style="height: calc(-77px + 100vh)"
>
<div>
<div class="_ideHeader_1g5qp_14 _dark_1g5qp_55">
<div>
<div
class="MuiFormControl-root css-1qk38wv"
style="width: 156px"
>
<div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl _language__select_1g5qp_35 _dark_1g5qp_55 MuiSelect-root css-98ra8i"
>
<div
tabindex="0"
role="combobox"
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="language-select"
id="language-select"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input css-mp9f0v"
>
C++
</div>
<input
aria-invalid="false"
aria-hidden="true"
tabindex="-1"
class="MuiSelect-nativeInput css-147e5lo"
value="C++"
/><svg
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSelect-icon MuiSelect-iconOutlined css-1l3b12y"
focusable="false"
aria-hidden="true"
viewBox="0 0 24 24"
data-testid="ArrowDropDownIcon"
>
<path d="M7 10l5 5 5-5z"></path>
</svg>
<fieldset
aria-hidden="true"
class="MuiOutlinedInput-notchedOutline css-5v2ak0"
>
<legend class="css-w4cd9x">
<span
class="notranslate"
aria-hidden="true"
></span
>
</legend>
</fieldset>
</div>
</div>
</div>
<ul class="_settings_1fs8l_2 _dark_1fs8l_71">
<li>
<div
class="css-1eiukdk _icon__container_1fs8l_16"
aria-label="Format code"
>
<i class="_beautify__icon_1fs8l_29"></i>
</div>
</li>
<li>
<div
class="css-1eiukdk _icon__container_1fs8l_16"
aria-label="Download code"
>
<i class="_download__icon_1fs8l_35"></i>
</div>
</li>
<li>
<div
class="css-1eiukdk _icon__container_1fs8l_16"
aria-label="Reset code"
>
<i class="_reset__icon_1fs8l_41"></i>
</div>
</li>
<li>
<div
class="css-1eiukdk _icon__container_1fs8l_16"
aria-label="Settings"
>
<i class="_settings__icon_1fs8l_53"></i>
</div>
</li>
<li>
<div
class="css-1eiukdk _icon__container_1fs8l_16"
aria-label="Go fullscreen"
>
<i
class="_fullscreen__icon_1fs8l_59 _dark_1fs8l_71"
></i>
</div>
</li>
</ul>
</div>
<div
class="_ideEditorWrapper_1g5qp_175 _dark_1g5qp_55"
style="height: calc(-290px + 100vh)"
>
<div
aria-hidden="true"
class="MuiBackdrop-root _ide-overlay__backdrop_1g5qp_190 css-11m57ox"
style="
opacity: 0;
transition: opacity 195ms
cubic-bezier(0.4, 0, 0.2, 1);
visibility: hidden;
"
></div>
<div
id="submit-ide-v2"
style="
width: 500px;
height: 100%;
font-size: 14px;
"
class="ace_editor ace_hidpi _ide__editor_1g5qp_218 ace-tomorrow-night ace_dark"
>
<textarea
class="ace_text-input"
wrap="off"
autocorrect="off"
autocapitalize="none"
spellcheck="false"
style="
opacity: 0;
font-size: 1px;
height: 1px;
width: 1px;
transform: translate(46px, 35px);
"
aria-haspopup="false"
aria-autocomplete="both"
role="textbox"
aria-label="Cursor at row 1"
></textarea>
<div
class="ace_gutter"
aria-hidden="true"
style="left: 0px; width: 42px"
>
<div
class="ace_layer ace_gutter-layer ace_folding-enabled"
style="
height: 1000000px;
transform: translate(0px, 16px);
width: 42px;
"
>
<div
class="ace_gutter-cell ace_gutter-active-line"
style="height: 19px; top: 0px"
aria-hidden="true"
>
1<span
style="display: none"
tabindex="0"
></span
><span style="display: none" tabindex="0"
><span></span
></span>
</div>
<div
class="ace_gutter-cell"
style="height: 19px; top: 19px"
aria-hidden="true"
>
2<span
style="display: none"
tabindex="0"
></span
><span style="display: none" tabindex="0"
><span></span
></span>
</div>
<div
class="ace_gutter-cell"
style="height: 19px; top: 38px"
aria-hidden="true"
>
3<span
style="display: none"
tabindex="0"
></span
><span style="display: none" tabindex="0"
><span></span
></span>
</div>
<div
class="ace_gutter-cell"
style="height: 19px; top: 57px"
aria-hidden="false"
>
4<span
class="ace_fold-widget ace_start ace_open"
style="
height: 19px;
display: inline-block;
"
role="button"
tabindex="-1"
aria-label="Toggle code folding, rows 4 through 7"
aria-expanded="true"
title="Fold code"
></span
><span style="display: none" tabindex="0"
><span></span
></span>
</div>
<div
class="ace_gutter-cell"
style="height: 19px; top: 76px"
aria-hidden="true"
>
5<span
style="display: none"
tabindex="0"
></span
><span style="display: none" tabindex="0"
><span></span
></span>
</div>
<div
class="ace_gutter-cell"
style="height: 19px; top: 95px"
aria-hidden="true"
>
6<span
style="display: none"
tabindex="0"
></span
><span style="display: none" tabindex="0"
><span></span
></span>
</div>
<div
class="ace_gutter-cell"
style="height: 19px; top: 114px"
aria-hidden="true"
>
7<span
style="display: none"
tabindex="0"
></span
><span style="display: none" tabindex="0"
><span></span
></span>
</div>
<div
class="ace_gutter-cell"
style="height: 19px; top: 133px"
aria-hidden="true"
>
8<span
style="display: none"
tabindex="0"
></span
><span style="display: none" tabindex="0"
><span></span
></span>
</div>
</div>
</div>
<div
class="ace_scroller"
style="
line-height: 19px;
left: 42px;
right: 0px;
bottom: 0px;
"
>
<div
class="ace_content"
style="
transform: translate(0px, 16px);
width: 662px;
height: 563px;
"
>
<div class="ace_layer ace_print-margin-layer">
<div
class="ace_print-margin"
style="left: 681px; visibility: hidden"
></div>
</div>
<div class="ace_layer ace_marker-layer">
<div
style="
height: 19px;
top: 0px;
left: 0px;
right: 0px;
"
class="ace_active-line"
></div>
</div>
<div
class="ace_layer ace_text-layer"
style="
height: 1000000px;
margin: 0px 4px;
transform: translate(0px);
"
>
<div
style="height: 19px; top: 0px"
class="ace_line_group"
>
<div
class="ace_line"
style="height: 19px"
>
<span class="ace_keyword">#include</span
><span class="ace_constant ace_other">
&lt;bits/stdc++.h&gt;</span
>
</div>
</div>
<div
style="height: 19px; top: 19px"
class="ace_line_group"
>
<div
class="ace_line"
style="height: 19px"
>
<span class="ace_keyword ace_control"
>using</span
>
<span class="ace_keyword ace_operator"
>namespace</span
>
<span class="ace_identifier">std</span
><span
class="ace_punctuation ace_operator"
>;</span
>
</div>
</div>
<div
style="height: 19px; top: 38px"
class="ace_line_group"
>
<div
class="ace_line"
style="height: 19px"
></div>
</div>
<div
style="height: 19px; top: 57px"
class="ace_line_group"
>
<div
class="ace_line"
style="height: 19px"
>
<span class="ace_storage ace_type"
>int</span
>
<span class="ace_identifier">main</span
><span class="ace_paren ace_lparen"
>(</span
><span class="ace_paren ace_rparen"
>)</span
>
<span class="ace_paren ace_lparen"
>{</span
>
</div>
</div>
<div
style="height: 19px; top: 76px"
class="ace_line_group"
>
<div
class="ace_line"
style="height: 19px"
>
<span class="ace_comment"
>// your code goes here</span
>
</div>
</div>
<div
style="height: 19px; top: 95px"
class="ace_line_group"
>
<div
class="ace_line"
style="height: 19px"
></div>
</div>
<div
style="height: 19px; top: 114px"
class="ace_line_group"
>
<div
class="ace_line"
style="height: 19px"
>
<span class="ace_paren ace_rparen"
>}</span
>
</div>
</div>
<div
style="height: 19px; top: 133px"
class="ace_line_group"
>
<div
class="ace_line"
style="height: 19px"
></div>
</div>
</div>
<div class="ace_layer ace_marker-layer"></div>
<div
class="ace_layer ace_cursor-layer ace_hidden-cursors"
>
<div
class="ace_cursor"
style="
display: block;
transform: translate(4px);
width: 8px;
height: 19px;
"
></div>
</div>
</div>
</div>
<div
class="ace_scrollbar ace_scrollbar-v"
style="
display: none;
width: 20px;
height: 525px;
bottom: 0px;
"
>
<div
class="ace_scrollbar-inner"
style="width: 20px; height: 184px"
>
&nbsp;
</div>
</div>
<div
class="ace_scrollbar ace_scrollbar-h"
style="
display: none;
height: 20px;
left: 42px;
right: 0px;
width: 662px;
"
>
<div
class="ace_scrollbar-inner"
style="height: 20px; width: 662px"
>
&nbsp;
</div>
</div>
<div
style="
height: auto;
width: auto;
top: 0px;
left: 0px;
visibility: hidden;
position: absolute;
white-space: pre;
font: inherit;
overflow: hidden;
"
>
<div
style="
height: auto;
width: auto;
top: 0px;
left: 0px;
visibility: hidden;
position: absolute;
white-space: pre;
font: inherit;
overflow: visible;
"
>
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
</div>
<div
style="
height: auto;
width: auto;
top: 0px;
left: 0px;
visibility: hidden;
position: absolute;
white-space: pre;
font-style: inherit;
font-variant: inherit;
font-stretch: inherit;
font-size: inherit;
line-height: inherit;
font-family: inherit;
font-size-adjust: inherit;
font-kerning: inherit;
font-optical-sizing: inherit;
font-language-override: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
overflow: visible;
"
>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
</div>
</div>
<div
class="ace_tooltip"
style="display: none; pointer-events: auto"
role="tooltip"
></div>
</div>
</div>
</div>
<div class="_ide-execute__wrapper_r2w6z_20">
<div
class="_ideExecuteWrapperRef_yibw2_2 _dark_yibw2_12"
>
<div class="_ideExecuteWrapperComponents_yibw2_15">
<div
class="_testcaseContainer_yibw2_411 _dark_yibw2_12"
>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation1 MuiAccordion-root Mui-expanded MuiAccordion-gutters _accordion_yibw2_414 css-1sh2c7f"
style="
--Paper-shadow:
0px 2px 1px -1px rgba(0, 0, 0, 0.2),
0px 1px 1px 0px rgba(0, 0, 0, 0.14),
0px 1px 3px 0px rgba(0, 0, 0, 0.12);
"
>
<h3 class="MuiAccordion-heading css-wnfue5">
<button
class="MuiButtonBase-root MuiAccordionSummary-root jss25 Mui-expanded jss28 MuiAccordionSummary-gutters _accordion__summary_yibw2_419 css-3pzm2w"
tabindex="0"
type="button"
aria-expanded="true"
>
<span
class="MuiAccordionSummary-content jss26 Mui-expanded jss28 MuiAccordionSummary-contentGutters css-1b8uc0m"
><span
>Test against Custom Input</span
></span
><span
class="MuiAccordionSummary-expandIconWrapper Mui-expanded jss28 css-f8wb7g"
><svg
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium _expandMoreIcon_yibw2_737 _dark_yibw2_12 css-q7mezt"
focusable="false"
aria-hidden="true"
viewBox="0 0 24 24"
data-testid="ExpandMoreIcon"
>
<path
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
></path></svg
></span>
</button>
</h3>
<div
class="MuiCollapse-root MuiCollapse-vertical MuiCollapse-entered css-1cbf1l2"
style="min-height: 0px"
>
<div
class="MuiCollapse-wrapper MuiCollapse-vertical css-15830to"
>
<div
class="MuiCollapse-wrapperInner MuiCollapse-vertical css-9vd5ud"
>
<div
role="region"
class="MuiAccordion-region"
>
<div
class="MuiAccordionDetails-root _accordion__details_yibw2_425 css-l9xe8y"
>
<textarea
placeholder="Your program will run with no input"
style="
margin: 10px 0px;
resize: none;
height: 100px;
background: rgb(255, 255, 255);
border: 1px solid
rgb(232, 236, 244);
border-radius: 4px;
"
class="_textarea_yibw2_430"
>
5
2
00
3
001
3
101
3
111
2
11
</textarea
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div></div>
</div>
<div class="_runContainer_yibw2_125 _dark_yibw2_12">
<div class="_leftContainer_yibw2_155">
<div style="text-align: center">
<div
class="_codeVisualizer_yibw2_49 _dark_yibw2_12"
>
<i
class="_eyeIcon_yibw2_62 _dark_yibw2_12"
></i
><span class="_text_yibw2_94 _dark_yibw2_12"
>Visualize Code</span
>
</div>
</div>
</div>
<div class="_execute-btn-container_yibw2_215">
<div class="_execute-btn-actions_yibw2_238">
<button
type="button"
class="css-1eiukdk _compile__btn_yibw2_294"
id="compile_btn"
>
<svg
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium _btn__icon_yibw2_312 css-q7mezt"
focusable="false"
aria-hidden="true"
viewBox="0 0 24 24"
data-testid="ArrowRightIcon"
>
<path d="m10 17 5-5-5-5z"></path></svg
><span class="_btn__text_yibw2_317"
>Run</span
></button
><button
type="button"
id="submit_btn"
class="css-1eiukdk _submit__btn_yibw2_333 _dark_yibw2_12"
>
Submit
</button>
</div>
</div>
</div>
<div></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
// Payment Scripts
if (
['pro', 'getting-started', 'dashboard', 'roadmap'].includes(
window.location.pathname.split('/')[1]
)
) {
const razorPay = document.createElement('script')
razorPay.setAttribute(
'src',
'https://checkout.razorpay.com/v1/checkout.js'
)
document.head.appendChild(razorPay)
// const instamojo = document.createElement('script');
// instamojo.setAttribute('src', 'https://js.instamojo.com/v1/checkout.js');
// document.head.appendChild(instamojo);
}
const scriptElement = document.createElement('script')
scriptElement.setAttribute(
'src',
'/sites/all/modules/codechef_alerts/codechef_alerts.js?v=649c43b6894169b33b5557aa0374459d'
)
scriptElement.setAttribute('async', '')
document.body.appendChild(scriptElement)
</script>
<script
async=""
type="text/javascript"
src="/sites/all/themes/mallow/src/js/cookies.js?v=c0c952b5f5af42bd78098f00c77cfa63"
></script>
<script type="text/javascript">
const loadingMessages = [
'Transform every day with the habit of learning',
'Explored our courses yet? Enroll now! Over 500k learners have already enrolled.',
'Pro tip: Facing a challenge while solving problem? Tap into AI Help',
'Set the pace, set the goal, Maintain your streak by solving problem everyday',
'Set your own goal to finish each modules',
'Pro tip: Pseudo code first, then code with ease.',
'Coding is not difficult, you need to try hard enough',
'1% better everyday can lead to big results.',
'Hard work and consistency is the only way to success',
"Don't stop until you are in the top 1%",
'Becoming the best coder is easy! Just keep doing CodeChef.',
'Compete in the XP Weekly Leaderboard and see where you rank!'
]
const randomIndex = Math.floor(Math.random() * loadingMessages.length)
document.getElementById('initialLoadingMessage').innerText =
loadingMessages[randomIndex]
</script>
<script
defer=""
src="https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015"
integrity="sha512-ZpsOmlRQV6y907TI0dKBHq9Md29nnaEIPlkf84rnaERnq6zvWvPUqr2ft8M1aS28oN72PdrCzSjY4U6VaAw1EQ=="
data-cf-beacon='{"version":"2024.11.0","token":"77024e52546647f9a933aafda26cc5ce","server_timing":{"name":{"cfCacheStatus":true,"cfEdge":true,"cfExtPri":true,"cfL4":true,"cfOrigin":true,"cfSpeedBrain":true},"location_startswith":null}}'
crossorigin="anonymous"
></script>
<script type="text/javascript">
window.CDN_URL = 'https://cdn.codechef.com'
window.csrfToken =
'55629f5a426ae70c4bea5135ddead8c95d4d27a5472572da03849f8f19f6918f'
window.APPS_URL = 'https://www.codechef-apps.com'
window.DISCUSS_URL = 'https://discuss.codechef.com'
window.tawkPropertyId = '668d037a7a36f5aaec9634a5'
window.widgetId = '1i2bdb6dt'
try {
window.codeChefUserData = {
status: 'success',
user: {
username: null,
uid: null,
profileImage: null,
profileImagePath:
'https:\/\/cdn.codechef.com\/sites\/all\/themes\/abessive\/images\/user_default_thumb.jpg',
oauth_buttons: null,
oauthData: null,
html_handle: null,
userRatingStar: '0',
userRatingStarColor: 'black',
isAdmin: false,
isHYCAdmin: false,
hasAnySpecialPermission: false,
isPremiumUser: false,
isVerifiedUser: false,
user_consented_privacy_policy_version: null,
user_consented_privacy_policy_on: null,
current_privacy_policy_version: null,
visitedContests: [],
rating: -1,
userStarHtml: '',
proDiscount: null,
theme: 'dark',
fullName: null,
pro_plan: null,
sale: {
saleEndDateIST: '2025-10-24T06:00:00',
saleTitle: 'FLASH SALE!',
saleDescription: 'Hurry! Learn Without Limits',
isSaleOngoing: false,
saleDaysLeft: -1,
saleEndDateUTC: '2025-10-24T00:30:00'
},
isUserPartOfAnyUserGroup: false,
userSelectedProgrammingLanguage: '',
country: null,
isNumberVerified: false,
league: 0,
credits: 0,
aiChatLanguage: 'English'
},
time: 1761365602,
ip: '2603:7000:3900:1358:3959:b692:6cf3:cb03',
adStrip: null
}
} catch (e) {
window.codeChefUserData = {}
}
try {
window.userMessages = { status: 'success', messages: null }
} catch (e) {
window.userMessages = {}
}
</script>
<div
id="g_id_onload"
data-client_id="239412980790-t66g30lvvdcs9u1q0l8tha23599ltt1j.apps.googleusercontent.com"
data-login_uri="https://www.codechef.com/onetap"
></div>
<script
src="/sites/all/modules/codechef_alerts/codechef_alerts.js?v=649c43b6894169b33b5557aa0374459d"
async=""
></script>
<iframe
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe>
<div
style="
top: 0px;
left: 0px;
position: fixed;
display: none;
place-items: center;
height: 100vh;
width: 100vw;
z-index: 10000;
line-height: 1.5;
font-size: 16px;
backdrop-filter: blur(2px);
background: rgba(0, 0, 0, 0.1);
box-sizing: border-box;
"
></div>
<div
style="position: fixed; z-index: 9999; height: 281px"
id="credential_picker_container"
>
<iframe
src="https://accounts.google.com/gsi/iframe/select?client_id=239412980790-t66g30lvvdcs9u1q0l8tha23599ltt1j.apps.googleusercontent.com&amp;ux_mode=popup&amp;ui_mode=card&amp;as=jpUSVdpJh68U5le3B23EywG21ow5dt3zt-cfh5hwEG4&amp;is_itp=true&amp;channel_id=05030fcd12f6d70c0a453ace3b908779ce3cbacb9c52eb6ef8a379477c4b370a&amp;origin=https%3A%2F%2Fwww.codechef.com&amp;oauth2_auth_url=https%3A%2F%2Faccounts.google.com%2Fo%2Foauth2%2Fv2%2Fauth"
class="L5Fo6c-PQbLGe"
title="Sign in with Google Dialog"
style="height: 273px; overflow: hidden"
></iframe>
</div>
</body>
</html>