摘要:说明:以下代码是个人按照自己的理解写的,可能有错误或者不太规范的地方,欢迎指出!代码如下://插入、删除、查询、遍历四种操作//注意:四种操作的函数实现中,T都是指向上一个结点的指针,以此方便操作。#includeusing namespace std;typedef...
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:https://vjudge.net/problem/51Nod-1282 1282 时钟 题目来源: Codility 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 1282 时钟 题目来源: Codility 基准时间限制:1 秒 空间限制:131
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5178 pairs Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submi
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:https://vjudge.net/problem/CodeChef-FORESTGA 题解: 现场赛。拿到这题很快就知道是二分,但是一直wa,怎么修改也wa,后来又换了种错误的思路,最后还是觉得二分是正确的,但还是wa。人生,就是在这些瞬间被怀疑的…… 结束后,才发现,test()的时
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:https://vjudge.net/problem/UVA-11752题解:1.首先变量必须用unsig long long定义。2.可以分析得到,当指数为合数的时候,该值合法。3.由于最大值为(2^64)-1,而最小的合数为4, 所以底数最大都不超过(2...
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:https://vjudge.net/problem/HackerRank-leonardo-and-lucky-numbers 题解: 1.根据扩展欧几里得:7*x + 4*y = gcd(7,4) = 1,必有整数解,其中一组为(-1,2),通解为:(-1+4*k, 2-7*k)。 2
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/problemset/problem/86/D D. Powerful array time limit per test 5 seconds memory limit per test 256 megabytes input standard 
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://poj.org/problem?id=2115 C Looooops Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 27838 Accepted: 7930 Description A Compiler 
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3605 Escape Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Subm
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:https://vjudge.net/problem/UESTC-900 方老师炸弹 方老师炸弹 Time Limit: 4000/2000MS (Java/Others) Memory Limit: 65535/65535KB (Java/Others) Submit Status 方老
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=3732 Description 给你N个点的无向图 (1 <= N <= 15,000),记为:1…N。 图中有M条边 (1 <= M <= 30,000) ,第j条边的长度为: d_j ( 
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2586How far away ?Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K...
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5969最大的位或Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Ot...
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5968 异或密码 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submis
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/contest/742/problem/C C. Arpa's loud Owf and Mehrdad's evil plan time limit per test 1 second memory limit per test 256 meg
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/contest/742/problem/D D. Arpa's weak amphitheater and Mehrdad's valuable Hoses time limit per test 1 second memory limit pe
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/contest/742/problem/BB. Arpa’s obvious problem and Mehrdad’s terrible solutiontime limit per test1 secondme...
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/contest/761/problem/DD. Dasha and Very Difficult Problemtime limit per test2 secondsmemory limit per test25...
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/contest/132/problem/C C. Logo Turtle time limit per test 2 seconds memory limit per test 256 megabytes input standard input
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/contest/600/problem/C C. Make Palindrome time limit per test 2 seconds memory limit per test 256 megabytes input standard i
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/problemset/problem/60/AA. Where Are My Flakes?time limit per test2 secondsmemory limit per test256 megabyte...
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/contest/630/problem/K K. Indivisibility time limit per test 0.5 seconds memory limit per test 64 megabytes input standard i
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/problemset/problem/788/BB. Weird journeytime limit per test2 secondsmemory limit per test256 megabytesinput...
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/problemset/problem/451/DD. Count Good Substringstime limit per test2 secondsmemory limit per test256 megaby...
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/problemset/problem/761/C C. Dasha and Password time limit per test 2 seconds memory limit per test 256 megabytes input stan
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/contest/761/problem/B B. Dasha and friends time limit per test 2 seconds memory limit per test 256 megabytes input standard
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/contest/7/problem/D D. Palindrome Degree time limit per test 1 second memory limit per test 256 megabytes input standard in
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/contest/158/problem/EE. Phone Talkstime limit per test3 secondsmemory limit per test256 megabytesinputstand...
        
阅读全文
 
            
         
        
            
            
摘要:题目链接:http://codeforces.com/problemset/problem/117/C C. Cycle time limit per test 2.5 seconds memory limit per test 256 megabytes input standard input 
        
阅读全文