摘要:
Crazy Search Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 33142 Accepted: 9079 Description Many people like to solve hard puzzles some o 阅读全文
摘要:
487 3279 Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 309685 Accepted: 55292 Description Businesses like to have memorable telephone num 阅读全文
摘要:
分析 题意是求 L R之间的数的因数和 我们知道如果对于一个数 i ( i k时,要加上i和j,因为i和j都是c的因数。 特判1和本身时,要注意对于ik的数要加上本身和1. c++ int main() { ll l,r; while(cin l r) { ll k = sqrt(r),ans = 阅读全文
摘要:
Description George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to 阅读全文
摘要:
数独(深搜)数据最弱版本(poj 2676) Description Sudoku is a very simple task. A square table with 9 rows and 9 columns is divided to 9 smaller squares 3x3 as shown 阅读全文
摘要:
"POJ 2442" Description Given m sequences, each contains n non negative integer. Now we may select one number from each sequence to form a sequence wit 阅读全文
摘要:
逆序对 1.利用归并排序 c++ void merge_sort(int l,int mid,int r) { int k = r l+1; int i = l,j=mid+1; for(int m=l;mr||i=1;x =lowbit(x)) { temp+=c[x]; } return tem 阅读全文
摘要:
统计难题 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 54701 Accepted Submission(s): 19121 Problem 阅读全文