hdu
ujn20161222
persistence
展开
-
2018_2_14_Robberies _背包
The aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because they become too greedy. He has decided to work in the lucrati...原创 2018-02-14 22:20:56 · 96 阅读 · 0 评论 -
Alice’s Stamps_dp_2018_3_8
Alice likes to collect stamps. She is now at the post office buying some new stamps. There are N different kinds of stamps that exist in the world; they are numbered 1 through N. However, stamps are ...原创 2018-03-10 11:05:59 · 195 阅读 · 0 评论 -
Knightmare _打表_数学_2018_2_24
A knight jumps around an infinite chessboard. The chessboard is an unexplored territory. In the spirit of explorers, whoever stands on a square for the first time claims the ownership of this square. ...原创 2018-02-24 16:16:17 · 203 阅读 · 0 评论 -
THE MATRIX PROBLEM_差分约束_2018_3_18
这种写法就是判断负环L<=num[i][j]*b[j]/a[i]<=U#define c num[i][j]L/c<=b[j]/a[i]<=U/clog(L/c)<=log(b[j])-log(a[i])<=log(U/c)THE MATRIX PROBLEMTime Limit: 4000/2000 MS (Java/Others) Memory Lim...原创 2018-03-18 09:55:07 · 163 阅读 · 0 评论 -
Subway Chasing_差分约束_2018_3_18
首先建图,l[]数组判断增环Subway ChasingTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 336 Accepted Submission(s): 116Special JudgeProblem Description M...原创 2018-03-18 13:22:22 · 313 阅读 · 0 评论 -
Dogs and Cages_数学+2018_3_18
Jerry likes dogs. He has N dogs numbered 0,1,...,N−1. He also has N cages numbered 0,1,...,N−1. Everyday he takes all his dogs out and walks them outside. When he is back home, as dogs can’t recognize...原创 2018-03-18 14:44:44 · 325 阅读 · 0 评论 -
Rich Game_模拟+思维+2018_3_18
Rich GameTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 420 Accepted Submission(s): 172Problem Description One day, God Sheep would like to ...原创 2018-03-18 14:56:02 · 277 阅读 · 0 评论