OI新手,Windows OS
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
此代码没有对后一个字符串是前一个的字串进行处理,交上去却能A ```cpp #include using namespace std; int main(){ string s,n,ans=""; while(n!="0"){ cin>>n; if(n!="0") if(s.find(n)==string::npos)…
```cpp #include using namespace std; int main(){ string n,a[1000],b[1000]; cin>>n; int cnt=0,cnt2=0; for(int i=0;i n.size()-1)break; } for(int x=1;x<=cnt;x++) f…
在讨论《44WA(显示第一行太长或第一行太短)》回复:
已关注
在讨论《44WA(显示第一行太长或第一行太短)》回复:
谢谢啊
```cpp #include using namespace std; long long a[2005][2005],b[2005][1005],c[1005][1005],d[1005][1005]; int main(){ int n,m; cin>> n>>m; for(int i=1;i >a[i][j];…
```cpp #include using namespace std; int a[55][55]; int main(){ int m,n,x,cnt=0,mx=-2e9; cin>>m>>n; for(int i=1;i >a[i][j]; } } for(int i=1;i =tmp){ x=j; } tmp=…
在讨论《995》回复:
谢谢大佬~~~~~~
70score ``` #include using namespace std; __int128 read() { __int128 x = 0, f = 1; char ch = getchar(); while (ch '9') { if (ch == '-') f = -1; ch = getchar();…
在讨论《入门赛 #37 取消等级分计算公告》回复:
呜呜呜,我的等级分啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!…
在讨论《MLE求条(回复有用必关)》回复:
谢,互关
``` #include using namespace std; #define dou double dou f(dou x,int n){ if(n==1)return x/(1+x); else return n+f(x,f(x,n-1)); } int main(){ double x; int n; cin…
在讨论《#1#3#4#5WA》回复:
3克油为你妈吃(thank you very much) $r=a(1-sin x)$
在讨论《#1#3#4#5WA》回复:
~~``~~
在讨论《#1#3#4#5WA》回复:
@[mashuyang666](luogu://user/1739463)
``` #include using namespace std; string jl(string name,float a,bool b){ if(a>=37.5&&b==true)return name; return "\0"; } int main(){ int n,cnt=0; cin>>n; string…
# B4039 [GESP202409 三级] 回文拼接 ## 题目描述 一个字符串是回文串,当且仅当该字符串从前往后读和从后往前读是一样的,例如,$\texttt{aabaa}$ 和 $\texttt{ccddcc}$ 都是回文串,但 $\texttt{abcd}$ 不是。 小杨有 $n$ 个仅包含小写字母的字符串,…
在讨论《爆"int",求助;》回复:
不会用
``` #include using namespace std; __int128 read() { __int128 x = 0, f = 1; char ch = getchar(); while (ch '9') { if (ch == '-') f = -1; ch = getchar(); } while…
在讨论《#5蛙(WA)》回复:
@[BDFZzengboxuan](luogu://user/1159029) 谢大佬, ~~我AC了~~(不重要)
``` #include using namespace std; int a[105][105]; int main(){ int n,m,sum=0; cin>>n>>m; for(int i=1;i >a[i][j]; } } for(int i=1;i<=5;i++){ for(int j=1;j<=5;j++…
``` #include using namespace std; int a[105]; int main(){ int m,sum=0,mx=-1e9,cnt=0; cin>>m; for(int i=0;i >a[i]; sum+=a[i]; if(a[i]>=a[i-1]&&a[i]>=a[i+1]){ mx=…
``` #include using namespace std; int main(){ long long n,ans=0,g,cnt=0; cin>>n; int a=n; for(int i=1;i<=a;i++){ while(n!=0){ g=n%10; ans=ans*10+g; n=n/10; } if…
在讨论《?????》回复:
@[Laoshan_PLUS](luogu://user/498837)但怎么还是蛙(WA) ?
在讨论《?????》回复:
@[Laoshan_PLUS](luogu://user/498837)谢谢
不是,这怎么错了啊 ```cpp #include using namespace std; int main(){ char a; int b; for(int i;i >a; if(a=='1'){ b++; } } cout<<b; return 0; } ```