LOG_DHU认识实习_二分
文章平均质量分 68
LOG_DHU认识实习_二分
Biggoose-wl
dhu菜鸡
展开
-
Inflation
洛谷传送门虽然历经艰辛,最终在各位大佬的帮助下,我终于算是独立完成一道题了(撒花)思路可以参考这位网友的题解我用的二分法AC题解:#include<bits/stdc++.h>#define int long long using namespace std;int t,n,k;int p[110];//用来储存 Pn个系数 bool check(int ans){ int sum[110];//对应系数的前n项和 for(int i=0;i<=原创 2022-04-01 00:22:46 · 120 阅读 · 0 评论 -
Palindromes Coloring
题目描述You have a stringssconsisting of lowercase Latin alphabet letters.You can color some letters in colors from11tokk. It is not necessary to paint all the letters. But for each color, there must be a letter painted in that color.Then you can s...翻译 2022-03-31 19:04:05 · 241 阅读 · 0 评论 -
The Delivery Dilemma
题目描述Petya is preparing for his birthday. He decided that there would benndifferent dishes on the dinner table, numbered from11tonn. Since Petya doesn't like to cook, he wants to order these dishes in restaurants.Unfortunately, all dishes are prep...原创 2022-03-31 00:05:11 · 156 阅读 · 0 评论 -
这是一个图片链接
原创 2022-03-30 17:01:11 · 467 阅读 · 0 评论 -
poisoned dagger
题目描述Monocarp is playing yet another computer game. In this game, his character has to kill a dragon. The battle with the dragon lasts100^{500}100500seconds, during which Monocarp attacks the dragon with a poisoned dagger. Theii-th attack is performed...原创 2022-03-30 16:57:28 · 517 阅读 · 0 评论