原创 HDU4825 Xor Sum 0-1字典樹 最大異或和

Xor Sum Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 132768/132768 K (Java/Others) Total Submission(s): 33

原创 Android Studio 使用技巧 [自己總結]

編譯 cmake clean 可直接刪除 .externalNativeBuild文件 build clean 可直接刪除 build 目錄 類 看類繼承圖 control + H 查看子類 command +

原创 pku3261 Milk Patterns 後綴數組/可重疊的 k 次最長重複子串

Milk Patterns Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 16696   Accepted: 7371 Case Time Limit: 2

原创 895C - Square Subsets 狀壓DP + 離散化

C. Square Subsets time limit per test 4 seconds memory limit per test 256 megabytes input standard

原创 【poj1743】Musical Theme 後綴數組/不可重疊最長重複子串 + 雙指針掃描

Musical Theme Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 31535   Accepted: 10511 Description A

原创 Wannafly挑戰賽5 D題題解 數學

時間限制:C/C++ 1秒,其他語言2秒空間限制:C/C++ 32768K,其他語言65536K64bit IO Format: %lld 題目描述 給定一個小寫字母字符串T 求有多少長度爲m的小寫字母字符串S滿足,T是S

原创 spoj694,spoj705 後綴數組/不相同的子串的個數 計算貢獻

Given a string, we need to find the total number of its distinct substrings. Input T- number of test cases. T<=20; Ea

原创 Aladdin and the Flying Carpet LightOJ - 1341 數論/唯一分解定理

題目鏈接 可以利用唯一分解定義求出有多少個約數,然後再減去小於b的.我直接求出了 約數,然後計算,比較耿直~~ #include<bits/stdc++.h> using namespace std; typedef long

原创 G - Coding Contest HDU - 5988 網絡流

G - Coding Contest  HDU - 5988  A coding contest will be held in this university, in a huge playground. The whole p

原创 1954: Pku3764 The xor-longest Path 0-1字典樹

1954: Pku3764 The xor-longest Path Time Limit: 1 Sec  Memory Limit: 64 MBSubmit: 897  Solved: 406 [Submit][Status][Di

原创 Wannafly挑戰賽5 A 前綴和+暴力

時間限制:C/C++ 2秒,其他語言4秒空間限制:C/C++ 65536K,其他語言131072K64bit IO Format: %lld 題目描述 星神是來自宇宙的 所以珂朵莉也是吧 所以我就出了個題 給你一個長爲

原创 進程和線程關係及區別

1.定義 進程是具有一定獨立功能的程序關於某個數據集合上的一次運行活動,進程是系統進行資源分配和調度的一個獨立單位. 線程是進程的一個實體,是CPU調度和分派的基本單位,它是比進程更小的能獨立運行的基本單位.線程自己基本上不擁有

原创 Pick The Sticks UESTC - 1218 0-1揹包變形

題目鏈接 The story happened long long ago. One day, Cao Cao made a special order called “Chicken Rib” to his army. No o

原创 Graph Reconstruction ZOJ - 3732 Havel-Hakimi定理 + 構造

Graph Reconstruction Let there be a simple graph with N vertices but we just know the degree of each vertex. Is it

原创 Educational Codeforces Round 34 題解

A. Hungry Student Problem time limit per test1 second memory limit per test256 megabytes inputstandard input ou