这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
解答疑惑的加关注 ```cpp #include using namespace std; int main(){ int a; string b; char c,d; string e; cin>>a>>b>>c>>d>>e; if(b=="GB"){ if(e=="GB"){ cout<<fixed<<setpre…
在讨论《RE???》回复:
哦,好的,谢谢各位大神
谁能帮助我解释一下为什么RE? \ 代码如下: ```cpp #include using namespace std; vector prime; bool is_prime[20000005]; void Eratosthenes(int n) { is_prime[0] = is_prime[1] = false…
在讨论《90!!!求调》回复:
@[isen666](luogu://user/788621) 求关
在讨论《90!!!求调》回复:
@[isen666](luogu://user/788621) 当结果算出来为18的时候,你输出19
```cpp #include using namespace std; int n,t,m,a[22]; int dp[22][22]; int main(){ cin>>n>>t>>m; for(int i=1;i >a[i]; } for(int i=1;i =1;j--){ for(int k=t;k>=a[i…
在讨论《为什么CE???》回复:
@[Gcc_Gdb_7_8_1](luogu://user/1058410) 这个也CE!!! ```cpp #include using namespace std; vector g[100005]; int r[1010111]; int n,m; void dfs(int x){ if(r[x]){ retur…
在讨论《为什么CE???》回复:
OK
```cpp #include using namespace std; int mx=0; int main(){ int n,m; cin>>n>>m; vector > g(n),din(n); for(int i=1;i >u>>v; u--,v--; g[u].push_back(v); din[v]++;…
在讨论《为啥会wa,感觉很对啊》回复:
```cpp #include using namespace std; int mx=0; int main(){ int n,m; cin>>n>>m; vector > g(n),din(n); for(int i=1;i >u>>v; u--,v--; g[u].push_back(v); din[v]++;…
在讨论《90!!!求调》回复:
你是不是WA第三个了??? 如果是的话,那你就特判一下,输出19
在讨论《90!!!求调》回复:
你不开long long 吗?人家数据10的18次方 int 会爆
在讨论《大佬们这道题怎么做呀?我一直wa》回复:
这好像是个贪心
在讨论《笑死我了AT自己抄自己》回复:
@[Lian_zy](luogu://user/923248) 对,真的很神奇,轻松AC
在讨论《P1536》回复:
@[Atserckcn](luogu://user/1065071) OK,成了,太牛逼了
在讨论《P1536》回复:
```cpp #include using namespace std; int f[1111],n,m,p,x,y; int find(int x){ if(x!=f[x]){ f[x]=find(f[x]); } else return f[x]; } void hb(int x,int y){ int r1=fi…
交了十几次,5RE+5MLE 为什么?请各位神犇讲解 ```cpp #include using namespace std; int f[1111111],n,m,p,x,y; int find(int x){ if(x!=f[x]){ f[x]=find(f[x]); } else return f[x]; } v…
都说0的阶乘是1(因为阶乘符号是!,所以下文统一这么写),可为什么呢? 本新星有一个解释。 因为5!是5* 4 * 3 * 2 * 1,那么4!一定是4 * 3 * 2 * 1吗?不一定。换个表示方法:4!=5!÷5,一样的吧。 以此类推,3!=4!÷4,2!=3!÷3,1!=2!÷2 不要眨眼呦! 0!=1!÷1 0…
在讨论《???RE???》回复:
```cpp #include using namespace std; int f[33333],infront[33333],num[33333],t,y,z,ans; int fnt; char c; int find(int x){ if(f[x]==x)return f[x]; else fnt=find(f…
```cpp #include using namespace std; int f[33333],infront[33333],num[33333],t,y,z,ans; int fnt; char c; int find(int x){ if(fa[x]==x)return f[x]; else fnt=find(…
在讨论《并查集》回复:
你介绍一下呗!!!
在讨论《样例过了,1WA 4RE》回复:
OK
在讨论《样例过了,1WA 4RE》回复:
直接写sort不就行了??? 他又不监控你,可以用
在讨论《为什么是0分》回复:
晒个代码
在讨论《为什么是0分》回复:
???
代码: ```cpp #include using namespace std; int binary(int m,string s){ int ans=0; for(int i=0;i ='0'&&t =0&&t1 >k>>n; string t=intabjinzhi(10,2); cout<<binary(k,t…
在讨论《TLE》回复:
ok
TLE了,怎么办 代码: ```cpp #include using namespace std; bool a[1111111]; vector v; long long ans,sum; int main(){ for(int i=2;i >n; while(sum<=n){ long long t=0; sum+…