摘要:
https://codeforces.com/contest/1954 B. Make It Ugly time limit per test 2 seconds memory limit per test 256 megabytes 题意:对于一个数组,如果能进行若干以下操作,使得所有元素均相等, 阅读全文
摘要:
Markdown语言图片居中、并调整图片大小 Mardkdown语言本身不直接支持调整图片位置/大小,但是Mardkdown语言支持HTML语言,因此可以通过HTML语言修改位置/大小,语法如下 居中,并指定图片宽度和高度,代码如下: html <div align="center"> <img s 阅读全文
摘要:
SMU 2024 spring 天梯赛2(补题) https://pintia.cn/problem-sets/1772539187410104320/exam/overview 7-10 红色警报 错误: ① 没写 ② 用的unordered_map<>判断的联通条件。只要有城市和它相连就判它在城 阅读全文
摘要:
走楼梯(记忆化搜索版) //暴力dfs+记录答案 #include<bits/stdc++.h> using namespace std; #define int long long const int N=1e5+10; int memo[N]; int dfs(int n) { if(memo[ 阅读全文
摘要:
SMU 2024 spring 天梯赛1 https://pintia.cn/problem-sets/1767462526651166720 L1-3 小孩子才做选择,大人全都要 收益要大于狗找到的才能狗算赚到。不是吃到就算赚到。 #include<bits/stdc++.h> using nam 阅读全文