摘要:
从序列中每次消去回文串,问最少几次消除完 #include <iostream> #include <cstring> using namespace std ; const int N=503,inf=0x3f3f3f3f; int f[N][N],a[N],n; signed main(){ i 阅读全文
posted @ 2023-02-24 21:39
towboat
阅读(13)
评论(0)
推荐(0)
摘要:
从序列中找一些数,使平均数>=m,问最少取几个数》 #include <iostream> #include<algorithm> #include <cstring> #define IOS std::ios::sync_with_stdio(0) using namespace std; con 阅读全文
posted @ 2023-02-24 14:47
towboat
阅读(14)
评论(0)
推荐(0)
摘要:
给3个数字, 求组成n 的方案中 数字个数最多的 ? #include <iostream> #include<queue> #include <cstring> #define IOS std::ios::sync_with_stdio(0) using namespace std; const 阅读全文
posted @ 2023-02-24 12:30
towboat
阅读(9)
评论(0)
推荐(0)
摘要:
给了三个数: p,q,r(−1e9<=p,q,r<=1e9)p,q,r(−1e9<=p,q,r<=1e9) 然后给了n个数a1,a2...an(−1e9<=ai<=1e9)a1,a2...an(−1e9<=ai<=1e9) 求找出三个数ai,aj,ak(1<=i<=j<=k<=n)ai,a 阅读全文
posted @ 2023-02-24 12:27
towboat
阅读(13)
评论(0)
推荐(0)
摘要:
对字符串s,多次询问,给你两个数L和R,问在字符串区间l到r的字串中,包含多少回文串。 #include <iostream> #include<queue> #include <cstring> #define IOS std::ios::sync_with_stdio(0) using name 阅读全文
posted @ 2023-02-24 00:41
towboat
阅读(15)
评论(0)
推荐(0)