想看春风AC江南岸,先要听取WA声一片
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp #include using namespace std; int a[110][110]; long long dp[2][110][5010]; int main() { memset(dp,-0x3f,sizeof(dp)); int n,k; long long mn = -1e18; cin >…
```cpp #include using namespace std; int n,re,a[20][20],px[50],py[50],mx[50],my[50]; void dfs(int x,int y,int step,int ans) { px[step] = x,py[step] = y; ans +=…
在讨论《AC样例,评测......》回复:
不会,我就硬凑,这方法不知道哪里有bug
在讨论《AC样例,评测......》回复:
纯属听取WA声一片,无TLE,无RE
```cpp #include using namespace std; int a[5010][10010],cnt[5010]; long long dp[5010]; int main() { int n,m; cin >> n >> m; for(int i = 1;i > x >> y; a[y][++cnt…
```cpp #include using namespace std; struct node{int l,r;}a[200010]; int dp[200010]; bool cmp(node x,node y) { if(x.l != y.l) return x.l > n; for(int i = 1;i >…
```cpp #include using namespace std; int a[300010]; int main() { int n,cnt = 0; cin >> n; for(int i = 1;i > x; int pos = upper_bound(a + 1,a + i,x) - a; cnt +=…
在讨论《100pts,LCA求调》回复:
ok
```cpp #include using namespace std; int f[310]; int main() { int n,q; cin >> n; for(int i = 1;i > f[i]; cin >> q; while(q--) { int x,a[310]; cin >> x >> a[1];…
在讨论《80,求调》回复:
@[wuyuncheng](luogu://user/1227964)我知道了:有时dp【i】可能无值,无值为0,但初始化-0x3f不对 ```cpp #include using namespace std; int a[110],b[20010],dp[20010]; int main() { memset(dp,…
在讨论《80,求调》回复:
我知道了:有时dp【i】可能无值,无值为0,但初始化-0x3f不对 ```cpp #include using namespace std; int a[110],b[20010],dp[20010]; int main() { memset(dp,-0x3f,sizeof(dp)); int n,m,mn = -1e…
在讨论《80,求调》回复:
依旧WA
在讨论《80,求调》回复:
改了,还是不行 ```cpp #include using namespace std; int a[110],b[20010],dp[20010]; int main() { memset(dp,-0x3f,sizeof(dp)); int n,m,mn = 0; cin >> n >> m; for(int i =…
```cpp #include using namespace std; int a[110],b[20010],dp[11010]; int main() { memset(dp,-0x3f,sizeof(dp)); int n,m,mn = 0; cin >> n >> m; for(int i = 1;i > a…
```cpp #include using namespace std; int a[110],b[11010],dp[11010]; int main() { int n,m,mn = 0; cin >> n >> m; for(int i = 1;i > a[i]; for(int i = 0;i > b[i];…
在讨论《MLE,求条》回复:
我知道了,这道题不是二叉树,我去试试
在讨论《MLE,求条》回复:
谢谢,MLE没了,但WA和TLE怎么搞```cpp #include using namespace std; int ans = 0,vis[200010]; struct node{int f,l,r;}a[200010]; void dfs(int x,int step,int cnt) { if(!vis[x]…
在讨论《MLE,求条》回复:
谢谢,成功解决MLE但听取哇声一片 ```cpp #include using namespace std; bool vis[200010]; int ans = 0; struct node{int f,l,r;}a[200010]; void dfs(int x,int step,int cnt) { if(!v…
```cpp #include using namespace std; bool vis[200010]; int ans = 0; struct node{int f,l,r;}a[200010]; void dfs(int x,int step,int cnt) { if(!vis[x]) cnt++; if(s…
在讨论《咕值计算更新声明》回复:
qp
```cpp #include #include using namespace std; char a[1010][1010]; int main() { memset(a,NULL,sizeof(a)); long long m,n,mn = -1e9,mx = 1,my = 1,cnt = 0; bool f =…
```cpp #include using namespace std; long long dp[2][40010]; struct node{ int a,h; } d[12010]; bool cmp(node x,node y){return x.a > n; for(int i = 1;i > x >> y…
```cpp #include using namespace std; int n,cnt = 0,a[40] = {0}; bool ip(int x) { if (x n) { cnt++; return ; } for (int i = 1;i > n; dfs(1); cout << cnt; return…
在讨论《全RE怎么办,求条》回复:
我去改一下代码,逝世。
在讨论《全RE怎么办,求条》回复:
这道题说用dp但是给了个20的数据,就很奇怪。
```cpp #include using namespace std; bool c[30][30]; int bx,by,n,m,cnt = 0; int dfs(int step,int nx,int ny) { if(nx == 2 & ny == 2){return 1;} if(c[nx-1][ny] &&…
在讨论《25pts,求教》回复:
@[William_Y1](luogu://user/1822054),谢谢你的教导,已关注
```cpp #include using namespace std; int a[500010],s[500010],dp[500010]; int main () { int n,k; cin >> n >> k; for(int i = 1;i > a[i]; s[i] = a[i] xor s[i - 1];…