斩断昔日旧枷锁,贪心DP远离我!
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《40分求调,玄关》回复:
@[rosefor_u](luogu://user/754912) 好的大佬
# RT ``` #include using namespace std; using ll = long long; bool isCompletelySquare(ll n, ll &sqrt_n) { if (n > k; while (k--) { ll n, d, e; cin >> n >> d >> e…
在讨论《警钟短鸣:奇异搞笑DFS无法通过!》回复:
@[ouxiyao](luogu://user/1155764) 好的我再去试试
## ~~搞半天原来是道DP~~ 44分DFS代码: ``` #include using namespace std; int List[20][20] , cnt = 0; int n; queue > q; void dfs(int x , int y , int cntt , queue > Path){ if…
在讨论《90分自创算法求Hack玄关》回复:
目前把除了subtask全过了,主要是没考虑重边 ``` #include using namespace std; vector a[1010]; //左到右 vector b[1010]; //右到左 int ans; bool check[1010][1010]; bool left_used[1010], ri…
# RT ``` #include using namespace std; vector a[1010]; //左到右 vector b[1010]; //右到左 int ans; bool left_used[1010], right_used[1010]; int Size(int j){ // 实际存在的孩子数…
``` #include using namespace std; vector > v; queue q; bool vis[100010] , vis1[100010]; int n , m; void dfs(int x){ if(vis[x] == 1) return; vis[x] = 1; cout > n…
在讨论《先dp连续i个abc的最大得分,这样的思路有问题吗?》回复:
@littleFond 捉
在讨论《40分!高精度加法!大佬求助!》回复:
#### 二分+队列+递归更简单捏 ``` #include using namespace std; int m , n , a[200001] , l1 , s , r1 , maxx = 0 , ans; priority_queue que; int fen(int l , int r){ if(l == r)…
在讨论《P1001所有可用算法》回复:
# 二分+队列+递归即可 ``` #include using namespace std; int m , n , a[200001] , l1 , s , r1 , maxx = 0 , ans; priority_queue que; int fen(int l , int r){ if(l == r) retu…
在讨论《关于那些年让我崩溃的的题目》回复:
@[1217Eirc](/user/687268) 我没实力,你最厉害了
在讨论《关于那些年让我崩溃的的题目》回复:
@[crz_qwq](/user/795344) @[Nuclear_Fish_cyq](/user/670355) @[a_blue_cell](/user/422759) 大佬们我这下老实了呜呜呜QAQ
请看下面: TOP0(置顶) $bfs$:$P1825$ $Corn$ $Maze$ $S$(坑贼拉多,数据贼恶心) TOP1 模拟: P9750 [CSP-J 2023] 一元二次方程(无敌题干) TOP2 bfs: P1135 奇怪的电梯(数据极其恶心) TOP3 贪心: P1809 过河问题 TOP4 贪心: U…
在讨论《求助,错误集齐了!》回复:
@[pbcoding](/user/1210725) 谢谢大佬已关!!!!!
在讨论《求助,错误集齐了!》回复:
@[wangxx2012](/user/1068781) 没办法,老师不让哈哈哈
在讨论《求助,错误集齐了!》回复:
@[pbcoding](/user/1210725) 大佬我改了一下,就剩RE了,您看看 ``` #include using namespace std; int a[10010] = {1} , n , j = 0; int k[5010][5010]; void dfs(int x , int rest){ if…
 # 集齐了朋友们,求助,代码如下 ``` #include using namespace std; int a[10010] = {1} , n , j = 0; int k[5010][5…
``` #include using namespace std; char image[10010][10010] , ima[10010][10010]; int n , m , cnt; void dfs(int a , int b){ image[a][b] = '.'; if(a - 1 > 0 and im…
在讨论《警钟长鸣,如果你想用数组》回复:
@[jywc666](/user/1399773) 因为我就是用的数组,然后破防了
千万别用,别问我咋知道的 用了就是TLE 如下图:  奉上TLE代码: ```cpp #include using namespace std; int n , k; bool vis[30];…
在讨论《求助40分!!!》回复:
@[Hyper_zero](/user/778363) 我懂了,已关我去试试
在讨论《求助40分!!!》回复:
@[Finner_forgeter](/user/1360746) 那大佬知道我这个哪错了吗
在讨论《求助40分!!!》回复:
@[Hyper_zero](/user/778363) 大佬你知道哪里错了吗呜呜呜,调了半小时了
在讨论《求助40分!!!》回复:
@[IaLWH](/user/486727) 大佬,我刚学C++,我这个代码到底哪错了啊呜呜呜
代码如下: ``` #include using namespace std; int m , n , a[200001] , l1 , s , r1 , maxx = 0 , ans; priority_queue que; int fen(int l , int r){ if(l == r) return a[l]…
### 没有一个人24分! ``` #include using namespace std; struct COWS{ int s , e; }cows[5010]; int leastone[5010] , nobody[5010]; int main(){ int n , lo = 1 , nb = 1 , lo…

``` #include using namespace std; int n; struct part{ int a , b; }x[20000000]; part tmp; long long ans = 1; bool cmp(part x , part y){ if(x.b == y.b) return x.a…
在讨论《40分,醉了》回复:
@[zsq20100122](/user/807774) 全体目光向我看齐,我宣布个事,我是个。。。。
``` #include #include #include using namespace std; //素数 bool isPrime(int n){ int m = sqrt(n); if(n == 1) return false; for(int i = 2; i y){ int g; g = x; x = y…