原创 UVALive - 6976 //ZOJ 3826 hash+二分查找

In Marjar University, students in College of Computer Science will learn EON (Edward Object Notation), which is a hiera

原创 codeforces 1029D Concatenated Multiples 預處理+二分

D. Concatenated Multiples time limit per test 2 seconds memory limit per test 256 megabytes input standard input output

原创 2018南京網絡賽 E.AC Challenge 狀壓dp

  1000ms 128536K AC Challenge Dlsj is competing in a contest with n(0<n≤20)n (0 < n \le 20)n(0<n≤20) problems. And he k

原创 2018南京網絡賽 G+Lpl and Energy-saving Lamps 線段樹預處理

During tea-drinking, princess, amongst other things, asked why has such a good-natured and cute Dragon imprisoned Lpl i

原创 power oj 2826: 有趣的遊戲 spfa+暴力判環(或tarjan縮點)

2826: 有趣的遊戲 Time Limit: 2000 MS Memory Limit: 9000 KB Total Submit: 72 Accepted: 1 Page View: 181Submit Status Discuss

原创 HDU 6315 Naive Operations 線段樹+lazy標記

Naive Operations Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 502768/502768 K (Java/Others) Total Submission

原创 power oj 2610 hash——強大而又溫柔的暴力

判斷迴文串 Time Limit: 2000 MS Memory Limit: 4096 KB Total Submit: 298 Accepted: 50 Page View: 525Submit Status Discu

原创 hdu 6242 隨機數+克萊姆法則

Geometry Problem                            Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/262144 K (Ja

原创 HDU 6395 Sequence 分段矩陣快速冪

題目連接 題意:就是求這個數列的前的第n項的值並mod1e9+7。 比賽的時候都知道是矩陣快速冪,但是就是不知道後面的向下取整怎麼處理,後來看到題解說的是分段矩陣快速冪才恍然大悟。   思路:整個題就是這個後面的那個向下取整不好處理,我的

原创 poj 1273 最大流(三種方法)

Drainage DitchesTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 82153 Accepted: 31914DescriptionEvery time it

原创 codeforces 1005F dfs+bfs+思維

F. Berland and the Shortest Pathstime limit per test5 secondsmemory limit per test256 megabytesinputstandard inputoutpu

原创 牛客多校第一場 D.Two Graphs 暴力全排列+hash圖去重

鏈接:https://www.nowcoder.com/acm/contest/139/D 來源:牛客網   題目描述 Two undirected simple graphs and where are isomorphic wh

原创 poj 1459 多源多匯最大流模板題 Dinic

Power NetworkTime Limit: 2000MS Memory Limit: 32768KTotal Submissions: 29855 Accepted: 15447DescriptionA power network

原创 HDU 6398 Pizza Hub 模擬,分內討論

Pizza Hub Time Limit: 3000/3000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others) Total Submission(s)

原创 HDU 6424 Rikka with Time Complexity sb數學題

Rikka with Time Complexity Calculating and comparing time complexity for algorithms are the most important necessary sk