08 2020 档案

摘要:#include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #include <sstream> #includ 阅读全文
posted @ 2020-08-31 22:30 DeaL57 阅读(183) 评论(0) 推荐(0)
摘要:#include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #include <sstream> #includ 阅读全文
posted @ 2020-08-30 15:59 DeaL57 阅读(117) 评论(0) 推荐(0)
摘要:CF1204C Anna, Svyatoslav and Maps #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #includ 阅读全文
posted @ 2020-08-28 17:53 DeaL57 阅读(167) 评论(0) 推荐(0)
摘要:Cow and Snacks #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #include <s 阅读全文
posted @ 2020-08-28 17:52 DeaL57 阅读(166) 评论(0) 推荐(0)
摘要:Tree Painting #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #include <ss 阅读全文
posted @ 2020-08-14 10:53 DeaL57 阅读(117) 评论(0) 推荐(0)
摘要:#include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #include <sstream> #includ 阅读全文
posted @ 2020-08-12 15:04 DeaL57 阅读(144) 评论(0) 推荐(0)
摘要:Kabaleo Lite 用带负数的大整数用__int128 #include <bits/stdc++.h> #define ll long long using namespace std; const int MAXN=200050,INF=0x3fffffff; ll n,a[MAXN],b 阅读全文
posted @ 2020-08-04 11:13 DeaL57 阅读(139) 评论(0) 推荐(0)
摘要:Interesting Computer Game #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> 阅读全文
posted @ 2020-08-04 11:07 DeaL57 阅读(131) 评论(0) 推荐(0)
摘要:Balancing Act #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #include <ss 阅读全文
posted @ 2020-08-02 14:16 DeaL57 阅读(94) 评论(0) 推荐(0)
摘要:How far away ? #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #include <map> #include <s 阅读全文
posted @ 2020-08-02 10:43 DeaL57 阅读(216) 评论(0) 推荐(0)
摘要:SPOJ PT07Z, Longest path in a tree #include <iostream> #include <vector> #include <algorithm> #include <string> #include <set> #include <queue> #inclu 阅读全文
posted @ 2020-08-02 08:57 DeaL57 阅读(168) 评论(0) 推荐(0)
摘要:题目 通过题目条件,可以发现:一旦通过(n,k)->(nk,k)的操作来推出新的元组, n必定是k的倍数;而如果没有, 那么肯定是(xk+1,k)的形式。所以,推出第一条结论:只有在满足n=1,n是k的倍数,或者n-1是k的倍数时,(n,k)是传奇元组。 因此,我们可以认为(n,k)是传奇元组,当且 阅读全文
posted @ 2020-08-01 23:30 DeaL57 阅读(162) 评论(0) 推荐(0)