<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>AcWing</title>
<meta charset="UTF-8">
<meta name="keywords" content="AcWing,Leetcode,题解,编程,算法"/>
<meta name="description" content="一个专属于程序员的平台,为大家在漫漫的刷题之旅中,提供最优质的解答"/>
<meta name="baidu-site-verification" content="UW1SBiMHO7" />
<meta name="google-site-verification" content="YTgbOq_0TDShJS6KTcUYCQoAAZTm308SJ7ibsafBD_Y" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="shortcut icon" type="image/png" href="https://cdn.acwing.com/static/web/img/favicon.ico"/>
<link rel="stylesheet" href="https://cdn.acwing.com/static/bootstrap-3.3.7-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.acwing.com/static/web/node_modules/bootstrap-toggle/css/bootstrap-toggle.min.css">
<link rel="stylesheet" href="https://cdn.acwing.com/static/web/css/signform.css">
<link rel="stylesheet" href="https://cdn.acwing.com/static/jquery-ui-dist/jquery-ui.min.css">
<link rel="stylesheet" href="https://cdn.acwing.com/static/web/css/file_system/search_engine/base-0.0.4.css">
<link rel="stylesheet" href="https://cdn.acwing.com/static/web/css/success_modal.css" />
<link rel="stylesheet" href="https://cdn.acwing.com/static/web/css/wss/chat/chat_list-0.0.1.css">
<!--link rel="stylesheet" href="https://cdn.acwing.com/static/web/css/pace.css"-->
<!--script src="https://cdn.acwing.com/static/web/js/pace.js"></script-->
<script>
let onbeforeunload_functions = [];
</script>
<style>
/* latin */
@font-face {
font-family: 'Satisfy';
font-style: normal;
font-weight: 400;
src: local('Satisfy Regular'), local('Satisfy-Regular'), url(https://cdn.acwing.com/static/web/fonts/rP2Hp2yn6lkG50LoCZOIHQ.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 400;
src: local('Lato Italic'), local('Lato-Italic'), url(https://cdn.acwing.com/static/web/fonts/S6u8w4BMUTPHjxsAUi-qJCY.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 400;
src: local('Lato Italic'), local('Lato-Italic'), url(https://cdn.acwing.com/static/web/fonts/S6u8w4BMUTPHjxsAXC-q.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 700;
src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://cdn.acwing.com/static/web/fonts/S6u_w4BMUTPHjxsI5wq_FQft1dw.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 700;
src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://cdn.acwing.com/static/web/fonts/S6u_w4BMUTPHjxsI5wq_Gwft.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'), url(https://cdn.acwing.com/static/web/fonts/S6uyw4BMUTPHjxAwXjeu.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'), url(https://cdn.acwing.com/static/web/fonts/S6uyw4BMUTPHjx4wXg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: local('Lato Bold'), local('Lato-Bold'), url(https://cdn.acwing.com/static/web/fonts/S6u9w4BMUTPHh6UVSwaPGR_p.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: local('Lato Bold'), local('Lato-Bold'), url(https://cdn.acwing.com/static/web/fonts/S6u9w4BMUTPHh6UVSwiPGQ.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
</style>
<script src="https://cdn.acwing.com/static/jquery/js/jquery-3.3.1.min.js"></script>
<script src="https://cdn.acwing.com/static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script src="https://cdn.acwing.com/static/web/node_modules/bootstrap-toggle/js/bootstrap-toggle.min.js"></script>
<script src="https://cdn.acwing.com/static/jquery-ui-dist/jquery-ui.min.js"></script>
<script src="https://cdn.acwing.com/static/web/node_modules/jquery.cookie/jquery.cookie.js"></script>
<script src="https://cdn.acwing.com/static/web/js/file_system/search_engine/dist/search_engine-0.0.16.min.js"></script>
<script>
$(document).ready(function () {
var csrftoken = $.cookie('csrftoken');
function csrfSafeMethod(method) {
// these HTTP methods do not require CSRF protection
return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));
}
$.ajaxSetup({
beforeSend: function(xhr, settings) {
if (!csrfSafeMethod(settings.type) && !this.crossDomain) {
xhr.setRequestHeader("X-CSRFToken", csrftoken);
}
},
cache: true
});
});
</script>
<script src="https://cdn.acwing.com/static/web/js/signform-0.0.1.js"></script>
<script src="https://cdn.acwing.com/static/web/js/handlebars-v1.3.0.js"></script>
<script src="https://cdn.acwing.com/static/web/js/effect_anchor-0.0.1.js"></script>
<script src="https://cdn.acwing.com/static/web/js/editor/utils-0.0.1.js"></script>
<script>
let chat_state = {
me_id: 452072,
};
</script>
<div style="display: none;">
<div id="message_template_me">
<div class="row" style="margin: 0; margin-bottom: 10px;">
<div class="col-xs-2 pull-right" style="width: 30px; padding: 0; margin-right: 10px;">
<a href="https://message_host_space_url">
<img class="img-responsive img-circle" width="30px" height="30px" src="https://www.acwing.com/static/web/img/favicon.ico" alt="我的头像">
</a>
</div>
<div class="col-xs-10 pull-right">
<span class="chat-bubble-me pull-right" style="word-break: break-all;">
message_content
</span>
</div>
</div>
</div>
<div id="message_template_you">
<div class="row" style="margin: 0; margin-bottom: 10px;">
<div class="col-xs-2" style="width: 30px; padding: 0; margin-left: 10px;">
<a href="https://message_host_space_url">
<img class="img-responsive img-circle" width="30px" height="30px" src="https://www.acwing.com/static/web/img/favicon.ico" alt="好友头像">
</a>
</div>
<div class="col-xs-10">
<span class="chat-bubble-you pull-left" style="word-break: break-all;">
message_content
</span>
</div>
</div>
</div>
<div id="message_create_time">
<div class="text-center">
<span class="chat-time-format">message create time</span>
</div>
<br>
</div>
<div id="message_code_template">
<a id="message_code_template_0_message_id_0" style="cursor:pointer;">
<img src="https://cdn.acwing.com/static/web/img/chat/code.png" width="75px" style="margin: -17px -22px -14px -22px;" alt="代码">
</a>
</div>
<div id="message_emoji_gif_template">
<a style="cursor:pointer;">
<img src="https://www.acwing.com/static/web/img/favicon.ico"
width="100px"
style="margin: 0"
title="emoji_gif_description"
alt="表情动画">
</a>
</div>
</div>
<script src="https://cdn.acwing.com/static/web/js/wss/chat/utils.js"></script>
<script src="https://cdn.acwing.com/static/web/third_party/ace-builds/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="https://cdn.acwing.com/static/web/third_party/ace-builds/src-min-noconflict/ext-language_tools-0.0.1.js"></script>
<script src="https://cdn.acwing.com/static/web/js/editor/code_completer/dist/code_completer-0.0.12.min.js"></script>
<script src="https://cdn.acwing.com/static/web/js/wss/chat/emoji-data.js"></script>
<script>
let user_state = {
is_authenticated: true,
is_pc: false,
is_tablet: false,
is_mobile: false,
};
if (user_state.is_authenticated){
user_state.user_id = 452072;
user_state.info = "";
}
user_state.is_pc = true;
</script>
<script>
let GLOBAL_COMMENT_SONS = {};
</script>
<style>
#acwing_body {
background-color: #F1F2F5;
background-size: auto;
}
@media (min-width: 768px) and (max-width: 1000px) {
.collapse {
display: none !important;
}
}
.popover {
z-index: 1000000 !important;
}
@media (min-width: 768px) {
.container {
width: 750px;
}
}
@media (min-width: 992px) {
.container {
width: 900px;
}
}
@media (min-width: 1200px) {
.container {
width: 1000px;
}
}
@media (min-width: 1300px) {
.container {
width: 1170px;
}
}
</style>
<link rel="stylesheet" href="https://cdn.acwing.com/static/plugins/css/ace.min.css">
<link rel="stylesheet" href="https://cdn.acwing.com/static/martor/css/martor-0.0.2.min.css">
<link rel="stylesheet" href="https://cdn.acwing.com/static/web/css/martor-0.0.1.css">
<link rel="stylesheet" href="https://cdn.acwing.com/static/web/css/file_system/file/content/comment.css">
<link rel ="stylesheet" href="https://cdn.acwing.com/static/web/css/style-0.0.18.css">
<link rel="stylesheet" href="https://cdn.acwing.com/static/web/css/base/navbar.css">
<link rel="stylesheet" href="https://cdn.acwing.com/static/web/css/file_system/gui/window/base-0.0.4.css">
<link rel="stylesheet" href="https://cdn.acwing.com/static/web/css/file_system/file/content/whole/application/file_explorer/base-0.0.2.css">
<link rel="stylesheet" href="https://cdn.acwing.com/static/web/css/file_system/gui/taskbar/base-0.0.5.css">
<script>
let DESKTOP_STATE_WINDOW_OPERATE_OPEN_URL = "/file_system/gui/window/operate/open/666/";
let DESKTOP_STATE_TASKBAR_SEARCH_URL = "/file_system/gui/taskbar/search/base/search/";
let DESKTOP_STATE_OS_THIRD_PARTY_API_OAUTH2_AUTHORIZE_URL = "/third_party/api/oauth2/acapp/authorize/";
</script>
<script src="https://cdn.acwing.com/static/web/js/file_system/file/content/whole/application/file_explorer/dist/file_explorer-0.0.7.min.js"></script>
<script src="https://cdn.acwing.com/static/web/js/file_system/gui/dist/gui-0.0.64.min.js"></script>
<script>
$(document).ready(function () {
let urls = {
add: "/file_system/file/operation/content/add/",
update: "/file_system/file/operation/content/update/",
delete: "/file_system/file/operation/content/delete/",
update_refactor_rename: "/file_system/file/operation/content/update/refactor/rename/",
command_ls: "/file_system/file/operation/content/command/ls/",
command_cp: "/file_system/file/operation/content/command/cp/",
command_mv: "/file_system/file/operation/content/command/mv/",
command_read: "/file_system/file/operation/content/command/read/",
};
desktop_state.os.builtin.api.file.operation.set(urls);
let applications = {
file_explorer: 284475,
ac_editor: 172575,
ac_saber: 118289,
settings: 589618,
ac_chat: 994425,
};
desktop_state.os.builtin.application.set(applications);
let configs = {
media_url: "https://cdn.acwing.com/media/",
static_url: "https://cdn.acwing.com/static/",
};
desktop_state.os.builtin.settings.set(configs);
let auto_open_apps = [];
auto_open_apps.push({
title: "AC Chat",
icon: "https://cdn.acwing.com/media/file_system/file/application/icon/2220490481555590627-128_UQONKkk.png",
file_id: 994425,
});
desktop_state.taskbar.widgets.apps.set(auto_open_apps);
});
</script>
<link rel="stylesheet" href="https://cdn.acwing.com/static/web/css/about/index-0.0.10.css" />
</head>
<body id="acwing_body" style="min-height: 100vh;">
<div class="panel panel-default fs-gui-taskbar"
style="width: 100vw; "
>
<div class="panel-body fs-gui-taskbar-body dropup">
<div class="panel panel-default fs-gui-taskbar-begin-menu">
<div class="panel-body" style="padding: 0;">
<div class="fs-gui-taskbar-begin-menu-item fs-gui-taskbar-begin-menu-item-file">
文件
</div>
<div class="fs-gui-taskbar-begin-menu-item fs-gui-taskbar-begin-menu-item-application">
应用
</div>
<hr style="height: 1vh; margin: 1vh;">
<div class="fs-gui-taskbar-begin-menu-item fs-gui-taskbar-begin-menu-item-settings">
设置
</div>
</div>
</div>
<button class="fs-gui-taskbar-begin pull-left btn btn-default">
<img src="https://cdn.acwing.com/static/web/img/favicon.ico" alt="开始" title="开始" style="width: 60%;" />
</button>
<div class="fs-gui-taskbar-search pull-left">
<span class="glyphicon glyphicon-search fs-gui-taskbar-search-icon"></span>
<label for="fs-gui-taskbar-search-field" class="sr-only"></label>
<input id="fs-gui-taskbar-search-field" placeholder="在这里输入你要搜索的应用" />
</div>
<div class="fs-gui-taskbar-right">
<div class="fs-gui-taskbar-task-list"></div>
<div class="fs-gui-taskbar-widgets">
<div class="fs-gui-taskbar-widgets-clock">
<div class="fs-gui-taskbar-widgets-clock-time">09:50</div>
<div class="fs-gui-taskbar-widgets-clock-date">2024-07-03</div>
</div>
<div class="fs-gui-taskbar-widgets-apps">
<div class="fs-gui-taskbar-widgets-apps-item fs-gui-taskbar-widgets-apps-item-994425" title="AC Chat">
<img src="https://cdn.acwing.com/media/file_system/file/application/icon/2220490481555590627-128_UQONKkk.png" alt="AC Chat">
</div>
</div>
</div>
</div>
</div>
</div>
<div id="fs-gui-advertisement-base"
style="position: fixed; top: 15vh; cursor: pointer; display: none; z-index:999999999">
<div>
<div id="fs-gui-advertisement-base-title"></div>
<div style="text-align: left; font-size: 80%;">
<span style="font-size: 80%;">¥</span>
<span id="fs-gui-advertisement-base-price" style="font-size: 135%;"></span>
<span id="fs-gui-advertisement-base-inventory" style="font-size: 135%;"></span> 份秒杀
<span class="glyphicon glyphicon-triangle-right" style="font-size: 70%; top: 0.25vh"></span>
</div>
<div id="fs-gui-advertisement-base-close-btn"
style="color: white; position: absolute; top: -0.4vh; right: 4px; cursor: pointer; font-size: 18px;">x</div>
</div>
</div>
<style>
.file-explorer-main-field-item-desktop:hover {
background-color: rgba(204,232,255, 0.5);
}
</style>
<div style="position: fixed; top: 71px; left: 17px;">
<div class="file-explorer-main-field-item file-explorer-main-field-item-desktop" style="border: none"
ondblclick="desktop_state.window.open_outer_window(desktop_state.os.builtin.application.applications.file_explorer,'main&address=~/');">
<div class="file-explorer-main-field-item-icon">
<img src="https://cdn.acwing.com/static/web/img/file_system/file/application/file_explorer/folder_icon.png" alt="文件图标"/>
</div>
<div class="file-explorer-main-field-item-title" style="color: white; font-size: 1.8vh; text-shadow: 3px 3px 3px grey;">文件</div>
</div>
<br>
<div class="file-explorer-main-field-item file-explorer-main-field-item-desktop" style="border: none"
ondblclick="desktop_state.window.open_outer_window(desktop_state.os.builtin.application.applications.file_explorer,'main&address=/我的空间/应用/');">
<div class="file-explorer-main-field-item-icon">
<img src="https://cdn.acwing.com/static/web/img/file_system/file/application/file_explorer/folder_icon.png" alt="文件图标"/>
</div>
<div class="file-explorer-main-field-item-title" style="color: white; font-size: 1.8vh; text-shadow: 3px 3px 3px grey;">应用</div>
</div>
</div>
<div id="acwing_page" >
<nav class="navbar navbar-inverse navbar-fixed-top navbar-expand-lg" style="z-index: 10;">
<div class="container">
<!-- Header -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#topNavBar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">AcWing</a>
</div>
<!-- Items -->
<div class="collapse navbar-collapse" id="topNavBar">
<ul class="nav navbar-nav navbar-left">
<li class=" active "><a href="/about/">首页</a></li>
<li id="navigation_activity_active_id" class=""><a href="/activity/">课程</a></li>
<li class=""><a href="/problem/">题库</a></li>
<li class="">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
更多
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li id="navigation_competition_active_id" class=""><a href="/activity/1/competition/">竞赛</a></li>
<li class=""><a href="/solution/">题解</a></li>
<li class=""><a href="/blog/">分享</a></li>
<li class=""><a href="/community/">问答</a></li>
<li class=""><a href="/file_system/file/content/whole/index/content/whole/application/1/">应用</a></li>
<li id="navigation_public_group_active_id" class=""><a href="/activity/content/public_group/entry/">校园</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li style="margin-top: 10px; ">
<div id="fs-search-engine">
<input type="text" class="form-control fs-search-engine-input" maxlength="1000" placeholder="搜索你感兴趣的内容" value="">
<span class="glyphicon glyphicon-search fs-search-engine-submit" title="搜索"></span>
<img class="fs-search-engine-remove" src="https://cdn.acwing.com/static/web/img/file_system/gui/window/button/close.png" alt="关闭" title="清除">
<div class="fs-search-engine-info panel">
<div class="panel-body">
<div class="fs-search-engine-info-history">
<div class="fs-search-engine-info-title" style="margin-bottom: 10px;">历史记录</div>
<div class="fs-search-engine-info-history-remove-btn">清除记录</div>
<div class="fs-search-engine-info-content-field"></div>
</div>
<div class="fs-search-engine-info-recommend">
<div class="fs-search-engine-info-title">猜你想搜</div>
<div class="fs-search-engine-info-content-field"></div>
</div>
<div class="fs-search-engine-info-hottest">
<div class="fs-search-engine-info-title">AcWing热点</div>
<div class="fs-search-engine-info-content-field"></div>
</div>
</div>
</div>
<div class="fs-search-engine-auto-complete panel">
<div class="panel-body">
<div class="fs-search-engine-auto-complete-content-field"></div>
</div>
</div>
<script>
$(document).ready(function () {
let source_file_id = 0, source_person_id = 0, is_in_search_page = false, pre_search_type = "web_entry_all", search_record_id = 0;
let args = {
source_file_id,
source_person_id,
is_in_search_page,
pre_search_type,
search_record_id,
search_url: "/file_system/search_engine/web_all/result/index/",
get_hottest_url: "/file_system/search_engine/web_all/info/get_hottest/",
get_recommend_url: "/file_system/search_engine/web_all/info/get_recommend/",
get_auto_complete_url: "/file_system/search_engine/web_all/auto_complete/get_auto_complete/",
pull_move_records_url: "/file_system/search_engine/web_all/result/pull/",
};
new SearchEngine("fs-search-engine", args);
});
</script>
</div>
</li>
<li class=""><a href="/app/version/download/index/">App</a></li>
<li class=""><a href="/user/myspace/blog/add/452072/" title="创作">创作</a></li>
<li title="通知" class="">
<a href="/user/myspace/notification/1/">
<span class="glyphicon glyphicon-bell" style="font-size: 20px;"></span>
</a>
</li>
<li>
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img class="img-circle" src="https://cdn.acwing.com/media/user/profile/photo/452072_sm_8e6dbad438.png" alt="小智的银杏叶 的头像" style="margin: -5px;" width="35px">
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<span style="cursor: pointer;" title="AC币">
<img src="https://cdn.acwing.com/static/web/img/acb2.png"
width="15px" alt="AC币图标"
style="margin-left: 20px; margin-bottom: 4px;">
<span class="hidden-sm hidden-md hidden-lg" style="color: white;">5</span>
<span class="hidden-xs">5</span>
</span>
</li>
<li class="divider"></li>
<li><a href = "/user/myspace/index/452072/">我的空间</a></li>
<li><a href = "/user/profile/index/">个人中心</a></li>
<li class="divider"></li>
<li><a href = "/user/payment/order/index/">我的订单</a></li>
<li><a href = "/user/work_sheet/index/">我的工单</a></li>
<li class = "divider"></li>
<li>
<form id="signout-form" action="/user/account/signout/" method="post">
<input type="hidden" name="csrfmiddlewaretoken" value="1WBlJLEa1PlcgETiLKKZd0oxAnDBG53eZADQLQQXd9rurd02nl5QXLrAQQdHrgVH">
</form>
<a id="signout-link" style="cursor: pointer">退出登录</a>
<script>
$(document).ready(function (){
$('#signout-link').click(function (){
$('#signout-form').submit();
});
});
</script>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="base_body">
<script>
let GLOBAL_NEWS = {
add_url: "/user/myspace/news/add/",
get_upload_image_info_url: "/file_system/file/content/whole/index/content/whole/lib/aliyun/upload/image/get_info/",
activity_id: 0, // 0表示所有人可见
};
</script>
<script src="https://cdn.acwing.com/static/web/js/file_system/file/content/whole/lib/aliyun/upload/aliyun-upload-sdk-1.5.0.min.js"></script>
<script src="https://cdn.acwing.com/static/web/js/file_system/file/content/whole/lib/aliyun/upload/es6-promise.min.js"></script>
<script src="https://cdn.acwing.com/static/web/js/file_system/file/content/whole/lib/aliyun/upload/aliyun-oss-sdk-5.3.1.min.js"></script>
<link rel ="stylesheet" href="https://cdn.acwing.com/static/web/css/file_system/file/content/whole/builtin/news/base-0.0.3.css">
<script src="https://cdn.acwing.com/static/web/js/file_system/file/content/whole/builtin/news/dist/ac_news-0.0.24.min.js"></script>
<div class="container">
<div class="row">
<div class="col-xs-offset-0 col-xs-12 col-sm-offset-2 col-sm-8 col-md-offset-2 col-md-8">
<div class="panel panel-default about-index-file-panel" style="margin-bottom: 0;">
<div class="panel-body about-index-file-panel-body">
<div>
<ul class="nav nav-tabs" style="font-size: 17px;">
<li class="active" role="presentation">
<a href="/about/recommended/" class="user-myspace-base-subtitle">推荐</a>
</li>
<li class=" " role="presentation">
<a href="/about/followed/" class="user-myspace-base-subtitle active">关注</a>
</li>
</ul>
</div>
<div class="row" style="margin: 10px 0 0 0;">
<div class="col-xs-2 col-sm-1">
<a href="/user/myspace/index/452072/" target="_blank">
<img class="img-circle" src="https://cdn.acwing.com/media/user/profile/photo/452072_md_8e6dbad438.png" alt="小智的银杏叶的头像" width="45px">
</a>
</div>
<div class="col-xs-10 col-sm-11">
<div class="add-news-text-field" data-toggle="modal" data-target="#modal-add-news">
小智的银杏叶,有什么新鲜事想告诉大家!
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="modal-add-news" class="modal fade" style="display: none;" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<div class="text-center add-news-field-title">创建帖子</div>
<hr style="margin: 10px 0 0 0;">
</div>
<div class="modal-body">
<div class="my-info">
<div class="my-photo">
<a href="/user/myspace/index/452072/" target="_blank">
<img class="img-circle" src="https://cdn.acwing.com/media/user/profile/photo/452072_md_8e6dbad438.png" alt="小智的银杏叶的头像" width="40px">
</a>
</div>
<div class="my-username" style="position: relative; top: -5px;">
小智的银杏叶
</div>
<div>
<select class="add-news-edit-field-authorization">
<option value="all">所有人可见</option>
</select>
</div>
</div>
<div class="add-news-edit-field-all">
<textarea class="add-news-edit-field" placeholder="小智的银杏叶,分享你的新鲜事吧!" maxlength="1000"></textarea>
<div class="add-news-edit-field-photos"></div>
</div>
<div class="add-news-attachment">
<label for="add-news-upload-image" style="width: 100%; cursor: pointer;">
添加图片会获得更多曝光哦!
<span class="attachment-photo glyphicon glyphicon-picture pull-right" title="添加图片"></span>
<input type="file" id="add-news-upload-image" style="display:none" multiple="multiple">
</label>
</div>
<div class="add-news-topic">
<label class="add-news-topic-add-btn" style="width: 100%; cursor: pointer;">
# 话题
</label>
<div class="add-news-topic-auto-complete panel" >
<div class="panel-body">
<div class="add-news-topic-auto-complete-content-field"></div>
</div>
</div>
<script>
$(document).ready(function() {
window.AC_NEWS_TOPIC_AUTO_COMPLETE_URL = "/file_system/search_engine/web_all/topic/get_auto_complete/";
});
</script>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success add-news-field-submit-btn" data-dismiss="modal" disabled>
发帖
</button>
</div>
</div> <!-- / .modal-content -->
</div> <!-- / .modal-dialog -->
</div>
<div id="overlay"></div>
<div class="container">
<div class="row">
<div id="file_display_field" class="col-xs-offset-0 col-xs-12 col-sm-offset-2 col-sm-8 col-md-offset-2 col-md-8">
<div id="file-content-abstract-field-12111529" class="panel panel-default about-index-file-panel file-content-abstract-page-flag"
data-file-id="12111529">
<div class="panel-body about-index-file-panel-body">
<div class="about-index-file-type tex2jax_ignore">
新鲜事
<a href="/file_system/file/content/whole/index/content/12111529/" target="_blank"><span class="file-field-title pull-right">原文</span></a>
</div>
<hr style="margin: 0 0 10px 0;">
<div class="row" style="margin: 0">
<div class="col-xs-2 col-sm-1">
<a href="/user/myspace/index/452072/" target="_blank">
<img class="img-circle" src="https://cdn.acwing.com/media/user/profile/photo/452072_md_8e6dbad438.png"
alt="小智的银杏叶的头像"
width="45px">
</a>
</div>
<div class="col-xs-10 col-sm-11">
<a href="/user/myspace/index/452072/" target="_blank">
<span class="about-index-file-panel-username">
小智的银杏叶
</span>
</a>
<br>
<span title="2024-07-03 09:38">
<span class="about-index-file-panel-time">12分钟前</span>
</span>
</div>
</div>
<div style="padding-left: 45px;">
<div id="file-content-field-12111529" class="file-content-field" style="max-height: none;">
<div class="tex2jax_ignore" style="white-space: pre-wrap; word-break: break-all; padding-right: 25px; margin-top: 10px;">各种赛2.0</div>
<div class="news-photos" style="font-size: 0;">
<img src="https://video.acwing.com/image/default/B9F5FAEBB9814A5393397093B39F1F41-6-2.png?auth_key=1720656000-ac2845wing-0-54f88194bbaccfcf5dc11f1ccb4afa08" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/72CD659C0B4845ADA64C92C85928554B-6-2.png?auth_key=1720656000-ac2845wing-0-423c74e474fecf492732d0cccf3b898d" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/2F3F8E1425CE4B96AA6B998A442927B6-6-2.png?auth_key=1720656000-ac2845wing-0-82ffa269649dad02cc4a16fa80589462" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/E04D3B6642EA42F280AC19BFC311431C-6-2.png?auth_key=1720656000-ac2845wing-0-27bd76ecad633de9381fcae59c367488" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/BF9ABE3281DE40E9B888CA5F7B672D7A-6-2.png?auth_key=1720656000-ac2845wing-0-ecdc8ce546e11e6b49228d776aba98e0" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/535082F466474B9BA0E721D09604A223-6-2.png?auth_key=1720656000-ac2845wing-0-895a8c749e77bb1c2492367ef871ed1b" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/02AA36B9BD6B459DAE558F4A3B838D0D-6-2.png?auth_key=1720656000-ac2845wing-0-53c9d3daadb8198117ec40412b11610b" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
</div>
</div>
<a id="file-content-filed-more-btn-12111529" style="display: none; margin-left: -30px; cursor: pointer;">展开</a>
<script>
$(document).ready(function () {
$("#file-content-field-12111529").find("img").on('click', function() {
$('#overlay')
.css({backgroundImage: `url(${this.src})`})
.addClass('open')
.one('click', function() { $(this).removeClass('open'); });
});
});
</script>
</div>
<hr style="margin: 10px 0 0 0;">
<div class="btn-group btn-group-justified" role="group" style="padding-bottom: 5px;">
<div class="btn-group" role="group">
<form id="form_vote_12111529" class="abstract-vote-field-btn" action="/file_system/file/operation/vote/up/12111529/" method="post">
<input type="hidden" name="csrfmiddlewaretoken" value="1WBlJLEa1PlcgETiLKKZd0oxAnDBG53eZADQLQQXd9rurd02nl5QXLrAQQdHrgVH">
<a class="btn btn-link" title="赞" onclick="$('#form_vote_12111529').submit();" style="cursor: pointer;">
<span class="glyphicon glyphicon-heart-empty form_vote_12111529_heart" style="top: 2px;"></span>
<span class="form_vote_12111529_votecnt">
赞
</span>
</a>
<script>
$(document).ready(function () {
$('#form_vote_12111529').on("submit", GLOBAL_FILE_VOTE_UP_FUNCTION);
});
</script>
</form>
</div>
<div class="btn-group" role="group">
<a id="comment_field_btn_12111529" data-file-id="12111529" class="btn btn-link abstract-comment-field-btn" title="评论">
<span class="file_commentcnt glyphicon glyphicon-comment" style="top: 2px;"></span>
<span id="file_commentcnt_12111529">
评论
</span>
</a>
</div>
<div class="btn-group" role="group">
<form id="form_collect_12111529" class="form_collect abstract-collect-field-btn" action="/file_system/file/operation/collect/add/12111529/" method="post">
<input type="hidden" name="csrfmiddlewaretoken" value="1WBlJLEa1PlcgETiLKKZd0oxAnDBG53eZADQLQQXd9rurd02nl5QXLrAQQdHrgVH">
<a class="btn btn-link" title="收藏" onclick="$('#form_collect_12111529').submit();" style="cursor: pointer;">
<span class="glyphicon glyphicon-star-empty form_collect_12111529_star" style="top: 2px;"></span>
<span class="form_collect_12111529_collectcnt">
收藏
</span>
</a>
<script>
$(document).ready(function () {
$('#form_collect_12111529').on("submit", GLOBAL_FILE_COLLECT_FUNCTION);
});
</script>
</form>
</div>
</div>
<hr style="margin: 0 0 10px 0;">
<div id="comment_field_12111529" style="padding: 10px; display: none;">
<h3 style="font-weight: normal; margin: 10px 0 30px 0;">0 评论</h3>
<div class="row">
<div class="col-md-1 col-sm-2 col-xs-3">
<a href = "/user/myspace/index/452072/">
<img class="img-circle" src="https://cdn.acwing.com/media/user/profile/photo/452072_md_8e6dbad438.png" width="45px" alt="我的头像">
</a>
</div>
<div class="col-md-11 col-sm-10 col-xs-9">
<form id="comment_reply_form_top_12111529" class="comment_reply_form" role="form" method="post" action="/file_system/file/operation/comment/add/12111529/0/" enctype="multipart/form-data">
<input type="hidden" name="csrfmiddlewaretoken" value="1WBlJLEa1PlcgETiLKKZd0oxAnDBG53eZADQLQQXd9rurd02nl5QXLrAQQdHrgVH">
<textarea class="file-comment" name="content" cols="40" rows="2" maxlength="3000" required title="回复" placeholder="在这里写评论...(支持MarkDown和Latex语法)"></textarea>
<div class="col-md-offset-10 col-md-2 col-sm-offset-9 col-sm-3 col-xs-offset-7 col-xs-5">
<button id="comment_reply_submit_btn_12111529" class="form-control btn btn-link" style="border-radius: 5px">
提交评论
</button>
</div>
</form>
<script>
$(document).ready(function () {
$('#comment_reply_submit_btn_12111529').click(function () {
GLOBAL_FILE_OPERATION_ADD_FILE_ID = 12111529;
});
$('#comment_reply_form_top_12111529').on("submit", GLOBAL_FILE_COMMENT_ADD_FUNCTION);
})
</script>
</div>
</div>
<div id="comment_list_field_12111529" class="comment_list_field"></div>
</div>
</div>
</div>
<div id="file-content-abstract-field-12111525" class="panel panel-default about-index-file-panel file-content-abstract-page-flag"
data-file-id="12111525">
<div class="panel-body about-index-file-panel-body">
<div class="about-index-file-type tex2jax_ignore">
新鲜事
<a href="/file_system/file/content/whole/index/content/12111525/" target="_blank"><span class="file-field-title pull-right">原文</span></a>
</div>
<hr style="margin: 0 0 10px 0;">
<div class="row" style="margin: 0">
<div class="col-xs-2 col-sm-1">
<a href="/user/myspace/index/452072/" target="_blank">
<img class="img-circle" src="https://cdn.acwing.com/media/user/profile/photo/452072_md_8e6dbad438.png"
alt="小智的银杏叶的头像"
width="45px">
</a>
</div>
<div class="col-xs-10 col-sm-11">
<a href="/user/myspace/index/452072/" target="_blank">
<span class="about-index-file-panel-username">
小智的银杏叶
</span>
</a>
<br>
<span title="2024-07-03 09:36">
<span class="about-index-file-panel-time">14分钟前</span>
</span>
</div>
</div>
<div style="padding-left: 45px;">
<div id="file-content-field-12111525" class="file-content-field" style="max-height: none;">
<div class="tex2jax_ignore" style="white-space: pre-wrap; word-break: break-all; padding-right: 25px; margin-top: 10px;">各种赛</div>
<div class="news-photos" style="font-size: 0;">
<img src="https://video.acwing.com/image/default/331D5D0A8CF04070809B03642794ACF1-6-2.png?auth_key=1720656000-ac2845wing-0-e2cedee45a00f61726c7d99e8888aba4" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/35F65CFAF0EA43A6B7C6FD06BC83043C-6-2.png?auth_key=1720656000-ac2845wing-0-aee8567c1b4de8f26ecb7cf6601e78aa" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/83B75A4AB78D41AD807F6926995E8E0E-6-2.png?auth_key=1720656000-ac2845wing-0-24a27667f68a6e55c6d1451da9ba86f9" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/C4A3208F9AF14E3B91C8490495C72AA2-6-2.png?auth_key=1720656000-ac2845wing-0-3516c8b73b190e9a6d786ed11a814262" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/7AB540CDED7F4652B4CFECABAC502858-6-2.png?auth_key=1720656000-ac2845wing-0-ff0f05d0a7d8c039d21620a558b9821f" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/C6DFE4E6DCB9432C8D5CB058AA7445BC-6-2.png?auth_key=1720656000-ac2845wing-0-e2ec72f4cfa9b7da457a15347981407f" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/1EC1C9902EEC4A4E9EE2DD55AA47BCFD-6-2.png?auth_key=1720656000-ac2845wing-0-e0ffde9ad633a1db2de0a9ea71fc2908" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/ABD2D25682264931A9D6A01B832702C0-6-2.png?auth_key=1720656000-ac2845wing-0-180b779e94fa81f11201489ca73f3741" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
<img src="https://video.acwing.com/image/default/D1131B67172041AAB6BDB7B959BE6FD9-6-2.png?auth_key=1720656000-ac2845wing-0-182df355a9013e2ffcd0b82a452915da" alt="图片" style="margin: 2px; font-size: 0; border-radius: 5px; object-fit: cover; cursor: pointer; width: 30%; aspect-ratio: 1 / 1;">
</div>
</div>
<a id="file-content-filed-more-btn-12111525" style="display: none; margin-left: -30px; cursor: pointer;">展开</a>
<script>
$(document).ready(function () {
$("#file-content-field-12111525").find("img").on('click', function() {
$('#overlay')
.css({backgroundImage: `url(${this.src})`})
.addClass('open')
.one('click', function() { $(this).removeClass('open'); });
});
});
</script>
</div>
<hr style="margin: 10px 0 0 0;">
<div class="btn-group btn-group-justified" role="group" style="padding-bottom: 5px;">
<div class="btn-group" role="group">
<form id="form_vote_12111525" class="abstract-vote-field-btn" action="/file_system/file/operation/vote/up/12111525/" method="post">
<input type="hidden" name="csrfmiddlewaretoken" value="1WBlJLEa1PlcgETiLKKZd0oxAnDBG53eZADQLQQXd9rurd02nl5QXLrAQQdHrgVH">
<a class="btn btn-link" title="赞" onclick="$('#form_vote_12111525').submit();" style="cursor: pointer;">
<span class="glyphicon glyphicon-heart-empty form_vote_12111525_heart" style="top: 2px;"></span>
<span class="form_vote_12111525_votecnt">
赞
</span>
</a>
<script>
$(document).ready(function () {
$('#form_vote_12111525').on("submit", GLOBAL_FILE_VOTE_UP_FUNCTION);
});
</script>
</form>
</div>
<div class="btn-group" role="group">
<a id="comment_field_btn_12111525" data-file-id="12111525" class="btn btn-link abstract-comment-field-btn" title="评论">
<span class="file_commentcnt glyphicon glyphicon-comment" style="top: 2px;"></span>
<span id="file_commentcnt_12111525">
评论
</span>