我是最重要的氢元素(I'm just a nobody.)
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《「SFMOI」Round II 赛时答疑帖》回复:
Div.2只做A、B、C、D对吧
在讨论《OUTPUT exceeds?》回复:
@[NewbieZZZ](luogu://user/1120498)@[nbhs23a28](luogu://user/1271868)OK 过了 此章已完结
``` cpp #include using namespace std; int a[5010][2000]={{1,1},{1,1}}; int n; void pl(int x) { a[x][0]=max(a[x-1][0],a[x-2][0]); int mor=0; for(int i=1;i >n; fo…
在讨论《TLE...0》回复:
@[Orange0628](luogu://user/980202) 那肯定的,默认语言,从来没改过,上来就是直接写代码的。
在讨论《TLE...0》回复:
@[Orange0628](luogu://user/980202) 
在讨论《TLE...0》回复:
@[Orange0628](luogu://user/980202) 
``` cpp #include using namespace std; int n; int pre[12]; vector a; vector tmp; void asort(int x,vector v) { if(x==0) { for(int i=1;i >n; for(int i=0;i<n;) a.pu…
在讨论《LGR-231-Div.3 & 「CZOI-R4」赛时答疑》回复:
 ???
今天我们来分析一下[P2842](www.luogu.com.cn/problem/P2842)这题为什么要用dp动态规划。 我们学过的基础算法有: ``` 高精度计算 排序 递推 递归 深度优先搜索 回溯 广度优先搜索(宽度优先搜索) 贪心 分治 动态规划 ``` 然后去掉没用的: ``` 递推 动态规划 贪心 ``…
```cpp #include using namespace std; int m,n; int a[81][81]; short n2[110]={1,2}; int ans[10001]={1,0}; int ans1[1020]={0,0}; void c2() { int ou=0; for(int i=1;…
# 排序算法 ## 选择排序 ### 代码 ``` cpp #include using namespace std; int main() { int a[110],maxn=-1,pos; int n; for(int i=1;i >a[i]; for(int i=n;i>=2/*注意不是i>=1*/;i--) {…
https://www.luogu.com.cn/record/213578043 这是链接 这是代码: ```cpp #include using namespace std; int ex,cb,promax=-1,ans; double pro[100001]={},down; double k[100001]=…
## 思路:模拟。 先来看一下输赢对照的表格(甲的得分): |甲(列)乙(行)|0|1|2|3|4| |:-:|:-:|:-:|:-:|:-:|:-:| |0|0|0|1|1|0| |1|1|0|0|1|0| |2|0|1|0|0|1| |3|0|0|1|0|1| |4|1|1|0|0|0| 所以可以定义二维数组: `…
这是我的代码 ```cpp #include using namespace std; char c,x; int f=1,n=1,num=0,a,b; bool flag; int main() { while(cin>>c) { if(c=='-') { b+=n*f*num; x=0; f=-1; flag=0;…
```cpp #include using namespace std; char c; char x; int f=0; int num=0,xn=0,a=0; int main() { cin>>x; while(x!='=') { if(isalpha(x)) { xn+=f?a:-a; a=0; c=x; }…
在讨论《0fen》回复:
```cpp //代码更新: #include using namespace std; char c; char x; int f=0; int num=0,xn=0,a=0; int main() { cin>>x; while(x!='=') { if(isalpha(x)) { xn+=f?a:-a; a=0;…
```cpp #include using namespace std; char c; char x; int f=0; int num=0,xn=0,a=0; int main() { cin>>x; while(x!='=') { if(isalpha(x)) { xn+=f?a:-a; a=0; c=x; }…
```cpp #include using namespace std; int main() { string s; int x[7]={0,210,210,210,210,210,210},cnt=0; long long ans=0; for(int i=1;i >s; if(s[s.size()-1]=='.'…
在讨论《求助》回复:
@[MingDynasty](luogu://user/1015347)这不就是题解吗
在讨论《求助大佬,62分,怎么错了,谢谢你》回复:
``` c #include int main() { int n; scanf("%d",&n); char s[100000]; scanf("%s",s); int count=0;//原始字符计数 int maxcount=0;//最大的计数 if(n==1) { printf("%d",count); } e…
在讨论《14'?》回复:
@[ZJ_lzz](luogu://user/1254085)@[gaohongyuan](luogu://user/1374261)谈话请私聊
在讨论《14'?》回复:
@[ZJ_lzz](luogu://user/1254085)@[gaohongyuan](luogu://user/1374261) 可以不要吵了吗
在讨论《14'?》回复:
@[ZJ_lzz](luogu://user/1254085)( ̄_, ̄ )
在讨论《14'?》回复:
@[ZJ_lzz](luogu://user/1254085)本人表示看不懂你的代码。……
在讨论《14'?》回复:
@[ZJ_lzz](luogu://user/1254085) 这…… ``` cpp #include using namespace std; int f[12][12];//初始 int t[12][12];//结束 int H[12][12];//中转 bool ps(int n)//判断1 { for(int…
代码如下: ``` cpp #include using namespace std; int f[12][12]; int t[12][12]; int H[12][12]; bool ps(int n) { for(int i=1;i >n; for(int i=1;i >a; for(int j=0;j >a;…
在讨论《50分 求指导》回复:
题解里的预言实现了
``` cpp #include using namespace std; int f[110]={1,1}; int ans[110]={}; void p() { int k; int s=0; ans[0]=max(ans[0],f[0]); for(k=1;k 0) ans[0]--; } void t(int…
```cpp #include using namespace std; int f[100000]={1,1}; int ans[100000]={}; void p()//加法 { int k; int s=0; ans[0]=max(ans[0],f[0]); for(k=1;k >x; for(int i=1;…
在讨论《50分WA》回复:
[Test Result](https://www.luogu.com.cn/record/183648740)