Time of Update: 2018-08-21
1、問題背景 統一一周內植樹的數量,利用柱狀圖來實現 2、實現源碼 (1)X軸從零刻度開始 <!DOCTYPE html><html><head><meta charset="UTF-8"><title>echarts-X軸不從0刻度開始</title><link rel="shortcut icon"
Time of Update: 2018-08-21
題目大意:給你n個字串,讓你找出他們的最長公用子串,如果存在多條,輸出字典序最小的一個,若不存在,輸出“IDENTITY LOST”。 分析:感覺就是 POJ1226,POJ3080 的綜合。資料量不大,暴力就可以過。我感覺這題的考察點應該是字串的排序,在找出m個最長公用子串後輸出字典序最小的一個字串才是本題的一個坑。 至於字串排序,可以參考一下:字串排序詳解 實現代碼如下: #include <cstdio>#include &
Time of Update: 2018-08-21
題目意思就是讓你求無向圖最小環,但是給資料的方式非常噁心。 我的用並查集+暴力的方式…… 先給每個邊的頂點標號,然後…… 把A能到B,B也能到A的邊的點,給並為一個點…… 然後floyd求最小環。 floyd最小環我自己還不是非常理解…… 但是先用著,上課再想 Executing... Test 1: TEST OK [0.005 secs, 4028 KB] Test 2: TEST OK [0.003
Time of Update: 2018-08-21
題意:中文題目,自行理解。 解題思路:直接暴力,詳見代碼。 Code: #include <iostream>#include <cstdio>#include <cstring>using namespace std;int main(){ //freopen("input.txt","r",stdin); int len2; char str[60],temp[8]; while(
Time of Update: 2018-08-21
spark通訊模組 1、spark的 cluster manager可以 有 local , standalone, mesos , yarn等部署方式,為了 集中通訊方式 1、rpc remote produce call spark的通訊機制: akka的優勢和特性如下: 1、並行和分布式:akka在設計時採用了非同步通訊和分布式架構 2、可靠性:在本地、遠程都有監控和恢複機制 3、高效能:在單機環境中
Time of Update: 2018-08-21
http://acm.hdu.edu.cn/showproblem.php?pid=2609 對每個串都求出最小表示的串,sort一下,暴力一下。。。A了 #define N 10005char str[N];struct node{ char s[1000];}ss[N];bool cmp(node a,node b){ return strcmp(a.s,b.s)<1;}int Minrp(char *s,int l){ int i=0,j=1,k=0,
Time of Update: 2018-08-21
1、修改 index.php和product.php 兩個代碼都一樣子 <?php# MetInfo Enterprise Content Management System# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.define('M_NAME', 'product');define('M_MODULE', 'web');define('M_CLASS',
Time of Update: 2018-08-21
開關問題 Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 9787 Accepted: 3930 Description
Time of Update: 2018-08-21
簡介 系統內建的搜尋網頁面類 — UISearchDisplayController和UISearchController詳細的使用方法, 讓你更方便快捷的進行搜尋功能開發. 效果如下: UISearchDisplayController NS_CLASS_DEPRECATED_IOS(3_0, 8_0, “UISearchDisplayController has been replaced with UISearchController”)
Time of Update: 2018-08-21
利用了kmp的性質,kmp可以找出前i個在主串出現的次數(可覆蓋),同樣也可以找出後j個在主串出現的次數,只需要反向kmp就行了==,具體實現是兩次預先處理正向&反向,然後記錄num1和num2數組 所以複雜度是線性時間.....理解kmp是重點。 #define N 100005char s[N],t[N];int next1[N],next2[N];int num1[N],num2[N];//記錄i左邊在主串出現次數和i右邊的int l1,l2;void gao1(){
Time of Update: 2018-08-21
**.javapubic String test(Model model,User user,HttpServletRequest request,HttpServletResponse response,String channel) {List<User> ctList = querylist(channel); String s= tntProm.getDistributor(); List<String> list = new
Time of Update: 2018-08-21
Pots Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 19042 Accepted: 8027
Time of Update: 2018-08-21
1.刪除注釋時半個漢字問題(刪除一個漢字,漢字沒有了,但會多出一個問號。),方法: ① 將 SuperBackspace.em 複製到 Source Insight安裝目錄;② Project→Open Project,開啟Base項目;③ 將複製過去的SuperBackspace.em添加(滑鼠直接拖進入)入Base項目;④ 重啟SourceInsight;⑤ Options→Key Assignments,將Marco:
Time of Update: 2018-08-21
private void Add(int count) { GuYuGplot.Gplot gplot = new GuYuGplot.Gplot(); gplot.Width = this.Height; &
Time of Update: 2018-08-21
路徑 :\templates\metv6 head.php <ul class="dropdown-menu dropdown-menu-right animate"> <li class="dropdown-item" role="presentation"> <a
Time of Update: 2018-08-21
先介紹一下Trigger的常用屬性: jobKey 標記了Trigger被觸發的時候應該被調用的Job的id。 startTime 表示了Trigger的調度第一次應該生效的時間。值是一個java.util.Date對象。 endTime 表示了Trigger的調度不再生效的事件。
Time of Update: 2018-08-21
題意:給定n、k,求∑C(n,i)*i^k。 思路: 1.導數法:(1+x)^n,連續求導。比賽時想到這個做法的,可惜手裡沒筆沒草稿紙,腦推的難受,所以。。。放棄了。 2.dp:dp[i][j]代表j個盒子放了i個東西,且每個盒子都有東西的方案數。式子轉化為:∑dp[k][i]*2^(n-i) 個人欣賞思路2,來自:http://blog.csdn.net/qq_36797743/article/details/79332455 ac代碼:
Time of Update: 2018-08-21
傳送門 思路: 起初思路挺好,後來就比較奇怪的一道題目 玩法很像SDOI2016R2的硬幣遊戲,不過那個題目直接暴力SG就可以過,本題直接套規則只有30分; 稍微最佳化一下,不枚舉k,直接每次xor一下後繼狀態的sg,可以得50分,複雜度 O(nlogn) O(n\log n); 70分需要一個比較好玩的結論: 如果 ⌊ni⌋=⌊nj⌋ \lfloor\frac n i\rfloor=\lfloor\frac n
Time of Update: 2018-08-21
題目地址:http://acm.scu.edu.cn/soj/problem.action?id=4439 題目意思:給定n個點m條邊,給點染色,問如何染色可以是的每條邊的端點至少有一個點被染色。求染色的最小值(染色最小的點滿足條件) 題解:因為輸入的時候保證。所以即使是最壞的情況的,前30個點都染色就也可以滿足條件,因此,對前30個點的狀態枚舉dfs暴搜(得剪枝)一下就過了。 #include <cstdio>#include
Time of Update: 2018-08-21
題目: Given a string, find the length of the longest substring without repeating characters. Examples: Given “abcabcbb”, the answer is “abc”, which the length is 3. Given “bbbbb”, the answer is “b”, with the length of 1. Given “pwwkew”, the