这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《洛谷网校冬季课程报名指南》回复:
qp
在文章《三年来,AI 在高考写作上的进步》发表评论:
qp
## 题目链接 [题目传送门](https://www.luogu.com.cn/problem/P14247) ## 思路 题中意思是只需要一个四元组 $(x,y,z,w)$ 满足: - $1 \le x using namespace std; int main(){ int n; cin>>n; cout<<"Y…
在讨论《KismetOI Easy Round 1 赛后总结帖》回复:
qp
# 题目链接 [题目传送门](https://www.luogu.com.cn/problem/P13133) # Solution ## 题意分析 一共有 $T$ 组数据,每组数据给出一个 $n$,和 $n$ 个数,我们要判断将这 $n$ 个数进行三元组冒泡排序,判断排序后是否有序,如果无序,求出第一个错误的下标 $…
# 题目链接 [题目传送门](https://www.luogu.com.cn/problem/P13158) # Solution ## 题意分析 本题题意其实和经典数学问题翻杯子差不多,可以看成有 $n$ 个杯子,一次只能翻 $k$ 个杯子,问几次能将杯子全部翻成正面朝上。如果不可能的话,就输出 `IMPOSSIB…
在文章《题解:P13158 [GCJ 2017 Qualification] Oversized Pancake Flipper》发表评论:
”知道 S 全部为 +“应改为“直到 S 全部为 +”
在文章《题解:B4226 [常州市赛 2024] 密码》发表评论:
qp
# 题目链接 [题目传送门](https://www.luogu.com.cn/problem/P13474) # Solution ## 分析 给定一系列已知鸟类和非鸟类的动物数据(包含身高和体重),以及一些未知动物的数据,需要判断每个未知动物属于以下哪类: 1. 在鸟类边界内 $→$ ``BIRD``。 1. 在边…
在讨论《33ptsTLE》回复:
@[WE_TRT](luogu://user/1362801)感谢
在讨论《33ptsTLE》回复:
@[dg114514](luogu://user/1373205)OK
```cpp #include #include #include using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(NULL); cout.tie(NULL); long long n; cin >> n; vector v…
[题面传送门](https://www.luogu.com.cn/problem/P11794) ## 思路 ### 预处理 首先先算出最初的个数,固定枚举 `JOI` 中间的 `O`,然后在 `O` 的前面统计枚举 `J`,后面统计枚举 `I`,然后根据乘法原理相乘然后再根据假发原理将每个 `O` 的情况个数再相加即…
本蒟蒻的第一篇题解,不喜勿喷 这道题就是一道~~难度不是特别大的~~ dp 题 ## 思路 对于每一位都有 $3$ 种可能: 1. 进位。 1. 退位。 1. 不退不进。 建立二维数组 $dp_{i,j}$,其中 $i$ 表示第几位,$j$ 表示第几种情况,然后动态规划。 状态转移方程(取最小值): 1. 进位:$dp…
在讨论《0pts 求调》回复:
已AC
在讨论《0pts 求调》回复:
@[bayiran](luogu://user/1509979)帮我改一下
在讨论《0pts 求调》回复:
改了一下变20pts了 ```cpp #include using namespace std; struct mainthing { int v1, p1; } a[61]; struct second { int v2, p2; } b[61][3]; int pp[61]; int f[61][32001]; i…
```cpp #include using namespace std; struct mainthing { int v1, p1; } a[61]; struct second { int v2, p2; } b[61][3]; int pp[61]; int f[61][32001]; int pos2[61];…
这道题也是一道~~送命~~题; **思路** 已知每个单元格上都有一个小小的按钮,我们需要移动鸭子,如果在某一时刻在第 $i$ 个单元格上有不少于 $a_i$ 只小黄鸭,那么该单元格上的按钮就会被永久按下。 题目中让我们求最大值,我们只需要从后往前寻找最大值,将这些最大值~~相加到一个值里面~~累加。 对了别忘了用**…
在讨论《70分求助》回复:
@[weiyeen0201](luogu://user/1458284) 不是哥们,$“Right”R$大写,看看题,~~求关~~
在讨论《75分求调help》回复:
@[SpringQinHao](luogu://user/1117206)OK看明白了
```cpp #include using namespace std; string a[21]; bool cmp(string x, string y) { for(int i = 0; i y[i]; } return x.size() > n; for(int i = 1; i > a[i]; } sort(…
```cpp #include using namespace std; string a[21]; bool cmp(string x, string y) { for(int i = 0; i y[i]; } } int main() { int n; cin >> n; for(int i = 1; i > a[…
```cpp #include using namespace std; bool flag[110]; int c[27]; int main() { string s; cin >> s; for(int i = 0;i<s.size();i++) { int a=s[i]-'a'; c[a]++; } int c…
在讨论《90分,求调》回复:
@[HKW0202](/user/463846) 改成unsigned long long之后变成“WA”了
在讨论《50分,求调》回复:
@[tomatoANG](/user/1000126) 改完之后是八十分![]()
```cpp #include using namespace std; int main() { string s; cin >> s; int a; cin >> a; int i = 0; int cnt = 0; while(cnt = s[i + 1]) { s[i] = 'a'; cnt++; } i++;…
```cpp #include #include using namespace std; long long n; bool check(double a) { return floor(a * a * a) > n; long long l = 0, r = n + 1, ans = 0; while(l <= r…
```cpp #include using namespace std; string s[54]; int main() { int n; cin >> n; for(int i=1;i >s[i]; } sort(s+1,s+n+1); int cnt=0; for(int i=2;i<=n;i++){ if(s[…