摘要:
Sorting the TombstonesTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeURAL 1252DescriptionThere is time to throw... 阅读全文
摘要:
用 k × 1 的矩形覆盖 n × n 的正方形棋盘用 k × 1 的小矩形覆盖一个 n × n 的正方形棋盘,往往不能实现完全覆盖(比如,有时候 n × n 甚至根本就不是 k 的整倍数)。解题思路:转自:http://www.matrix67.com/blog/archives/5900用 k ... 阅读全文
摘要:
Ancient NecropolisTime Limit:5000MSMemory Limit:4096KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeURAL 1249DescriptionAerophotography data provid... 阅读全文
摘要:
转自:http://www.cppblog.com/ylfeng/archive/2010/03/26/110592.html声明#include using std::bitset;bitset的定义和初始化bitsetbitvec; //32位,全为0。给出的长度值必须是常量表达式。正如这里给出... 阅读全文
摘要:
#includeusing namespace std;const int maxn = 1e4;struct Meeting{ int st,en,idx;}meets[maxn];bool cmp(Meeting a,Meeting b){ //对会议结束时间从小到大排序 retu... 阅读全文
摘要:
吉哥系列故事——完美队形ITime Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2707Accepted Submission(s): 886Proble... 阅读全文
摘要:
/* LCS*/#includeusing namespace std;const int maxn = 1000;int dp[maxn][maxn], c[maxn][maxn];int str1[maxn],str2[maxn];int k;void dfs(int i,int j){ ... 阅读全文
摘要:
Rope in the LabyrinthTime Limit:500MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeURAL 1145DescriptionA labyrinth with rectang... 阅读全文
摘要:
A -RelationsTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeURAL 1142DescriptionBackgroundConsider a specific se... 阅读全文
摘要:
ZYB's PremutationTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 637Accepted Submission(s): 301P... 阅读全文