这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《0 WA求调》回复:
样例过了哈
我这题0分求调 ```cpp #include using namespace std; #define maxn 100005 #define int long long vector > e[maxn]; vector ans; void add_edge(int u,int v,int l){ e[u].empl…
[题目传送门](https://www.luogu.com.cn/problem/P3853) ```cpp #include using namespace std; #define maxn 100005 #define long long int int a[maxn]; int M,N,K; bool chec…
在讨论《90分卡了5天,大佬帮帮我》回复:
谢谢大佬们 @[outadaoki](luogu://user/1058082) @[cqxingyun](luogu://user/809419)
#3 WA了 [题目传送门](https://www.luogu.com.cn/problem/P2678) 代码如下 ```cpp #include #define int long long using namespace std; int l,n,m,a[10000001]; bool check(int x){…
在讨论《80分(难受香菇)》回复:
谢谢大佬!
不说了,直接上代码! ```cpp #include using namespace std; double n,x,y,p,cnt; int main(){ cin >> n; for(int i=0;i > x >> y >> p; cnt+=1.5*p+2*sqrt(x*x+y*y)/50; } cout <<…
在讨论《help》回复:
谢谢 @[ZeroOf149](luogu://user/461174) @[hex4C45](luogu://user/1443133)
请帮我看看哪里错了 _~~**本人好废**~~_ ```cpp #include using namespace std; int num[10001][10001],n,x; int main(){ cin >> n >> x; for(int i=0;i > a >> b; num[a][b]=-1; } for(…
在讨论《help》回复:
全TLE
帮改! ```cpp #include using namespace std; char a[10000][10000]; int b[10000],c[10000],n,m,cnt,maxn,num; int main(){ cin >> n >> m; for(int i=0;i > a[i][j]; if(a[…
在讨论《求助!》回复:
十分感谢@[Lysea](luogu://user/616733)
你好,我是 $zycEthan$ 我在 [P1789 【Mc生存】插火把](https://www.luogu.com.cn/problem/P1789)中遇到了一些问题,麻烦大佬帮忙找下错 ```cpp #include using namespace std; int n,hnum,ynum; int main()…
你好,我是$zycEthan$,我做 [B2087 与指定数字相同的数的个数](https://www.luogu.com.cn/problem/B2087#submit)的时候,使用桶排序,但一直都是全WA。 请C++ 代码大佬帮我一下。 话不多说,代码晒上。 ```cpp #include using namesp…
在讨论《大佬救我》回复:
谢谢!! @[xyx404](luogu://user/1123573)
你好,我是 $zycEthan$ ,我这里怎么全 _Compile Error_ ? 帮我找一下错在哪里了。 代码晒上! ```cpp #include using namespace std; int main(){ int f[50]={1,1,2,3,5,8,13,21,34,55,89,144,233,377,…
在讨论《入坑新人,求大佬教一教(C++)》回复:
~~zycEthan又来教题了~~ ```cpp #include //万能库 using namespace std; //新手必加 int main(){ //return的数据类型 main(){} int a,b,an; //a是加数,b是另一个加数,an是得数 cin > an >>endl; //输出 re…
在讨论《《90分》《神犇勿喷》《求助大佬》》回复:
我的思路: ```cpp #include using namespace std; int main(){ float a[10]={28.9,32.7,45.6,78,35,86.2,27.8,43,56,65},x=0; int i,n; for (i=0;i > n; x+=n*a[i]; } cout <<…
在讨论《abc》回复:
可以开一个sum变量,如果可以碰到就sum++,最后cout << sum;或printf("%d",sum);。
在讨论《这个代码输入有问题,应该怎么改》回复:
(第2个错误)
在讨论《这个代码输入有问题,应该怎么改》回复:
不应该是char,应为string。 char输入"abc"就返回'a'。 string输入"abc"才返回'abc'。