loading҉ ...支持互关
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《关于洛谷C++编译器的疑问》回复:
@[_czx6666_](luogu://user/1056023) 壶关吗
在讨论《P2689 60pts求解》回复:
@[Binary_memory](luogu://user/1528610) 求关
在讨论《关于洛谷C++编译器的疑问》回复:
@[_czx6666_](luogu://user/1056023)@[Clouds_dream](luogu://user/1179184) 可是x1似乎并没有CE
在讨论《关于洛谷C++编译器的疑问》回复:
@[Clouds_dream](luogu://user/1179184)@[_czx6666_](luogu://user/1056023) 已关
>C++20 > 变量名采用`y1`出现`CLE` [CLE记录](https://www.luogu.com.cn/record/230308284) 改变变量名后 [AC记录](https://www.luogu.com.cn/record/230308664)
在讨论《P2689 60pts求解》回复:
@[Binary_memory](luogu://user/1528610) 代码里面判断2次`x1 using namespace std; int x1,x2,y1,y2,ans,t; char d[51]; int main(){ ios::sync_with_stdio(false); cin.tie(null…
在讨论《结构体sort %g怎么用?》回复:
@[fkxr](luogu://user/995934) `%d` 为`int`类型 `%lld`为`long long`类型
在讨论《《关于1*2*3*4*5=153》》回复:
@[wangxu101](luogu://user/1728084)唐
在讨论《LGR-234 赛后总结帖》回复:
qp
在讨论《TLE*3》回复:
@[V_HAPPY666](luogu://user/1247040) 此题用`cin/cout`必定TLE,即使开了 ```cpp ios::sync_with_stdio(false),cin.tie(0),cout.tie(0); ``` 也会出现TLE
```cpp #include using namespace std; using ll=long long; void o1(int x,int n,int *a) { int l=0,r=n-1; int tmp=-1; while(l >1; if(a[mid]>x) { tmp=a[mid],r=mid-1;…
在讨论《84pts WA#13》回复:
@[V_HAPPY666](luogu://user/1247040) ```cpp #include #include using namespace std; const int maxn = 5010, maxm = 200010; int fa[maxn],cnt; void init() { // 初始化 f…
```cpp #include #include using namespace std; const int maxn = 5010, maxm = 200010; int fa[maxn],cnt=0; void init() { // 初始化 for (int i = 1; i > n >> m; for (in…
在讨论《求助》回复:
@[Jym15883883185](luogu://user/1337824) 求壶关
在讨论《求助》回复:
@[Jym15883883185](luogu://user/1337824) 其实a[i]和a[i+1]是可以相等的,所以代码应该是`>=`
```cpp #include using namespace std; using ll=long long; int main() { ios::sync_with_stdio(false),cin.tie(0),cout.tie(0); ll n,b=0,ans=0; cin>>n; ll a[n]; for(i…
在讨论《为什么long long也能过》回复:
@[yssbc](luogu://user/1320575) `long long`是过不了的,只有`unsigned long long`才能通过
在讨论《如何控制代码长度为256B》回复:
@[Grammar__hbw](luogu://user/856004) 还是到不了256B。。
```cpp #include int a[1001][1001],dp[1001][1001],n,r;int main(){scanf("%d",&n);while(n--){int ans=0;scanf("%d",&r);for(int i=1;i 代码应该没问题,长度如何控制
```cpp #include using namespace std; using ll=long long; struct fighter { ll k,d,a,all,num; }s[100000]; bool cmp(fighter x,fighter y) { return x.all>y.all; } in…
```cpp #include using namespace std; #define MIN numeric_limits ::min() int main() { ios::sync_with_stdio(false),cin.tie(0),cout.tie(0); int n,l,r,ans=MIN; cin>…
在讨论《help(WA#12)》回复:
@[kanqiqin](/user/1051743) 黄是什么,编译错误吗?
在讨论《help(WA#12)》回复:
@[kanqiqin](/user/1051743) 能帮我改改吗,大佬
在讨论《help(WA#12)》回复:
@[kanqiqin](/user/1051743) 没有,就是WA了
```cpp #include using namespace std; using ll=long long; int main() { ios::sync_with_stdio(false), cin.tie(0), cout.tie(0); string s; cin>>s; int zero=count(s.b…
在讨论《玄》回复:
@[lucasincyber](/user/867577) 看了,就是输入出错 ``` Main.cpp: In function ‘int main()’: Main.cpp:12:12: error: no match for ‘operator>>’ (operand types are ‘std::…
在讨论《玄》回复:
@[SBBSBSBSBSB](/user/1042363) 那我换成C++14试一下,自己之前用的C++20