|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.01//EN">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
|
<meta name="X-Csrf-Token" content="f449a24133d0d41d39884e6ddccad94f"/>
|
|
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=0.01"/>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/jquery-1.8.3.js"></script>
|
|
<script type="application/javascript">
|
|
window.standaloneContest = false;
|
|
function adjustViewport() {
|
|
var screenWidthPx = Math.min($(window).width(), window.screen.width);
|
|
var siteWidthPx = 1100; // min width of site
|
|
var ratio = Math.min(screenWidthPx / siteWidthPx, 1.0);
|
|
var viewport = "width=device-width, initial-scale=" + ratio;
|
|
$('#viewport').attr('content', viewport);
|
|
var style = $('<style>html * { max-height: 1000000px;
}</style>');
|
|
$('html > head').append(style);
|
|
}
|
|
|
|
if ( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) )
{
|
|
adjustViewport();
|
|
}
|
|
</script>
|
|
<meta http-equiv="pragma" content="no-cache">
|
|
<meta http-equiv="expires" content="-1">
|
|
<meta http-equiv="profileName" content="f1">
|
|
<meta name="google-site-verification" content="OTd2dN5x4nS4OPknPI9JFg36fKxjqY0i1PSfFPv_J90"/>
|
|
<meta property="fb:admins" content="100001352546622" />
|
|
<meta property="og:image" content="//st.codeforces.com/s/59233/images/codeforces-telegram-square.png"
/>
|
|
<link rel="image_src" href="//st.codeforces.com/s/59233/images/codeforces-telegram-square.png"
/>
|
|
<meta property="og:title" content="Dashboard - Avito Cool Challenge 2018 - Codeforces"/>
|
|
<meta property="og:description" content=""/>
|
|
|
|
<meta property="og:site_name" content="Codeforces"/>
|
|
<meta name="uc" content="df4ba3d6bc967baa6864ffb3ee471fdf965741f5"/>
|
|
<meta name="usmc" content="996120a57fe287eb410d3b3f54952e951ee7e4fa"/>
|
|
|
|
<meta name="cc" content="f1c873b4d6e826d3467a109c49a018e767154133"/>
|
|
<meta name="pc" content="3434bbc33818182cd088753fd3fcfe5270f741ff"/>
|
|
|
|
<meta name="utc_offset" content="+03:00"/>
|
|
<meta name="verify-reformal" content="f56f99fd7e087fb6ccb48ef2" />
|
|
<title>Dashboard - Avito Cool Challenge
2018 - Codeforces</title>
|
|
<meta name="description" content="Codeforces. Programming competitions and contests, programming
community" />
|
|
<meta name="keywords" content="programming algorithm contest competition informatics
olympiads c++ java graphs vkcup" />
|
|
<meta name="robots" content="index, follow" />
|
|
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/font-awesome.min.css" type="text/css"
charset="utf-8"
/>
|
|
|
|
<link href='//fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700&subset=latin,cyrillic'
rel='stylesheet'
type='text/css'>
|
|
<link href='//fonts.googleapis.com/css?family=Cuprum&subset=latin,cyrillic'
rel='stylesheet'
type='text/css'>
|
|
|
|
|
|
<link rel="shortcut icon" type="image/png" href="//st.codeforces.com/s/59233/favicon.png">
|
|
|
|
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/prettify.css" type="text/css" charset="utf-8" />
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/clear.css" type="text/css" charset="utf-8" />
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/style.css" type="text/css" charset="utf-8" />
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/ttypography.css" type="text/css" charset="utf-8" />
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/problem-statement.css" type="text/css"
charset="utf-8"
/>
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/second-level-menu.css" type="text/css"
charset="utf-8"
/>
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/roundbox.css" type="text/css" charset="utf-8" />
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/datatable.css" type="text/css" charset="utf-8" />
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/table-form.css" type="text/css" charset="utf-8" />
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/topic.css" type="text/css" charset="utf-8" />
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/jquery.jgrowl.css" type="text/css"
charset="utf-8"
/>
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/facebox.css" type="text/css" charset="utf-8" />
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/jquery.wysiwyg.css" type="text/css"
charset="utf-8"
/>
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/jquery.autocomplete.css"
type="text/css"
charset="utf-8"
/>
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/codeforces.datepick.css"
type="text/css"
charset="utf-8"
/>
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/colorbox.css" type="text/css" charset="utf-8" />
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/jquery.drafts.css" type="text/css"
charset="utf-8"
/>
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/community.css" type="text/css" charset="utf-8" />
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/css/sidebar-menu.css" type="text/css" charset="utf-8" />
|
|
|
|
|
|
<script type="text/x-mathjax-config">
|
|
MathJax.Hub.Config({
|
|
tex2jax: {inlineMath: [['$$$','$$$']], displayMath: [['$$$$$$','$$$$$$']]}
|
|
});
|
|
</script>
|
|
<script type="text/javascript" async
|
|
src="https://assets.codeforces.com/mathjax/MathJax.js?config=TeX-AMS_HTML-full">
|
|
</script>
|
|
|
|
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/prettify/prettify.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/moment-with-locales.min.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/pushstream.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/jquery.easing.min.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/jquery.lavalamp.min.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/jquery.jgrowl.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/jquery.swipe.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/facebox.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/jquery.wysiwyg.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/controls/wysiwyg.colorpicker.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/controls/wysiwyg.table.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/controls/wysiwyg.image.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/controls/wysiwyg.link.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/jquery.autocomplete.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/jquery.datepick.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/jquery.ie6blocker.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/jquery.colorbox-min.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/jquery.ba-bbq.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/jquery.drafts.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/sjcl.js"></script>
|
|
<script type="text/javascript" src="/scripts/309fd01185addd8d7be4e5acc10acd05/en/codeforces-options.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/codeforces.js?v=20160131"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/EventCatcher.js?v=20160131"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/js/preparedVerdictFormats-en.js"></script>
|
|
|
|
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/markitup/skins/markitup/style.css"
type="text/css"
charset="utf-8"
/>
|
|
<link rel="stylesheet" href="//st.codeforces.com/s/59233/markitup/sets/markdown/style.css"
type="text/css"
charset="utf-8"
/>
|
|
|
|
<script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
|
|
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/markitup/jquery.markitup.js"></script>
|
|
<script type="text/javascript" src="//st.codeforces.com/s/59233/markitup/sets/markdown/set.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
<body><span
style='display:none;'
class='csrf-token'
data-csrf='f449a24133d0d41d39884e6ddccad94f'> </span>
|
|
|
|
<div class="button-up" style="display: none; opacity: 0.7; width: 50px; height:100%;
position: fixed; left: 0; top: 0; cursor: pointer; text-align: center; line-height: 35px;
color: #d3dbe4; font-weight: bold; font-size: 3.0rem;"><i
class="icon-circle-arrow-up"></i></div>
|
|
<div class="verdictPrototypeDiv" style="display: none;"></div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
var queryMobile = Codeforces.queryString.mobile;
|
|
if (queryMobile === "true" || queryMobile === "false") {
|
|
Codeforces.putToStorage("useMobile", queryMobile == "true");
|
|
} else {
|
|
var useMobile = Codeforces.getFromStorage("useMobile");
|
|
if (useMobile === true || useMobile === false) {
|
|
if (useMobile != false) {
|
|
Codeforces.redirect(Codeforces.updateUrlParameter(document.location.href,
"mobile", useMobile));
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
|
if (window.parent.frames.length > 0) {
|
|
window.stop();
|
|
}
|
|
</script>
|
|
<script type="text/javascript">
|
|
window.fbAsyncInit = function() {
|
|
FB.init({
|
|
appId : '554666954583323',
|
|
xfbml : true,
|
|
version : 'v2.8'
|
|
});
|
|
FB.AppEvents.logPageView();
|
|
};
|
|
|
|
(function(d, s, id){
|
|
var js, fjs = d.getElementsByTagName(s)[0];
|
|
if (d.getElementById(id)) {return;}
|
|
js = d.createElement(s); js.id = id;
|
|
js.src = "//connect.facebook.net/en_US/sdk.js";
|
|
fjs.parentNode.insertBefore(js, fjs);
|
|
}(document, 'script', 'facebook-jssdk'));
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
(function () {
|
|
jQuery.expr[':'].containsCI = function(elem, index, match) {
|
|
return !match || !match.length || match.length < 4 || !match[3] || (
|
|
elem.textContent || elem.innerText || jQuery(elem).text() || ''
|
|
).toLowerCase().indexOf(match[3].toLowerCase()) >= 0;
|
|
}
|
|
}(jQuery));
|
|
|
|
$.ajaxPrefilter(function(options, originalOptions, xhr) {
|
|
var csrf = Codeforces.getCsrfToken();
|
|
|
|
if (csrf) {
|
|
var data = originalOptions.data;
|
|
if (originalOptions.data !== undefined) {
|
|
if (Object.prototype.toString.call(originalOptions.data) === '[object
String]') {
|
|
data = $.deparam(originalOptions.data);
|
|
}
|
|
} else {
|
|
data = {};
|
|
}
|
|
options.data = $.param($.extend(data, { csrf_token: csrf }));
|
|
}
|
|
});
|
|
|
|
window.getCodeforcesServerTime = function(callback) {
|
|
$.post("/data/time", {}, callback, "json");
|
|
}
|
|
|
|
window.updateTypography = function () {
|
|
$("div.ttypography code").addClass("tt");
|
|
$("div.ttypography pre>code").addClass("prettyprint").removeClass("tt");
|
|
$("div.ttypography table").addClass("bordertable");
|
|
prettyPrint();
|
|
}
|
|
|
|
$.ajaxSetup({ scriptCharset: "utf-8" ,contentType:
"application/x-www-form-urlencoded; charset=UTF-8", headers: {
|
|
'X-Csrf-Token': Codeforces.getCsrfToken()
|
|
}});
|
|
|
|
window.updateTypography();
|
|
|
|
Codeforces.signForms();
|
|
|
|
setTimeout(function() {
|
|
$(".second-level-menu-list").lavaLamp({
|
|
fx: "backout",
|
|
speed: 1000
|
|
});
|
|
}, 0);
|
|
|
|
|
|
Codeforces.countdown();
|
|
$("a[rel='photobox']").colorbox();
|
|
|
|
var count = 0;
|
|
|
|
function getDelay() {
|
|
var delay = 0;
|
|
var last = Codeforces.getFromStorage("LastOnlineTimeUpdaterMillis", 0);
|
|
if (last && last != null) {
|
|
var period = count < 20 ? 180 * 1000 : 360 * 1000;
|
|
delay = period - (new Date().getTime() - last);
|
|
if (delay < 0)
|
|
delay = 0;
|
|
}
|
|
return delay;
|
|
}
|
|
|
|
window.setInterval(function () {
|
|
if (getDelay() <= 0 && count < 120) {
|
|
++count;
|
|
Codeforces.ping("/data/update-online");
|
|
}
|
|
}, 5000);
|
|
|
|
var handle = "marX";
|
|
$("a.rated-user:contains(" + handle + "), span.participant:contains(" +
handle + ")").each(function () {
|
|
if ($(this).text() == handle) {
|
|
var td = $(this).parent();
|
|
var tr = $(this).parent().parent();
|
|
if (td.is("td") && tr.is("tr")) {
|
|
tr.addClass("highlighted-row");
|
|
}
|
|
}
|
|
});
|
|
|
|
function showAnnouncements(json) {
|
|
//info("j=" + JSON.stringify(json));
|
|
|
|
if (json.t != "a") {
|
|
return;
|
|
}
|
|
// console.log("Got announcement from channel");
|
|
setTimeout(function() {
|
|
Codeforces.showAnnouncements(json.d, "en");
|
|
}, Math.random() * 500);
|
|
}
|
|
|
|
function showEventCatcherUserMessage(json) {
|
|
if (json.t == "s") {
|
|
var points = json.d[5];
|
|
var passedTestCount = json.d[7];
|
|
var judgedTestCount = json.d[8];
|
|
var verdict = preparedVerdictFormats[json.d[12]];
|
|
var verdictPrototypeDiv = $(".verdictPrototypeDiv");
|
|
verdictPrototypeDiv.html(verdict);
|
|
if (judgedTestCount != null && judgedTestCount != undefined) {
|
|
verdictPrototypeDiv.find(".verdict-format-judged").text(judgedTestCount);
|
|
}
|
|
if (passedTestCount != null && passedTestCount != undefined) {
|
|
verdictPrototypeDiv.find(".verdict-format-passed").text(passedTestCount);
|
|
}
|
|
if (points != null && points != undefined) {
|
|
verdictPrototypeDiv.find(".verdict-format-points").text(points);
|
|
}
|
|
Codeforces.showMessage(verdictPrototypeDiv.text());
|
|
}
|
|
}
|
|
|
|
$(".clickable-title").click(function() {
|
|
Codeforces.alert($(this).attr("title"));
|
|
}).css("position", "relative").css("bottom", "3px");
|
|
|
|
|
|
Codeforces.reformatTimes();
|
|
|
|
//Codeforces.initializePubSub();
|
|
if (window.codeforcesOptions.subscribeServerUrl) {
|
|
window.eventCatcher = new EventCatcher(
|
|
window.codeforcesOptions.subscribeServerUrl,
|
|
[
|
|
Codeforces.getGlobalChannel(),
|
|
Codeforces.getUserChannel(),
|
|
Codeforces.getUserShowMessageChannel(),
|
|
Codeforces.getContestChannel(),
|
|
Codeforces.getParticipantChannel(),
|
|
Codeforces.getTalkChannel()
|
|
]
|
|
);
|
|
|
|
if (Codeforces.getParticipantChannel()) {
|
|
window.eventCatcher.subscribe(Codeforces.getParticipantChannel(),
function(json) {
|
|
showAnnouncements(json);
|
|
});
|
|
}
|
|
|
|
if (Codeforces.getContestChannel()) {
|
|
window.eventCatcher.subscribe(Codeforces.getContestChannel(), function(json)
{
|
|
showAnnouncements(json);
|
|
});
|
|
}
|
|
|
|
if (Codeforces.getGlobalChannel()) {
|
|
window.eventCatcher.subscribe(Codeforces.getGlobalChannel(), function(json) {
|
|
showAnnouncements(json);
|
|
});
|
|
}
|
|
|
|
if (Codeforces.getUserChannel()) {
|
|
window.eventCatcher.subscribe(Codeforces.getUserChannel(), function(json) {
|
|
showAnnouncements(json);
|
|
});
|
|
}
|
|
|
|
if (Codeforces.getUserShowMessageChannel()) {
|
|
window.eventCatcher.subscribe(Codeforces.getUserShowMessageChannel(),
function(json) {
|
|
showEventCatcherUserMessage(json);
|
|
});
|
|
}
|
|
}
|
|
|
|
Codeforces.setupContestTimes("/data/contests");
|
|
Codeforces.setupSpoilers();
|
|
Codeforces.setupTutorials("/data/problemTutorial");
|
|
});
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', 'UA-743380-5']);
|
|
_gaq.push(['_trackPageview']);
|
|
|
|
(function () {
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript';
ga.async = true;
|
|
ga.src = (document.location.protocol == 'https:' ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
|
|
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
|
|
})();
|
|
</script>
|
|
|
|
|
|
<div id="body">
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
window._ftaa = "wpbag9nzthixs45p5r";
|
|
})
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
window._bfaa = "8cfab07bbe9b7466c87d77e5e9f27bb4";
|
|
});
|
|
</script>
|
|
|
|
|
|
<div class="side-bell" style="visibility: hidden; display: none; opacity: 0.7; width: 40px;
position: fixed; right: 0; top: 0; cursor: pointer; text-align: center; line-height: 35px;
color: #d3dbe4; font-weight: bold; font-size: 1.5rem;">
|
|
<span class="icon-stack" style="width: 100%;">
|
|
<i class="icon-circle icon-stack-base"></i>
|
|
<i class="icon-bell-alt icon-light"></i>
|
|
</span>
|
|
<br/>
|
|
<span class="side-bell__count" style="position: relative; top: -10px;"></span>
|
|
</div>
|
|
|
|
|
|
<div class="header-bell" style="display: none;">
|
|
<div class="header-bell__img"><span
class="header-bell__count"></span></div>
|
|
|
|
<div class="bell-details">
|
|
<div class="bell-details__proto-row-comment">
|
|
<a class="bell-details__thumbnail-a" href="#"><img src=""/></a>
|
|
<div class="bell-details__comment"></div>
|
|
<div class="bell-details__time"></div>
|
|
</div>
|
|
<div class="bell-details__proto-row-blog-entry">
|
|
<a class="bell-details__thumbnail-a" href="#"><img src=""/></a>
|
|
<div class="bell-details__blog-entry"></div>
|
|
<div class="bell-details__time"></div>
|
|
</div>
|
|
<div class="bell-details__proto-row-comment-reply">
|
|
<a class="bell-details__thumbnail-a" href="#"><img src=""/></a>
|
|
<div class="bell-details__comment-reply"></div>
|
|
<div class="bell-details__time"></div>
|
|
</div>
|
|
|
|
<div class="bell-details__no-new">
|
|
There are no new notifications
|
|
</div>
|
|
|
|
<div class="bell-details__recent-link">
|
|
<a href="/notifications">History (at most 100 notifications)</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.header-bell {
|
|
display: inline-block;
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.header-bell__img {
|
|
opacity: 0.5;
|
|
background-image:
url("//st.codeforces.com/s/59233/images/icons/bell_inactive-20x20.png");
|
|
position: relative;
|
|
bottom: 1px;
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.header-bell__img-active {
|
|
opacity: 1 !important;
|
|
background-image:
url("//st.codeforces.com/s/59233/images/icons/bell_active-20x20.png") !important;
|
|
}
|
|
|
|
.header-bell__count {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 18px;
|
|
font-weight: bold;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.bell-details {
|
|
display: none;
|
|
z-index: 5;
|
|
border: 1px solid rgb(185, 185, 185);
|
|
width: 40rem;
|
|
max-height: 60rem;
|
|
padding: 0;
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 0;
|
|
background-color: white;
|
|
overflow: scroll;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
.bell-details.sidebar-bell {
|
|
position: fixed;
|
|
right: 50px;
|
|
}
|
|
|
|
.bell-details__no-new {
|
|
font-size: 1.3rem;
|
|
display: block;
|
|
text-align: center;
|
|
color: #888 !important;
|
|
padding: 1em;
|
|
}
|
|
|
|
.bell-details__recent-link {
|
|
margin: 0;
|
|
padding: 0.5em;
|
|
text-align: center;
|
|
border-top: 1px solid rgb(185, 185, 185);
|
|
}
|
|
|
|
.bell-details__recent-link a {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.bell-details__proto-row-comment {
|
|
display: none;
|
|
}
|
|
|
|
.bell-details__proto-row-blog-entry {
|
|
display: none;
|
|
}
|
|
|
|
.bell-details__proto-row-comment-reply {
|
|
display: none;
|
|
}
|
|
|
|
.bell-details__row {
|
|
text-align: left;
|
|
margin: 0.5em;
|
|
padding: 0.25em 0.25em 0.75em 0.25em;
|
|
clear: both;
|
|
}
|
|
|
|
.bell-details__row:hover {
|
|
cursor: pointer;
|
|
background-color: #def;
|
|
}
|
|
|
|
.bell-details__row-active {
|
|
background-color: #def;
|
|
}
|
|
|
|
.bell-details__thumbnail-a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.bell-details__row img {
|
|
zoom: 50%;
|
|
margin-right: 2em;
|
|
float: left;
|
|
}
|
|
|
|
.bell-details__comment {
|
|
padding-left: 45px;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.bell-details__blog-entry {
|
|
padding-left: 45px;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.bell-details__comment-reply {
|
|
padding-left: 45px;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.bell-details__time {
|
|
padding-left: 45px;
|
|
margin-top: 0.2em;
|
|
font-size: 1.1rem;
|
|
color: #888 !important;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
$(function () {
|
|
if ($(window).width() < 1600) {
|
|
$('.side-bell').css('width', '30px').css('line-height',
'30px').css('font-size', '10px');
|
|
}
|
|
|
|
if ($(window).width() >= 1200) {
|
|
$ (window).scroll (function () {
|
|
if ($ (this).scrollTop () > 100) {
|
|
$(".bell-details").addClass("sidebar-bell");
|
|
$ ('.side-bell').fadeIn();
|
|
} else {
|
|
$(".bell-details").removeClass("sidebar-bell");
|
|
$ ('.side-bell').fadeOut();
|
|
}
|
|
});
|
|
|
|
$('.side-bell').hover(function () {
|
|
$(this).animate({
|
|
'opacity':'1'
|
|
}).css({'color':'#6a86a4'});
|
|
}, function () {
|
|
$(this).animate({
|
|
'opacity':'0.7'
|
|
}).css({'color':'#d3dbe4'});
|
|
});
|
|
}
|
|
|
|
$(".lang-chooser>div:first-child").prepend($("<span style='position:
relative; bottom: 8px; padding: 0 0.5em;'>|</span>")).prepend($(".header-bell").show());
|
|
function Bell() {
|
|
var bell = this;
|
|
var notifications = JSON.parse("[]");
|
|
|
|
bell.notifications = {};
|
|
|
|
for (var i in notifications) {
|
|
if (notifications.hasOwnProperty(i)) {
|
|
bell.notifications[notifications[i].id] = notifications[i];
|
|
}
|
|
}
|
|
|
|
function onClick(notification) {
|
|
var notificationIds = [];
|
|
var reason = notification.data.reasonType + "#" + notification.reasonId;
|
|
for (id in bell.notifications) {
|
|
if (bell.notifications.hasOwnProperty(id)) {
|
|
var otherNotification = bell.notifications[id];
|
|
var otherReason = otherNotification.data.reasonType + "#" +
otherNotification.reasonId;
|
|
if (otherReason == reason) {
|
|
notificationIds.push(otherNotification.id);
|
|
}
|
|
}
|
|
}
|
|
$.post("/data/notification", {action: "markAsRead", notificationIds:
notificationIds.join(",")}, function(result) {
|
|
Codeforces.redirect(notification.data.url);
|
|
}, "json");
|
|
}
|
|
|
|
var $bellDetails = $(".bell-details");
|
|
bell.newCommentRow = function (notification) {
|
|
var row = $(".bell-details__proto-row-comment").clone();
|
|
row.addClass("bell-details__row").attr("data-notificationId",
notification.id);
|
|
row.find(".bell-details__thumbnail-a").attr("href",
notification.data.reasonUserUrl);
|
|
row.find("img").attr("src", notification.data.reasonUserThumbnailUrl);
|
|
row.find(".bell-details__comment").html(
|
|
"ReasonUser mentioned you in a comment".replace("ReasonUser",
notification.data.reasonUserHtml)
|
|
);
|
|
row.find(".bell-details__time").html(
|
|
"<span class='format-systemtimewithseconds'>"
|
|
+ notification.creationTimeString
|
|
+ "</span>"
|
|
);
|
|
row.removeClass("bell-details__proto-row-comment");
|
|
row.click(function() {
|
|
onClick(notification);
|
|
return false;
|
|
});
|
|
return row;
|
|
};
|
|
bell.newFriendCommentRow = function (notification) {
|
|
var row = $(".bell-details__proto-row-comment").clone();
|
|
row.addClass("bell-details__row").attr("data-notificationId",
notification.id);
|
|
row.find(".bell-details__thumbnail-a").attr("href",
notification.data.reasonUserUrl);
|
|
row.find("img").attr("src", notification.data.reasonUserThumbnailUrl);
|
|
row.find(".bell-details__comment").html(
|
|
"ReasonUser wrote a comment".replace("ReasonUser",
notification.data.reasonUserHtml)
|
|
);
|
|
row.find(".bell-details__time").html(
|
|
"<span class='format-systemtimewithseconds'>"
|
|
+ notification.creationTimeString
|
|
+ "</span>"
|
|
);
|
|
row.removeClass("bell-details__proto-row-comment");
|
|
row.click(function() {
|
|
onClick(notification);
|
|
return false;
|
|
});
|
|
return row;
|
|
};
|
|
bell.newCommentReplyRow = function (notification) {
|
|
var row = $(".bell-details__proto-row-comment-reply").clone();
|
|
row.addClass("bell-details__row").attr("data-notificationId",
notification.id);
|
|
row.find(".bell-details__thumbnail-a").attr("href",
notification.data.reasonUserUrl);
|
|
row.find("img").attr("src", notification.data.reasonUserThumbnailUrl);
|
|
row.find(".bell-details__comment-reply").html(
|
|
"ReasonUser replied to your comment".replace("ReasonUser",
notification.data.reasonUserHtml)
|
|
);
|
|
row.find(".bell-details__time").html(
|
|
"<span class='format-systemtimewithseconds'>"
|
|
+ notification.creationTimeString
|
|
+ "</span>"
|
|
);
|
|
row.removeClass("bell-details__proto-row-comment-reply");
|
|
row.click(function() {
|
|
onClick(notification);
|
|
return false;
|
|
});
|
|
return row;
|
|
};
|
|
bell.newBlogEntryRow = function (notification) {
|
|
var row = $(".bell-details__proto-row-blog-entry").clone();
|
|
row.addClass("bell-details__row").attr("data-notificationId",
notification.id);
|
|
row.find(".bell-details__thumbnail-a").attr("href",
notification.data.reasonUserUrl);
|
|
row.find("img").attr("src", notification.data.reasonUserThumbnailUrl);
|
|
row.find(".bell-details__blog-entry").html(
|
|
"ReasonUser mentioned you in a blog entry".replace("ReasonUser",
notification.data.reasonUserHtml)
|
|
);
|
|
row.find(".bell-details__time").html(
|
|
"<span class='format-systemtimewithseconds'>"
|
|
+ notification.creationTimeString
|
|
+ "</span>"
|
|
);
|
|
row.removeClass("bell-details__proto-row-blog-entry");
|
|
row.click(function() {
|
|
onClick(notification);
|
|
return false;
|
|
});
|
|
return row;
|
|
};
|
|
bell.newFriendBlogEntryRow = function (notification) {
|
|
var row = $(".bell-details__proto-row-blog-entry").clone();
|
|
row.addClass("bell-details__row").attr("data-notificationId",
notification.id);
|
|
row.find(".bell-details__thumbnail-a").attr("href",
notification.data.reasonUserUrl);
|
|
row.find("img").attr("src", notification.data.reasonUserThumbnailUrl);
|
|
row.find(".bell-details__blog-entry").html(
|
|
"ReasonUser wrote a blog entry".replace("ReasonUser",
notification.data.reasonUserHtml)
|
|
);
|
|
row.find(".bell-details__time").html(
|
|
"<span class='format-systemtimewithseconds'>"
|
|
+ notification.creationTimeString
|
|
+ "</span>"
|
|
);
|
|
row.removeClass("bell-details__proto-row-blog-entry");
|
|
row.click(function() {
|
|
onClick(notification);
|
|
return false;
|
|
});
|
|
return row;
|
|
};
|
|
|
|
bell.renderRow = function (notification) {
|
|
var $row = $(".bell-details__row[data-notificationId='" + notification.id +
"']");
|
|
|
|
if ($bellDetails.css("display") != "block" && notification.read) {
|
|
$row.hide();
|
|
return;
|
|
}
|
|
|
|
notification.data = JSON.parse(notification.dataJson);
|
|
|
|
var reason = notification.data.reasonType + "#" + notification.reasonId;
|
|
|
|
var has = false;
|
|
$row.each(function () {
|
|
has = true;
|
|
});
|
|
if ($(".bell-details__row[data-reason='" + reason + "']").length) {
|
|
has = true;
|
|
}
|
|
|
|
if (!has) {
|
|
$(".side-bell").css("visibility", "visible");
|
|
var newRow;
|
|
if (notification.type == "Comment") {
|
|
newRow = bell.newCommentRow(notification);
|
|
} else if (notification.type == "BlogEntry") {
|
|
newRow = bell.newBlogEntryRow(notification);
|
|
} else if (notification.type == "CommentReply") {
|
|
newRow = bell.newCommentReplyRow(notification);
|
|
} else if (notification.type == "FriendComment") {
|
|
newRow = bell.newFriendCommentRow(notification);
|
|
} else if (notification.type == "FriendBlogEntry") {
|
|
newRow = bell.newFriendBlogEntryRow(notification);
|
|
}
|
|
if (newRow) {
|
|
newRow.attr("data-reason", reason);
|
|
$(".bell-details").prepend(newRow);
|
|
}
|
|
}
|
|
};
|
|
|
|
var $count = $(".header-bell__count, .side-bell__count");
|
|
var $img = $(".header-bell__img");
|
|
var $noNew = $(".bell-details__no-new");
|
|
|
|
bell.renewCount = function () {
|
|
Codeforces.reformatTimes();
|
|
var count = 0;
|
|
var counted = {};
|
|
for (var id in bell.notifications)
|
|
if (bell.notifications.hasOwnProperty(id)) {
|
|
var notification = bell.notifications[id];
|
|
if (notification) {
|
|
var reason = notification.data.reasonType + "#" + notification.reasonId;
|
|
if (!notification.read && !counted[reason]) {
|
|
count++;
|
|
counted[reason] = true;
|
|
}
|
|
}
|
|
}
|
|
if (count > 0) {
|
|
$count.text(count);
|
|
$img.addClass("header-bell__img-active");
|
|
$noNew.hide();
|
|
} else {
|
|
$count.text("");
|
|
$img.removeClass("header-bell__img-active");
|
|
if ($bellDetails.css("display") != "block") {
|
|
$noNew.show();
|
|
}
|
|
}
|
|
};
|
|
|
|
for (var id in bell.notifications)
|
|
if (bell.notifications.hasOwnProperty(id))
|
|
bell.renderRow(bell.notifications[id]);
|
|
|
|
if (window.eventCatcher) {
|
|
window.eventCatcher.subscribe(Codeforces.getUserChannel(), function(json) {
|
|
if (json.t === "n") {
|
|
for (var i in json.d)
|
|
if (json.d.hasOwnProperty(i)) {
|
|
var notification = json.d[i];
|
|
notification.data = JSON.parse(notification.dataJson);
|
|
bell.notifications[notification.id] = notification;
|
|
bell.renderRow(notification);
|
|
bell.renewCount();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
|
|
$(".header-bell, .side-bell").click(function() {
|
|
if ($bellDetails.css("display") == "none") {
|
|
for (var id in bell.notifications)
|
|
if (bell.notifications.hasOwnProperty(id))
|
|
if (bell.notifications[id].read)
|
|
bell.renderRow(bell.notifications[id]);
|
|
bell.renewCount();
|
|
|
|
$bellDetails.css("display", "block");
|
|
|
|
var notificationIds = [];
|
|
for (id in bell.notifications)
|
|
if (bell.notifications.hasOwnProperty(id))
|
|
notificationIds.push(id);
|
|
|
|
setTimeout(function() {
|
|
if ($bellDetails.css("display") == "block") {
|
|
$.post("/data/notification", {action: "markAsRead", notificationIds:
notificationIds.join(",")}, function(result) {
|
|
// No operations.
|
|
}, "json");
|
|
|
|
for (var i in notificationIds) {
|
|
if (notificationIds.hasOwnProperty(i)) {
|
|
bell.notifications[notificationIds[i]].read = true;
|
|
}
|
|
}
|
|
bell.renewCount();
|
|
}
|
|
}, 2000);
|
|
} else {
|
|
var has = false;
|
|
for (var id in bell.notifications) {
|
|
if (bell.notifications.hasOwnProperty(id) &&
!bell.notifications[id].read) {
|
|
has = true;
|
|
}
|
|
}
|
|
if (!has) {
|
|
$(".side-bell").css("visibility", "hidden");
|
|
}
|
|
$bellDetails.css("display", "none");
|
|
bell.renewCount();
|
|
}
|
|
});
|
|
}
|
|
|
|
bell = new Bell();
|
|
bell.renewCount();
|
|
})
|
|
</script>
|
|
|
|
<div id="header" style="position: relative;">
|
|
<div style="float:left;">
|
|
<div style="padding:0 0 0 2px;color:#black;font-size:26px;">
|
|
<a href="/avito2018"><img
|
|
style="width:450px;"
src="//assets.codeforces.com/images/acs2018.png"/></a></div>
|
|
|
|
</div>
|
|
<div class="lang-chooser">
|
|
<div style="text-align: right;">
|
|
<a href="?locale=en"><img src="//st.codeforces.com/s/59233/images/flags/24/gb.png"
title="In English"
alt="In English"/></a>
|
|
<a href="?locale=ru"><img src="//st.codeforces.com/s/59233/images/flags/24/ru.png"
title="По-русски"
alt="По-русски"/></a>
|
|
</div>
|
|
|
|
<div >
|
|
<a href="/profile/marX">marX</a>
|
|
|
|
|
<a href="/5acf2e95683e4ec4429876f609103d4e/logout">Logout</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
<br style="clear: both;"/>
|
|
</div>
|
|
|
|
|
|
<div class="roundbox menu-box" style="">
|
|
<div class="roundbox-lt"> </div>
|
|
<div class="roundbox-rt"> </div>
|
|
<div class="roundbox-lb"> </div>
|
|
<div class="roundbox-rb"> </div>
|
|
<div class="menu-list-container">
|
|
<ul class="menu-list main-menu-list">
|
|
<li class=""><a href="/">Home</a></li>
|
|
<li class=""><a href="/top">Top</a></li>
|
|
<li class="current"><a href="/contests">Contests</a></li>
|
|
<li class=""><a href="/gyms">Gym</a></li>
|
|
<li class=""><a href="/problemset">Problemset</a></li>
|
|
<li class=""><a href="/groups">Groups</a></li>
|
|
<li class=""><a href="/ratings">Rating</a></li>
|
|
<li class=""><a href="/api/help">API</a></li>
|
|
<li class=""><a href="/help">Help</a></li>
|
|
<li class=""><a href="/calendar">Calendar</a></li>
|
|
</ul>
|
|
<form method="post" action="/search"><input
type='hidden'
name='csrf_token'
value='f449a24133d0d41d39884e6ddccad94f'/>
|
|
<input class="search" name="query" data-isPlaceholder="true" value=""/>
|
|
</form>
|
|
<br style="clear: both;"/>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
$("input.search").focus(function () {
|
|
if ($(this).attr("data-isPlaceholder") === "true") {
|
|
$(this).val("");
|
|
$(this).removeAttr("data-isPlaceholder");
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<br style="height: 3em; clear: both;"/>
|
|
|
|
<div style="position: relative;">
|
|
<div id="sidebar">
|
|
<div class="roundbox sidebox" style="">
|
|
<div class="roundbox-lt"> </div>
|
|
<div class="roundbox-rt"> </div>
|
|
<table class="rtable ">
|
|
<tbody>
|
|
<tr>
|
|
<th class="left" style="width:100%;"><a
style="color: black"
href="/contest/1081">Avito
Cool Challenge 2018</a></th>
|
|
</tr>
|
|
<tr>
|
|
<td class="left " colspan="1"><span class="contest-state-phase">Finished</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="left dark" colspan="1"><span class="contest-state-regular">Practice</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="left bottom" colspan="1"><span class="contest-state-regular"><center>
|
|
<span>
|
|
<img class="toggle-favourite add-favourite" title="Add to favourites" alt="Add to favourites" data-type="CONTEST" data-entityId="1081" data-size="24" src="//st.codeforces.com/s/59233/images/icons/star_gray_24.png"/>
|
|
</span>
|
|
|
|
</center></span></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
<div class="roundbox sidebox" style="">
|
|
<div class="roundbox-lt"> </div>
|
|
<div class="roundbox-rt"> </div>
|
|
<div class="caption titled">→ Virtual
participation
|
|
<div class="top-links">
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<div style="margin:1em;font-size:0.8em;">
|
|
Virtual contest is a way to take part in past contest, as close as possible
to participation on time. It is supported only ACM-ICPC mode for virtual contests. |
|
|
|
If you've seen these problems, a virtual contest is not for you - solve these
problems in the archive. |
|
|
|
If you just want to solve some problem from a contest, a virtual contest is
not for you - solve this problem in the archive. |
|
|
|
Never use someone else's code, read the tutorials or communicate with other
person during a virtual contest.
|
|
</div>
|
|
|
|
<div style="text-align:center;margin:1em;">
|
|
<form action="/contest/1081/virtual" method="get">
|
|
<input type="submit" name="submit" value="Start virtual contest" style="padding:0 0.5em;">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="roundbox sidebox" style="">
|
|
<div class="roundbox-lt"> </div>
|
|
<div class="roundbox-rt"> </div>
|
|
<div class="caption titled">→ Practice
|
|
<div class="top-links">
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div style="margin:1em;font-size:0.8em;">
|
|
You are registered for practice. You can solve problems unofficially. Results
can be found in the contest status and in the bottom of standings.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
});
|
|
</script>
|
|
|
|
<div class="roundbox sidebox" style="">
|
|
<div class="roundbox-lt"> </div>
|
|
<div class="roundbox-rt"> </div>
|
|
<div class="caption titled">→ Clone Contest to
Mashup
|
|
<div class="top-links">
|
|
</div>
|
|
</div>
|
|
<div style="margin:1em;">
|
|
<div style="font-size: 1.1rem;">
|
|
<p style="padding-bottom: 1em;">
|
|
You can clone this contest to a mashup.
|
|
</p>
|
|
</div>
|
|
<div style="text-align: center;">
|
|
<form action="/mashup/new" method="get">
|
|
<input type="hidden" name="isCloneContest" value="true"/>
|
|
<input type="hidden" name="contestDuration" value="150"/>
|
|
<input type="hidden" name="parentContestIdAndName" value="1081 - Avito Cool Challenge 2018"/>
|
|
<input style="padding: 0 1em;" type="submit" value="Clone Contest"/>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style type="text/css">
|
|
#new-resource-form tr td {
|
|
padding-top: 0.5em;
|
|
}
|
|
#new-resource-form input:not([type="submit"]) {
|
|
font-size: 0.8em;
|
|
}
|
|
#new-resource-form select {
|
|
font-size: 0.8em;
|
|
}
|
|
</style>
|
|
<div class="roundbox sidebox sidebar-menu" style="">
|
|
<div class="roundbox-lt"> </div>
|
|
<div class="roundbox-rt"> </div>
|
|
<div class="caption titled">→ Contest materials
|
|
<div class="top-links">
|
|
</div>
|
|
</div>
|
|
<ul>
|
|
<li>
|
|
<span>
|
|
<a href="/blog/entry/63862" title="Avito Cool Challenge 2018" target="_blank">Announcement</a>
|
|
</span>
|
|
<span style="float: right;">
|
|
<img class="delete-resource-link" resourceId="8103" resourceName="Avito Cool Challenge 2018"
|
|
resourceManual="true"
src="//st.codeforces.com/s/59233/images/icons/close-10x10.png"
|
|
style="position:
relative;bottom: -1px;left: 1px;cursor: pointer;"/>
|
|
</span>
|
|
<div style="clear: both;"></div>
|
|
</li>
|
|
<li>
|
|
<span>
|
|
<a href="https://codeforces.com/blog/entry/63888" title="63888" target="_blank">Tutorial</a>
|
|
</span>
|
|
<span style="float: right;">
|
|
<img class="delete-resource-link" resourceId="8105" resourceName="63888"
|
|
resourceManual="true"
src="//st.codeforces.com/s/59233/images/icons/close-10x10.png"
|
|
style="position:
relative;bottom: -1px;left: 1px;cursor: pointer;"/>
|
|
</span>
|
|
<div style="clear: both;"></div>
|
|
</li>
|
|
</ul>
|
|
</div></div>
|
|
<div id="pageContent" class="content-with-sidebar">
|
|
<div class="second-level-menu">
|
|
<ul class="second-level-menu-list">
|
|
<li class="current selectedLava"><a
|
|
href="/contest/1081">Problems</a></li>
|
|
<li><a
|
|
href="/contest/1081/submit">Submit
Code</a></li>
|
|
<li><a
|
|
href="/contest/1081/my">My
Submissions</a></li>
|
|
<li><a
|
|
href="/contest/1081/status">Status</a></li>
|
|
<li><a
|
|
href="/contest/1081/hacks">Hacks</a></li>
|
|
<li><a
|
|
href="/contest/1081/room/0">Room</a></li>
|
|
<li><a
|
|
href="/contest/1081/standings">Standings</a></li>
|
|
<li><a
|
|
href="/contest/1081/customtest">Custom
Invocation</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="datatable"
|
|
|
|
style="background-color:
#E1E1E1; padding-bottom: 3px;">
|
|
<div class="lt"> </div>
|
|
<div class="rt"> </div>
|
|
<div class="lb"> </div>
|
|
<div class="rb"> </div>
|
|
|
|
<div style="padding: 4px 0 0 6px;font-size:1.4rem;position:relative;">
|
|
Problems
|
|
|
|
<div style="position:absolute;right:0.25em;top:0.35em;">
|
|
<span style="padding:0;position:relative;bottom:2px;" class="rowCount"></span>
|
|
|
|
<img class="closed" src="//st.codeforces.com/s/59233/images/icons/control.png"/>
|
|
|
|
<span class="filter" style="display:none;">
|
|
<img class="opened" src="//st.codeforces.com/s/59233/images/icons/control-270.png"/>
|
|
<input style="padding:0;position:relative;bottom:2px;border:1px solid
#aaa;height:17px;font-size:1.3rem;"/>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div style="background-color: white;margin:0.3em 3px 0
3px;position:relative;">
|
|
<div class="ilt"> </div>
|
|
<div class="irt"> </div>
|
|
<table class="problems">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
<th style="width: 4em;">#</th>
|
|
<th>Name</th>
|
|
<th style="width: 5em;"> </th>
|
|
<th style="width: 5em;"> </th>
|
|
|
|
</tr>
|
|
<tr
|
|
|
|
|
|
>
|
|
<td class="id">
|
|
<a href="/contest/1081/problem/A">
|
|
A
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<div style="position: relative;">
|
|
<div style="float: left;">
|
|
<a href="/contest/1081/problem/A"> |
|
Definite Game |
|
</a> |
|
|
|
</div>
|
|
<div style="position:absolute;right:0;top:-0.5em;font-size:1rem;padding-top:1px;text-align:right;"
class="notice">
|
|
|
|
<div>
|
|
standard input/output
|
|
</div>
|
|
1 s, 256 MB
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="act">
|
|
|
|
<span class="act-item">
|
|
<a href="/contest/1081/submit/A"><img
src="//st.codeforces.com/s/59233/images/icons/submit-22x22.png"
title="Submit"
alt="Submit"/></a>
|
|
</span>
|
|
|
|
<span class="act-item" style="position: relative; bottom: 2px;"><span>
|
|
<img class="toggle-favourite add-favourite" title="Add to favourites" alt="Add to favourites" data-type="PROBLEM" data-entityId="270594" data-size="16" src="//st.codeforces.com/s/59233/images/icons/star_gray_16.png"/>
|
|
</span>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
$("img.toggle-favourite").click(function () {
|
|
var size = $(this).attr("data-size");
|
|
var img = $(this);
|
|
|
|
var isFavourite = !img.hasClass("remove-favourite");
|
|
var type = img.attr("data-type");
|
|
var entityId = img.attr("data-entityId");
|
|
|
|
$.post("/data/favourite",
|
|
{ entityId: entityId, type: type, isFavourite: isFavourite },
|
|
function(response) {
|
|
if (response["success"] != "true") {
|
|
alert(response["message"]);
|
|
} else {
|
|
if (img.hasClass("remove-favourite")) {
|
|
img.attr("src", "//st.codeforces.com/s/59233/images/icons/star_gray_" + size
+ ".png");
|
|
img.removeClass("remove-favourite");
|
|
img.addClass("add-favourite");
|
|
} else {
|
|
img.attr("src", "//st.codeforces.com/s/59233/images/icons/star_yellow_" +
size + ".png");
|
|
img.removeClass("add-favourite");
|
|
img.addClass("remove-favourite");
|
|
}
|
|
}
|
|
}, "json"
|
|
);
|
|
|
|
return false;
|
|
});
|
|
});
|
|
</script></span>
|
|
|
|
</td>
|
|
<td style="font-size: 1.1rem;">
|
|
<a title="Participants solved the problem" href="/contest/1081/status/A"><img
style="vertical-align:
middle;" src="//st.codeforces.com/s/59233/images/icons/user.png"/> x5140</a>
|
|
</td>
|
|
<tr
|
|
|
|
|
|
>
|
|
<td class="id">
|
|
<a href="/contest/1081/problem/B">
|
|
B
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<div style="position: relative;">
|
|
<div style="float: left;">
|
|
<a href="/contest/1081/problem/B"> |
|
Farewell Party |
|
</a> |
|
|
|
</div>
|
|
<div style="position:absolute;right:0;top:-0.5em;font-size:1rem;padding-top:1px;text-align:right;"
class="notice">
|
|
|
|
<div>
|
|
standard input/output
|
|
</div>
|
|
1 s, 256 MB
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="act">
|
|
|
|
<span class="act-item">
|
|
<a href="/contest/1081/submit/B"><img
src="//st.codeforces.com/s/59233/images/icons/submit-22x22.png"
title="Submit"
alt="Submit"/></a>
|
|
</span>
|
|
|
|
<span class="act-item" style="position: relative; bottom: 2px;"><span>
|
|
<img class="toggle-favourite add-favourite" title="Add to favourites" alt="Add to favourites" data-type="PROBLEM" data-entityId="270595" data-size="16" src="//st.codeforces.com/s/59233/images/icons/star_gray_16.png"/>
|
|
</span></span>
|
|
|
|
</td>
|
|
<td style="font-size: 1.1rem;">
|
|
<a title="Participants solved the problem" href="/contest/1081/status/B"><img
style="vertical-align:
middle;" src="//st.codeforces.com/s/59233/images/icons/user.png"/> x2640</a>
|
|
</td>
|
|
<tr
|
|
|
|
|
|
>
|
|
<td class="id">
|
|
<a href="/contest/1081/problem/C">
|
|
C
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<div style="position: relative;">
|
|
<div style="float: left;">
|
|
<a href="/contest/1081/problem/C"> |
|
Colorful Bricks |
|
</a> |
|
|
|
</div>
|
|
<div style="position:absolute;right:0;top:-0.5em;font-size:1rem;padding-top:1px;text-align:right;"
class="notice">
|
|
|
|
<div>
|
|
standard input/output
|
|
</div>
|
|
2 s, 256 MB
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="act">
|
|
|
|
<span class="act-item">
|
|
<a href="/contest/1081/submit/C"><img
src="//st.codeforces.com/s/59233/images/icons/submit-22x22.png"
title="Submit"
alt="Submit"/></a>
|
|
</span>
|
|
|
|
<span class="act-item" style="position: relative; bottom: 2px;"><span>
|
|
<img class="toggle-favourite add-favourite" title="Add to favourites" alt="Add to favourites" data-type="PROBLEM" data-entityId="270596" data-size="16" src="//st.codeforces.com/s/59233/images/icons/star_gray_16.png"/>
|
|
</span></span>
|
|
|
|
</td>
|
|
<td style="font-size: 1.1rem;">
|
|
<a title="Participants solved the problem" href="/contest/1081/status/C"><img
style="vertical-align:
middle;" src="//st.codeforces.com/s/59233/images/icons/user.png"/> x2501</a>
|
|
</td>
|
|
<tr
|
|
|
|
|
|
>
|
|
<td class="id">
|
|
<a href="/contest/1081/problem/D">
|
|
D
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<div style="position: relative;">
|
|
<div style="float: left;">
|
|
<a href="/contest/1081/problem/D"> |
|
Maximum Distance |
|
</a> |
|
|
|
</div>
|
|
<div style="position:absolute;right:0;top:-0.5em;font-size:1rem;padding-top:1px;text-align:right;"
class="notice">
|
|
|
|
<div>
|
|
standard input/output
|
|
</div>
|
|
1 s, 256 MB
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="act">
|
|
|
|
<span class="act-item">
|
|
<a href="/contest/1081/submit/D"><img
src="//st.codeforces.com/s/59233/images/icons/submit-22x22.png"
title="Submit"
alt="Submit"/></a>
|
|
</span>
|
|
|
|
<span class="act-item" style="position: relative; bottom: 2px;"><span>
|
|
<img class="toggle-favourite add-favourite" title="Add to favourites" alt="Add to favourites" data-type="PROBLEM" data-entityId="270597" data-size="16" src="//st.codeforces.com/s/59233/images/icons/star_gray_16.png"/>
|
|
</span></span>
|
|
|
|
</td>
|
|
<td style="font-size: 1.1rem;">
|
|
<a title="Participants solved the problem" href="/contest/1081/status/D"><img
style="vertical-align:
middle;" src="//st.codeforces.com/s/59233/images/icons/user.png"/> x1413</a>
|
|
</td>
|
|
<tr
|
|
|
|
|
|
>
|
|
<td class="id">
|
|
<a href="/contest/1081/problem/E">
|
|
E
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<div style="position: relative;">
|
|
<div style="float: left;">
|
|
<a href="/contest/1081/problem/E"> |
|
Missing Numbers |
|
</a> |
|
|
|
</div>
|
|
<div style="position:absolute;right:0;top:-0.5em;font-size:1rem;padding-top:1px;text-align:right;"
class="notice">
|
|
|
|
<div>
|
|
standard input/output
|
|
</div>
|
|
2 s, 256 MB
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="act">
|
|
|
|
<span class="act-item">
|
|
<a href="/contest/1081/submit/E"><img
src="//st.codeforces.com/s/59233/images/icons/submit-22x22.png"
title="Submit"
alt="Submit"/></a>
|
|
</span>
|
|
|
|
<span class="act-item" style="position: relative; bottom: 2px;"><span>
|
|
<img class="toggle-favourite add-favourite" title="Add to favourites" alt="Add to favourites" data-type="PROBLEM" data-entityId="270598" data-size="16" src="//st.codeforces.com/s/59233/images/icons/star_gray_16.png"/>
|
|
</span></span>
|
|
|
|
</td>
|
|
<td style="font-size: 1.1rem;">
|
|
<a title="Participants solved the problem" href="/contest/1081/status/E"><img
style="vertical-align:
middle;" src="//st.codeforces.com/s/59233/images/icons/user.png"/> x1142</a>
|
|
</td>
|
|
<tr
|
|
|
|
|
|
>
|
|
<td class="id">
|
|
<a href="/contest/1081/problem/F">
|
|
F
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<div style="position: relative;">
|
|
<div style="float: left;">
|
|
<a href="/contest/1081/problem/F"> |
|
Tricky Interactor |
|
</a> |
|
|
|
</div>
|
|
<div style="position:absolute;right:0;top:-0.5em;font-size:1rem;padding-top:1px;text-align:right;"
class="notice">
|
|
|
|
<div>
|
|
standard input/output
|
|
</div>
|
|
1 s, 256 MB
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="act">
|
|
|
|
<span class="act-item">
|
|
<a href="/contest/1081/submit/F"><img
src="//st.codeforces.com/s/59233/images/icons/submit-22x22.png"
title="Submit"
alt="Submit"/></a>
|
|
</span>
|
|
|
|
<span class="act-item" style="position: relative; bottom: 2px;"><span>
|
|
<img class="toggle-favourite add-favourite" title="Add to favourites" alt="Add to favourites" data-type="PROBLEM" data-entityId="270599" data-size="16" src="//st.codeforces.com/s/59233/images/icons/star_gray_16.png"/>
|
|
</span></span>
|
|
|
|
</td>
|
|
<td style="font-size: 1.1rem;">
|
|
<a title="Participants solved the problem" href="/contest/1081/status/F"><img
style="vertical-align:
middle;" src="//st.codeforces.com/s/59233/images/icons/user.png"/> x213</a>
|
|
</td>
|
|
<tr
|
|
|
|
|
|
>
|
|
<td class="id">
|
|
<a href="/contest/1081/problem/G">
|
|
G
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<div style="position: relative;">
|
|
<div style="float: left;">
|
|
<a href="/contest/1081/problem/G"> |
|
Mergesort Strikes Back |
|
</a> |
|
|
|
</div>
|
|
<div style="position:absolute;right:0;top:-0.5em;font-size:1rem;padding-top:1px;text-align:right;"
class="notice">
|
|
|
|
<div>
|
|
standard input/output
|
|
</div>
|
|
1 s, 256 MB
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="act">
|
|
|
|
<span class="act-item">
|
|
<a href="/contest/1081/submit/G"><img
src="//st.codeforces.com/s/59233/images/icons/submit-22x22.png"
title="Submit"
alt="Submit"/></a>
|
|
</span>
|
|
|
|
<span class="act-item" style="position: relative; bottom: 2px;"><span>
|
|
<img class="toggle-favourite add-favourite" title="Add to favourites" alt="Add to favourites" data-type="PROBLEM" data-entityId="270600" data-size="16" src="//st.codeforces.com/s/59233/images/icons/star_gray_16.png"/>
|
|
</span></span>
|
|
|
|
</td>
|
|
<td style="font-size: 1.1rem;">
|
|
<a title="Participants solved the problem" href="/contest/1081/status/G"><img
style="vertical-align:
middle;" src="//st.codeforces.com/s/59233/images/icons/user.png"/> x38</a>
|
|
</td>
|
|
<tr
|
|
|
|
|
|
>
|
|
<td class="id">
|
|
<a href="/contest/1081/problem/H">
|
|
H
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<div style="position: relative;">
|
|
<div style="float: left;">
|
|
<a href="/contest/1081/problem/H"> |
|
Palindromic Magic |
|
</a> |
|
|
|
</div>
|
|
<div style="position:absolute;right:0;top:-0.5em;font-size:1rem;padding-top:1px;text-align:right;"
class="notice">
|
|
|
|
<div>
|
|
standard input/output
|
|
</div>
|
|
2.5 s, 1024 MB
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="act">
|
|
|
|
<span class="act-item">
|
|
<a href="/contest/1081/submit/H"><img
src="//st.codeforces.com/s/59233/images/icons/submit-22x22.png"
title="Submit"
alt="Submit"/></a>
|
|
</span>
|
|
|
|
<span class="act-item" style="position: relative; bottom: 2px;"><span>
|
|
<img class="toggle-favourite add-favourite" title="Add to favourites" alt="Add to favourites" data-type="PROBLEM" data-entityId="270601" data-size="16" src="//st.codeforces.com/s/59233/images/icons/star_gray_16.png"/>
|
|
</span></span>
|
|
|
|
</td>
|
|
<td style="font-size: 1.1rem;">
|
|
<a title="Participants solved the problem" href="/contest/1081/status/H"><img
style="vertical-align:
middle;" src="//st.codeforces.com/s/59233/images/icons/user.png"/> x5</a>
|
|
</td>
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
// Create new ':containsIgnoreCase' selector for search
|
|
jQuery.expr[':'].containsIgnoreCase = function(a, i, m) {
|
|
return jQuery(a).text().toUpperCase()
|
|
.indexOf(m[3].toUpperCase()) >= 0;
|
|
};
|
|
|
|
if (window.updateDatatableFilter == undefined) {
|
|
window.updateDatatableFilter = function(i) {
|
|
var parent = $(i).parent().parent().parent().parent();
|
|
$("tr.no-items", parent).remove();
|
|
$("tr", parent).hide().removeClass('visible');
|
|
var text = $(i).val();
|
|
if (text) {
|
|
$("tr" + ":containsIgnoreCase('" + text + "')",
parent).show().addClass('visible');
|
|
} else {
|
|
parent.find(".rowCount").text("");
|
|
$("tr", parent).show().addClass('visible');
|
|
}
|
|
|
|
var found = false;
|
|
var visibleRowCount = 0;
|
|
$("tr", parent).each(function () {
|
|
if (!found) {
|
|
if ($(this).find("th").size() > 0) {
|
|
$(this).show().addClass('visible');
|
|
found = true;
|
|
}
|
|
}
|
|
if ($(this).hasClass('visible')) {
|
|
visibleRowCount++;
|
|
}
|
|
});
|
|
if (text) {
|
|
parent.find(".rowCount").text("Matches: " + (visibleRowCount - (found ? 1 :
0)));
|
|
}
|
|
if (visibleRowCount == (found ? 1 : 0)) {
|
|
$("<tr class='no-items visible'><td
style=\"text-align:left;\"colspan=\"32\">No
items<\/td><\/tr>").appendTo($(parent).find('table'));
|
|
}
|
|
$(parent).find("tr td").removeClass("dark");
|
|
$(parent).find("tr.visible:odd td").addClass("dark");
|
|
}
|
|
|
|
$(".datatable .closed").click(function () {
|
|
var parent = $(this).parent();
|
|
$(this).hide();
|
|
$(".filter", parent).fadeIn(function () {
|
|
$("input", parent).val("").focus().css("border", "1px solid #aaa");
|
|
});
|
|
});
|
|
|
|
$(".datatable .opened").click(function () {
|
|
var parent = $(this).parent().parent();
|
|
$(".filter", parent).fadeOut(function () {
|
|
$(".closed", parent).show();
|
|
$("input", parent).val("").each(function () {
|
|
window.updateDatatableFilter(this);
|
|
});
|
|
});
|
|
});
|
|
|
|
$(".datatable .filter input").keyup(function(e) {
|
|
window.updateDatatableFilter(this);
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
});
|
|
|
|
$(".datatable table").each(function () {
|
|
var found = false;
|
|
$("tr", this).each(function () {
|
|
if (!found && $(this).find("th").size() == 0) {
|
|
found = true;
|
|
}
|
|
});
|
|
if (!found) {
|
|
$("<tr class='no-items visible'><td
style=\"text-align:left;\"colspan=\"32\">No items<\/td><\/tr>").appendTo(this);
|
|
}
|
|
});
|
|
|
|
// Applies styles to datatables.
|
|
$(".datatable").each(function () {
|
|
$(this).find("tr:first th").addClass("top");
|
|
$(this).find("tr:last td").addClass("bottom");
|
|
$(this).find("tr:odd td").addClass("dark");
|
|
$(this).find("tr td:first-child, tr th:first-child").addClass("left");
|
|
$(this).find("tr td:last-child, tr th:last-child").addClass("right");
|
|
});
|
|
|
|
$(".datatable table.tablesorter").each(function () {
|
|
$(this).bind("sortEnd", function () {
|
|
$(".datatable").each(function () {
|
|
$(this).find("th, td")
|
|
.removeClass("top").removeClass("bottom")
|
|
.removeClass("left").removeClass("right")
|
|
.removeClass("dark");
|
|
$(this).find("tr:first th").addClass("top");
|
|
$(this).find("tr:last td").addClass("bottom");
|
|
$(this).find("tr:odd td").addClass("dark");
|
|
$(this).find("tr td:first-child, tr th:first-child").addClass("left");
|
|
$(this).find("tr td:last-child, tr th:last-child").addClass("right");
|
|
});
|
|
});
|
|
});
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<form id="update-contest-form"
|
|
action="/contest/1081/releaseOrUpdate?action=releaseAndUpdate"
|
|
method="post"
style="display: none;"><input type='hidden'
name='csrf_token'
value='f449a24133d0d41d39884e6ddccad94f'/>
|
|
</form>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$(".update-contest-link").click(function () {
|
|
Codeforces.confirm(
|
|
"It may take several minutes, do not interrupt or close browser
tab.<br/><br>Are you sure you want to update the contest?",
|
|
function () {
|
|
$("#update-contest-form").submit();
|
|
},
|
|
function () {
|
|
},
|
|
"Yes", "No"
|
|
);
|
|
return false;
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<div style="margin-bottom: 1em; font-size: 0.9em; display: none;"
class="twinProblemsTemplate
error">
|
|
By locking this problem, you will also lock all of the subproblems:
|
|
<span class="twinProblemsList"></span>
|
|
</div>
|
|
<div class="lock-problem-form" style="display: none;">
|
|
<div style="margin-bottom: 1em; font-size: 0.9em;">
|
|
After problem locking you are not be able to resubmit it but you will be able
to view other participants solutions and hack them.
|
|
</div>
|
|
<div class="twinProblemsPlaceholder"></div>
|
|
<div style="font-size: 0.9em;">Your solution:</div>
|
|
<div>
|
|
<pre class="prettyprint"
|
|
style="width:
800px; height: 400px; overflow: auto; border: 1px solid #888;">
|
|
</pre>
|
|
</div>
|
|
|
|
<div style="text-align: center;">
|
|
<img class="waitingIndicator" style="display: none;" src="//st.codeforces.com/s/59233/images/indicator.gif" alt="waiting..">
|
|
<button class="lock-problem-button" style="margin-top: 1em; padding: 0.25em 0.75em;">Lock
problem</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
$(".problem-lock-link").click(function () {
|
|
var problemIndex = $(this).attr("problemIndex");
|
|
var twinProblems = $(this).attr("twinProblems");
|
|
var contestId = $(this).attr("contestId");
|
|
|
|
Codeforces.facebox(".lock-problem-form", "//st.codeforces.com/s/59233");
|
|
if (twinProblems) {
|
|
var twinProblemsDiv = $(".twinProblemsTemplate").clone();
|
|
twinProblemsDiv.removeClass("twinProblemsTemplate");
|
|
twinProblemsDiv.show();
|
|
twinProblemsDiv.find(".twinProblemsList").text(twinProblems);
|
|
$("#facebox .twinProblemsPlaceholder").replaceWith(twinProblemsDiv);
|
|
} else {
|
|
$("#facebox .twinProblemsPlaceholder").remove();
|
|
}
|
|
|
|
$.post("/data/problemLock",
|
|
{action: "getLastAcceptedSubmission", participantId: 21759263, problemIndex:
problemIndex, contestId: contestId},
|
|
function(response) {
|
|
var sourcePre = $("#facebox .lock-problem-form pre");
|
|
if (response["prettifyClass"]) {
|
|
sourcePre.addClass(response["prettifyClass"]);
|
|
}
|
|
sourcePre.text(response["code"]);
|
|
prettyPrint();
|
|
},
|
|
"json"
|
|
);
|
|
|
|
$(".lock-problem-button").click(function () {
|
|
$(".waitingIndicator").show();
|
|
$(this).attr("disabled", "disabled");
|
|
$.post("/data/problemLock",
|
|
{action: "lockProblem", participantId: 21759263, problemIndex: problemIndex,
contestId: contestId},
|
|
function(response) {
|
|
Codeforces.reload();
|
|
},
|
|
"json"
|
|
);
|
|
});
|
|
|
|
return false;
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<div style="text-align: right; font-size: 1.1rem; margin-top: 3px;">
|
|
<a href="/contest/1081/problems">
|
|
Complete problemset
|
|
</a>
|
|
</div>
|
|
|
|
<div style="margin-top: 2em;">
|
|
|
|
<div style="position: relative; height: 2em;" class="action-link">
|
|
<div style="position: absolute; right: 0; margin: 0 0 1em 0;">
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="datatable contest-1081-questions-container"
|
|
|
|
style="background-color:
#E1E1E1; padding-bottom: 3px;">
|
|
<div class="lt"> </div>
|
|
<div class="rt"> </div>
|
|
<div class="lb"> </div>
|
|
<div class="rb"> </div>
|
|
|
|
<div style="padding: 4px 0 0 6px;font-size:1.4rem;position:relative;">
|
|
Questions about problems
|
|
|
|
<div style="position:absolute;right:0.25em;top:0.35em;">
|
|
<span style="padding:0;position:relative;bottom:2px;" class="rowCount"></span>
|
|
|
|
<img class="closed" src="//st.codeforces.com/s/59233/images/icons/control.png"/>
|
|
|
|
<span class="filter" style="display:none;">
|
|
<img class="opened" src="//st.codeforces.com/s/59233/images/icons/control-270.png"/>
|
|
<input style="padding:0;position:relative;bottom:2px;border:1px solid
#aaa;height:17px;font-size:1.3rem;"/>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div style="background-color: white;margin:0.3em 3px 0
3px;position:relative;">
|
|
<div class="ilt"> </div>
|
|
<div class="irt"> </div>
|
|
<table class="problem-questions-table">
|
|
<tr>
|
|
<th style="width: 2em;">#</th>
|
|
<th>Party</th>
|
|
<th style="width: 6em;">When</th>
|
|
<th>Question</th>
|
|
<th>Answer</th>
|
|
</tr>
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
// Create new ':containsIgnoreCase' selector for search
|
|
jQuery.expr[':'].containsIgnoreCase = function(a, i, m) {
|
|
return jQuery(a).text().toUpperCase()
|
|
.indexOf(m[3].toUpperCase()) >= 0;
|
|
};
|
|
|
|
if (window.updateDatatableFilter == undefined) {
|
|
window.updateDatatableFilter = function(i) {
|
|
var parent = $(i).parent().parent().parent().parent();
|
|
$("tr.no-items", parent).remove();
|
|
$("tr", parent).hide().removeClass('visible');
|
|
var text = $(i).val();
|
|
if (text) {
|
|
$("tr" + ":containsIgnoreCase('" + text + "')",
parent).show().addClass('visible');
|
|
} else {
|
|
parent.find(".rowCount").text("");
|
|
$("tr", parent).show().addClass('visible');
|
|
}
|
|
|
|
var found = false;
|
|
var visibleRowCount = 0;
|
|
$("tr", parent).each(function () {
|
|
if (!found) {
|
|
if ($(this).find("th").size() > 0) {
|
|
$(this).show().addClass('visible');
|
|
found = true;
|
|
}
|
|
}
|
|
if ($(this).hasClass('visible')) {
|
|
visibleRowCount++;
|
|
}
|
|
});
|
|
if (text) {
|
|
parent.find(".rowCount").text("Matches: " + (visibleRowCount - (found ? 1 :
0)));
|
|
}
|
|
if (visibleRowCount == (found ? 1 : 0)) {
|
|
$("<tr class='no-items visible'><td
style=\"text-align:left;\"colspan=\"32\">No
items<\/td><\/tr>").appendTo($(parent).find('table'));
|
|
}
|
|
$(parent).find("tr td").removeClass("dark");
|
|
$(parent).find("tr.visible:odd td").addClass("dark");
|
|
}
|
|
|
|
$(".datatable .closed").click(function () {
|
|
var parent = $(this).parent();
|
|
$(this).hide();
|
|
$(".filter", parent).fadeIn(function () {
|
|
$("input", parent).val("").focus().css("border", "1px solid #aaa");
|
|
});
|
|
});
|
|
|
|
$(".datatable .opened").click(function () {
|
|
var parent = $(this).parent().parent();
|
|
$(".filter", parent).fadeOut(function () {
|
|
$(".closed", parent).show();
|
|
$("input", parent).val("").each(function () {
|
|
window.updateDatatableFilter(this);
|
|
});
|
|
});
|
|
});
|
|
|
|
$(".datatable .filter input").keyup(function(e) {
|
|
window.updateDatatableFilter(this);
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
});
|
|
|
|
$(".datatable table").each(function () {
|
|
var found = false;
|
|
$("tr", this).each(function () {
|
|
if (!found && $(this).find("th").size() == 0) {
|
|
found = true;
|
|
}
|
|
});
|
|
if (!found) {
|
|
$("<tr class='no-items visible'><td
style=\"text-align:left;\"colspan=\"32\">No items<\/td><\/tr>").appendTo(this);
|
|
}
|
|
});
|
|
|
|
// Applies styles to datatables.
|
|
$(".datatable").each(function () {
|
|
$(this).find("tr:first th").addClass("top");
|
|
$(this).find("tr:last td").addClass("bottom");
|
|
$(this).find("tr:odd td").addClass("dark");
|
|
$(this).find("tr td:first-child, tr th:first-child").addClass("left");
|
|
$(this).find("tr td:last-child, tr th:last-child").addClass("right");
|
|
});
|
|
|
|
$(".datatable table.tablesorter").each(function () {
|
|
$(this).bind("sortEnd", function () {
|
|
$(".datatable").each(function () {
|
|
$(this).find("th, td")
|
|
.removeClass("top").removeClass("bottom")
|
|
.removeClass("left").removeClass("right")
|
|
.removeClass("dark");
|
|
$(this).find("tr:first th").addClass("top");
|
|
$(this).find("tr:last td").addClass("bottom");
|
|
$(this).find("tr:odd td").addClass("dark");
|
|
$(this).find("tr td:first-child, tr th:first-child").addClass("left");
|
|
$(this).find("tr td:last-child, tr th:last-child").addClass("right");
|
|
});
|
|
});
|
|
});
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
function toggleQuestionHide() {
|
|
var hidden = $(this).attr("checked");
|
|
var isAnnouncement = $(this).attr("data-is-announcement");
|
|
var questionId = $(this).attr("data-question-id");
|
|
|
|
var row = $(this).parent().parent();
|
|
|
|
if (confirm(hidden ? "Are you sure you want to hide problem question?" : "Are
you sure you want to show problem question?")) {
|
|
$.post("/data/changeProblemQuestionOrAnnouncementDataPage", {
|
|
action: "changeHiddenForQuestion",
|
|
contestId: 1081,
|
|
hidden: hidden,
|
|
isAnnouncement: isAnnouncement,
|
|
questionId: questionId
|
|
}, function (data) {
|
|
if (data["success"] == "true") {
|
|
if (hidden) {
|
|
row.addClass("highlighted-row");
|
|
} else {
|
|
row.removeClass("highlighted-row");
|
|
}
|
|
|
|
Codeforces.showMessage(hidden ? "Problem question is hidden for all users" :
"Problem question is visible for all users");
|
|
} else {
|
|
Codeforces.showMessage(data["message"]);
|
|
}
|
|
}, "json");
|
|
} else {
|
|
if (hidden) {
|
|
$(this).removeAttr("checked");
|
|
} else {
|
|
$(this).attr("checked", "true");
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
function toggleQuestionBroadcast() {
|
|
var broadcast = $(this).attr("checked");
|
|
var questionId = $(this).attr("data-question-id");
|
|
|
|
if (confirm(broadcast ? "Are you sure you want to broadcast problem
question?" : "Are you sure you don't want to broadcast problem question?")) {
|
|
$.post("/data/changeProblemQuestionOrAnnouncementDataPage", {
|
|
action: "changeBroadcastForQuestion",
|
|
contestId: 1081,
|
|
broadcast: broadcast,
|
|
questionId: questionId
|
|
}, function (data) {
|
|
if (data["success"] == "true") {
|
|
Codeforces.reload();
|
|
//Codeforces.showMessage(broadcast ? "Problem question is broadcasted" :
"Problem question isn't broadcasted");
|
|
} else {
|
|
Codeforces.showMessage(data["message"]);
|
|
}
|
|
}, "json");
|
|
} else {
|
|
if (broadcast) {
|
|
$(this).removeAttr("checked");
|
|
} else {
|
|
$(this).attr("checked", "true");
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
$(function () {
|
|
$(".hide-question").change(toggleQuestionHide);
|
|
$(".broadcast-question").change(toggleQuestionBroadcast);
|
|
});
|
|
</script>
|
|
|
|
<div class="ask-question-box" style="display:none;">
|
|
<h5>Ask a question</h5>
|
|
<hr/>
|
|
<form method="post" action=""><input type='hidden'
name='csrf_token'
value='f449a24133d0d41d39884e6ddccad94f'/>
|
|
<input type="hidden" name="action" value="questionSubmitted"/>
|
|
|
|
<table class="table-form" style="width: 45em;">
|
|
<tr>
|
|
<td class="field-name">Problem:</td>
|
|
<td>
|
|
<select style="width: 25em;" name="submittedProblemIndex">
|
|
<option value="">Choose
problem</option>
|
|
<option value="A" >A - Definite Game</option>
|
|
<option value="B" >B - Farewell Party</option>
|
|
<option value="C" >C - Colorful Bricks</option>
|
|
<option value="D" >D - Maximum Distance</option>
|
|
<option value="E" >E - Missing Numbers</option>
|
|
<option value="F" >F - Tricky Interactor</option>
|
|
<option value="G" >G - Mergesort Strikes Back</option>
|
|
<option value="H" >H - Palindromic Magic</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr class="subscription-row">
|
|
<td> </td>
|
|
<td>
|
|
<div class="shiftUp error__submittedProblemIndex">
|
|
<span class="error for__submittedProblemIndex " style="display: none;"> </span>
|
|
<span class="notice for__submittedProblemIndex "> </span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="field-name">Question:</td>
|
|
<td>
|
|
<textarea name="question" style="width: 100%; height: 15em;"></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr class="subscription-row">
|
|
<td> </td>
|
|
<td>
|
|
<div class="shiftUp error__question">
|
|
<span class="error for__question " style="display: none;"> </span>
|
|
<span class="notice for__question "> </span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2">
|
|
<div style="text-align: center;">
|
|
<input class="submit" type="submit" value="Send"/>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
$(".broadcast-question").css("font-weight", "bold");
|
|
|
|
$(".ask-question-link").click(function () {
|
|
Codeforces.facebox(".ask-question-box", "//st.codeforces.com/s/59233");
|
|
$("#facebox textarea[name=question]").wysiwyg({
|
|
controls : {
|
|
html : {
|
|
visible: true
|
|
}
|
|
}
|
|
});
|
|
$("#facebox .ask-question-box .submit").click(function () {
|
|
Codeforces.clearAjaxFormErrors("#facebox .table-form");
|
|
var question = $("#facebox textarea[name=question]").val();
|
|
var submittedProblemIndex = $("#facebox
select[name=submittedProblemIndex]").val();
|
|
$.post("/data/newProblemQuestion",
|
|
{ contestId: 1081, question: question, submittedProblemIndex:
submittedProblemIndex },
|
|
function(data) {
|
|
var invalid = Codeforces.setAjaxFormErrors("#facebox .table-form", data);
|
|
if (!invalid) {
|
|
$.facebox.close();
|
|
Codeforces.reload();
|
|
}
|
|
},
|
|
"json"
|
|
);
|
|
return false;
|
|
});
|
|
return false;
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<div class="add-announcement-box" style="display: none;">
|
|
<h5>Add announcement</h5>
|
|
<hr/>
|
|
<form method="post" action=""><input type='hidden'
name='csrf_token'
value='f449a24133d0d41d39884e6ddccad94f'/>
|
|
<table class="table-form" style="width:45em;">
|
|
<tr>
|
|
<td class="field-name">Problem:</td>
|
|
<td>
|
|
<select style="width: 25em;" name="submittedProblemIndex">
|
|
<option value="">Choose
problem</option>
|
|
<option value="generalAnnouncement" data-problem-name=""
>General announcement</option>
|
|
<option value="A" data-problem-name="Definite Game" >A - Definite Game</option>
|
|
<option value="B" data-problem-name="Farewell Party" >B - Farewell Party</option>
|
|
<option value="C" data-problem-name="Colorful Bricks" >C - Colorful Bricks</option>
|
|
<option value="D" data-problem-name="Maximum Distance" >D - Maximum Distance</option>
|
|
<option value="E" data-problem-name="Missing Numbers" >E - Missing Numbers</option>
|
|
<option value="F" data-problem-name="Tricky Interactor" >F - Tricky Interactor</option>
|
|
<option value="G" data-problem-name="Mergesort Strikes Back" >G - Mergesort
Strikes Back</option>
|
|
<option value="H" data-problem-name="Palindromic Magic" >H - Palindromic Magic</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr class="subscription-row">
|
|
<td> </td>
|
|
<td>
|
|
<div class="shiftUp error__submittedProblemIndex">
|
|
<span class="error for__submittedProblemIndex " style="display: none;"> </span>
|
|
<span class="notice for__submittedProblemIndex "> </span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr style="display: none;">
|
|
<td> </td>
|
|
<td>
|
|
<input type="checkbox" checked="checked" name="announceInPairContest"/>
|
|
<span class="notice">Add a copy of announcement for
problem <span class="pairProblem"></span></span>
|
|
</td>
|
|
</tr>
|
|
<tr class="subscription-row">
|
|
<td> </td>
|
|
<td>
|
|
<div class="shiftUp error__announceInPairContest">
|
|
<span class="error for__announceInPairContest " style="display: none;"> </span>
|
|
<span class="notice for__announceInPairContest "> </span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="field-name">English text:</td>
|
|
<td>
|
|
<textarea name="englishText" class="bottom-space-small" style="width: 80%; height: 10em;"></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr class="subscription-row">
|
|
<td> </td>
|
|
<td>
|
|
<div class="shiftUp error__englishText">
|
|
<span class="error for__englishText " style="display: none;"> </span>
|
|
<span class="notice for__englishText "> </span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="field-name">Russian text:</td>
|
|
<td>
|
|
<textarea name="russianText" class="bottom-space-small" style="width: 80%; height: 10em;"></textarea>
|
|
</td>
|
|
</tr>
|
|
<tr class="subscription-row">
|
|
<td> </td>
|
|
<td>
|
|
<div class="shiftUp error__russianText">
|
|
<span class="error for__russianText " style="display: none;"> </span>
|
|
<span class="notice for__russianText "> </span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="field-name">Target user:</td>
|
|
<td>
|
|
<input class="targetUserHandle" name="targetUserHandle" style="width: 15em;"/>
|
|
</td>
|
|
</tr>
|
|
<tr class="subscription-row">
|
|
<td> </td>
|
|
<td>
|
|
<div class="shiftUp error__targetUserHandle">
|
|
<span class="error for__targetUserHandle " style="display: none;"> </span>
|
|
<span class="notice for__targetUserHandle ">Leave blank if
you want to announce all participants </span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2">
|
|
<div style="text-align: center;">
|
|
<input class="submit" type="submit" value="Send"/>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
var pairProblems = {};
|
|
pairProblems["A"] = "";
|
|
pairProblems["B"] = "";
|
|
pairProblems["C"] = "";
|
|
pairProblems["D"] = "";
|
|
pairProblems["E"] = "";
|
|
pairProblems["F"] = "";
|
|
pairProblems["G"] = "";
|
|
pairProblems["H"] = "";
|
|
$(".add-announcement-link").click(function () {
|
|
Codeforces.facebox(".add-announcement-box", "//st.codeforces.com/s/59233");
|
|
|
|
$("#facebox .targetUserHandle").autocomplete("/data/handles", {
|
|
delay: 200,
|
|
width: 200,
|
|
selectFirst: false,
|
|
matchContains: true,
|
|
minChars: 3
|
|
});
|
|
|
|
$("#facebox select[name=submittedProblemIndex]").change(function() {
|
|
var pairProblem = pairProblems[$(this).val()];
|
|
var $tr = $("#facebox input[name=announceInPairContest]").closest("tr");
|
|
if (pairProblem) {
|
|
$tr.find(".pairProblem").text(pairProblem);
|
|
$tr.show();
|
|
} else {
|
|
$tr.hide();
|
|
}
|
|
});
|
|
|
|
$("#facebox .add-announcement-box .submit").click(function () {
|
|
Codeforces.clearAjaxFormErrors("#facebox .table-form");
|
|
var englishText= $("#facebox textarea[name=englishText]").val();
|
|
var russianText= $("#facebox textarea[name=russianText]").val();
|
|
var submittedProblemIndex = $("#facebox
select[name=submittedProblemIndex]").val();
|
|
var problemName = $("#facebox select[name=submittedProblemIndex]
option:selected").attr("data-problem-name");
|
|
var targetUserHandle = $("#facebox input[name=targetUserHandle]").val();
|
|
var announceInPairContest = $("#facebox
input[name=announceInPairContest]").is(":checked");
|
|
|
|
var addAnnouncement = function () {
|
|
$.post("/data/newAnnouncement",
|
|
{contestId: 1081, englishText: englishText, russianText: russianText,
submittedProblemIndex: submittedProblemIndex, targetUserHandle: targetUserHandle,
announceInPairContest: announceInPairContest},
|
|
function (data) {
|
|
var invalid = Codeforces.setAjaxFormErrors("#facebox .table-form", data);
|
|
if (!invalid) {
|
|
$.facebox.close();
|
|
Codeforces.reload();
|
|
}
|
|
},
|
|
"json"
|
|
);
|
|
}
|
|
|
|
if (confirm(
|
|
"Are you sure you want to add " +
|
|
(submittedProblemIndex == "generalAnnouncement" ? "general announcement" :
"announcement for problem " + submittedProblemIndex + " - " + problemName)
|
|
+ " with english text: \"" + englishText + "\" and russian text: \"" +
russianText + "\""
|
|
+ (targetUserHandle != "" ? " for user " + targetUserHandle : "") + "?")) {
|
|
addAnnouncement();
|
|
}
|
|
|
|
return false;
|
|
});
|
|
|
|
return false;
|
|
});
|
|
});
|
|
</script>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br style="clear: both;"/>
|
|
<div id="footer">
|
|
<div><a href="https://codeforces.com/">Codeforces</a> (c) Copyright 2010-2018 Mike Mirzayanov</div>
|
|
<div>The only programming contests Web
2.0 platform</div>
|
|
<div>Server time: <span
class="format-timewithseconds"
data-locale="en">Dec/25/2018
20:57:09</span> (f1).</div>
|
|
<div>Desktop version, switch to <a rel="nofollow"
class="switchToMobile"
href="?mobile=true">mobile
version</a>.</div>
|
|
<div class="smaller"><a href="/privacy">Privacy
Policy</a></div>
|
|
|
|
<div style="margin-top: 25px;">
|
|
Supported by
|
|
</div>
|
|
<div style="margin-top: 8px; padding-bottom: 20px; position: relative;
left: 10px;">
|
|
<a href="https://telegram.org/"><img
style="margin-right:
2em; width: 60px;" src="//st.codeforces.com/s/59233/images/telegram-100x100.png"
alt="Telegram"
title="Telegram"/></a>
|
|
<a href="http://ifmo.ru/en/"><img
style="width:
120px;" src="//st.codeforces.com/s/59233/images/itmo_small_en-logo.png"
alt="ИТМО"
title="ИТМО"/></a>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$(".switchToMobile").click(function() {
|
|
Codeforces.redirect(Codeforces.updateUrlParameter(document.location.href,
"mobile", "true"));
|
|
return false;
|
|
});
|
|
$(".switchToDesktop").click(function() {
|
|
Codeforces.redirect(Codeforces.updateUrlParameter(document.location.href,
"mobile", "false"));
|
|
return false;
|
|
});
|
|
});
|
|
</script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
if ($(window).width() < 1600) {
|
|
$('.button-up').css('width', '30px').css('line-height',
'30px').css('font-size', '20px');
|
|
}
|
|
|
|
if ($(window).width() >= 1200) {
|
|
$ (window).scroll (function () {
|
|
if ($ (this).scrollTop () > 100) {
|
|
$ ('.button-up').fadeIn();
|
|
} else {
|
|
$ ('.button-up').fadeOut();
|
|
}
|
|
});
|
|
|
|
$('.button-up').click(function () {
|
|
$('body,html').animate({
|
|
scrollTop: 0
|
|
}, 500);
|
|
return false;
|
|
});
|
|
|
|
$('.button-up').hover(function () {
|
|
$(this).animate({
|
|
'opacity':'1'
|
|
}).css({'background-color':'#e7ebf0','color':'#6a86a4'});
|
|
}, function () {
|
|
$(this).animate({
|
|
'opacity':'0.7'
|
|
}).css({'background':'none','color':'#d3dbe4'});;
|
|
});
|
|
}
|
|
Codeforces.focusOnError();
|
|
});
|
|
</script>
|
|
|
|
<div class="userListsFacebox" style="display:none;">
|
|
<div style="padding: 0.5em; width: 600px; max-height: 200px; overflow-y:
auto">
|
|
<div class="datatable"
|
|
|
|
style="background-color:
#E1E1E1; padding-bottom: 3px;">
|
|
<div class="lt"> </div>
|
|
<div class="rt"> </div>
|
|
<div class="lb"> </div>
|
|
<div class="rb"> </div>
|
|
|
|
<div style="padding: 4px 0 0 6px;font-size:1.4rem;position:relative;">
|
|
User lists
|
|
|
|
<div style="position:absolute;right:0.25em;top:0.35em;">
|
|
<span style="padding:0;position:relative;bottom:2px;" class="rowCount"></span>
|
|
|
|
<img class="closed" src="//st.codeforces.com/s/59233/images/icons/control.png"/>
|
|
|
|
<span class="filter" style="display:none;">
|
|
<img class="opened" src="//st.codeforces.com/s/59233/images/icons/control-270.png"/>
|
|
<input style="padding:0;position:relative;bottom:2px;border:1px solid
#aaa;height:17px;font-size:1.3rem;"/>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div style="background-color: white;margin:0.3em 3px 0
3px;position:relative;">
|
|
<div class="ilt"> </div>
|
|
<div class="irt"> </div>
|
|
<table class="">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$(document).ready(function () {
|
|
// Create new ':containsIgnoreCase' selector for search
|
|
jQuery.expr[':'].containsIgnoreCase = function(a, i, m) {
|
|
return jQuery(a).text().toUpperCase()
|
|
.indexOf(m[3].toUpperCase()) >= 0;
|
|
};
|
|
|
|
if (window.updateDatatableFilter == undefined) {
|
|
window.updateDatatableFilter = function(i) {
|
|
var parent = $(i).parent().parent().parent().parent();
|
|
$("tr.no-items", parent).remove();
|
|
$("tr", parent).hide().removeClass('visible');
|
|
var text = $(i).val();
|
|
if (text) {
|
|
$("tr" + ":containsIgnoreCase('" + text + "')",
parent).show().addClass('visible');
|
|
} else {
|
|
parent.find(".rowCount").text("");
|
|
$("tr", parent).show().addClass('visible');
|
|
}
|
|
|
|
var found = false;
|
|
var visibleRowCount = 0;
|
|
$("tr", parent).each(function () {
|
|
if (!found) {
|
|
if ($(this).find("th").size() > 0) {
|
|
$(this).show().addClass('visible');
|
|
found = true;
|
|
}
|
|
}
|
|
if ($(this).hasClass('visible')) {
|
|
visibleRowCount++;
|
|
}
|
|
});
|
|
if (text) {
|
|
parent.find(".rowCount").text("Matches: " + (visibleRowCount - (found ? 1 :
0)));
|
|
}
|
|
if (visibleRowCount == (found ? 1 : 0)) {
|
|
$("<tr class='no-items visible'><td
style=\"text-align:left;\"colspan=\"32\">No
items<\/td><\/tr>").appendTo($(parent).find('table'));
|
|
}
|
|
$(parent).find("tr td").removeClass("dark");
|
|
$(parent).find("tr.visible:odd td").addClass("dark");
|
|
}
|
|
|
|
$(".datatable .closed").click(function () {
|
|
var parent = $(this).parent();
|
|
$(this).hide();
|
|
$(".filter", parent).fadeIn(function () {
|
|
$("input", parent).val("").focus().css("border", "1px solid #aaa");
|
|
});
|
|
});
|
|
|
|
$(".datatable .opened").click(function () {
|
|
var parent = $(this).parent().parent();
|
|
$(".filter", parent).fadeOut(function () {
|
|
$(".closed", parent).show();
|
|
$("input", parent).val("").each(function () {
|
|
window.updateDatatableFilter(this);
|
|
});
|
|
});
|
|
});
|
|
|
|
$(".datatable .filter input").keyup(function(e) {
|
|
window.updateDatatableFilter(this);
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
});
|
|
|
|
$(".datatable table").each(function () {
|
|
var found = false;
|
|
$("tr", this).each(function () {
|
|
if (!found && $(this).find("th").size() == 0) {
|
|
found = true;
|
|
}
|
|
});
|
|
if (!found) {
|
|
$("<tr class='no-items visible'><td
style=\"text-align:left;\"colspan=\"32\">No items<\/td><\/tr>").appendTo(this);
|
|
}
|
|
});
|
|
|
|
// Applies styles to datatables.
|
|
$(".datatable").each(function () {
|
|
$(this).find("tr:first th").addClass("top");
|
|
$(this).find("tr:last td").addClass("bottom");
|
|
$(this).find("tr:odd td").addClass("dark");
|
|
$(this).find("tr td:first-child, tr th:first-child").addClass("left");
|
|
$(this).find("tr td:last-child, tr th:last-child").addClass("right");
|
|
});
|
|
|
|
$(".datatable table.tablesorter").each(function () {
|
|
$(this).bind("sortEnd", function () {
|
|
$(".datatable").each(function () {
|
|
$(this).find("th, td")
|
|
.removeClass("top").removeClass("bottom")
|
|
.removeClass("left").removeClass("right")
|
|
.removeClass("dark");
|
|
$(this).find("tr:first th").addClass("top");
|
|
$(this).find("tr:last td").addClass("bottom");
|
|
$(this).find("tr:odd td").addClass("dark");
|
|
$(this).find("tr td:first-child, tr th:first-child").addClass("left");
|
|
$(this).find("tr td:last-child, tr th:last-child").addClass("right");
|
|
});
|
|
});
|
|
});
|
|
}
|
|
});
|
|
</script>
|
|
</div>
|
|
</div>
|
|
<script type="application/javascript">
|
|
$(function() {
|
|
$(".userListMarker").click(function() {
|
|
$.post("/data/lists", {action: "findTouched"}, function(json) {
|
|
Codeforces.facebox(".userListsFacebox");
|
|
var tbody = $("#facebox tbody");
|
|
tbody.empty();
|
|
for (var i in json) {
|
|
tbody.append(
|
|
$("<tr></tr>").append(
|
|
$("<td></td>").attr("data-readKey",
json[i].readKey).text(json[i].name)
|
|
)
|
|
);
|
|
}
|
|
Codeforces.updateDatatables();
|
|
tbody.find("td").css("cursor", "pointer").click(function() {
|
|
document.location = Codeforces.updateUrlParameter(document.location.href,
"list", $(this).attr("data-readKey"));
|
|
});
|
|
}, "json");
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|