牢当益壮
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
看题解都用dijkstra写的,蒟蒻不是很明白,为什么想我这样写是错误的(已经试过不是long long的问题),WA了第11个点,求解释 ```cpp #include #include using namespace std; int n; int C[1005],way[1005]; pair p[100005]…
在讨论《建议降黄》回复:
建议升蓝doge
```cpp #include #include #include using namespace std; int t; int n,m,l,V; inline int read(){ char ch=getchar(); int x=0,f=1; while(ch '9'){ if(ch=='-')f=-1; ch…
在讨论《非常好的段错误,使我求助神犇debug》回复:
```cpp #include #include #include #include using namespace std; int n,m,p,k,tot[2],head[2][100005]; struct edge{ int to,next,w; }e[2][200005]; void addedge(int…
```cpp #include #include #include #include using namespace std; int t; int n,m,p,k,tot[2],head[2][100005]; struct edge{ int to,next,w; }e[2][200005]; void added…
```cpp #include #include #include using namespace std; int n,m,p,k,tot[2],head[2][100005]; struct edge{ int to,next,w; }e[2][200005]; void addedge(int u,int v,i…
```cpp #include const int maxn=4e5+5; int head[maxn],cnt; struct edge{ int to,next; }e[maxn]; void addedge(int u,int v){ e[++cnt]=(edge){v,head[u]}; head[u]=cnt…
```cpp #include const int maxn=4e5+5; int head[maxn],cnt; struct edge{ int to,next; }e[maxn]; void addedge(int u,int v){ e[++cnt]=(edge){v,head[u]}; head[u]=cnt…
```cpp #include #include using namespace std; struct edge{ int to,next; int val; }e[105]; int ecnt,head[105]; void addedge(int from,int to,int val){ e[++ecnt]=(…
```cpp #include #include int n; int ans; int height[1005]; int stack[1005]; bool matrix[32][1005][1005]; int main() { scanf("%d",&n); for(int i=1; i >=1; } } }…
在讨论《各位大佬,这题为什么错?》回复:
注意读题:一个正整数代表三元组个数 cnt应该只输出一次
在讨论《数据太水》回复:
哈哈,同款代码 ```cpp #include #include using namespace std; const int N = 15; int a[N][N]; int dp[N][N]; int main() { int n, x, y, w; cin >> n; while(cin >> x >> y >>…