上一页 1 2 3 4 5 6 7 ··· 18 下一页
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=1010; int r; int a[N][N]; //表示从第i行j列出发,走到最底层能获得的最大路径和 int main() { ios::sync_with_stdi 阅读全文
posted @ 2026-03-09 23:23 AnoSky 阅读(4) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; int n; int main() { ios::sync_with_stdio(0),cin.tie(0); cin>>n; int v_min=-1e9, v_max=1e9; for(int 阅读全文
posted @ 2026-03-08 00:03 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #pragma GCC optimize("O3,unroll-loops") #include<bits/stdc++.h> using namespace std; const int N=1e3+10; int n; long long a[N]; int main() { io 阅读全文
posted @ 2026-03-06 22:32 AnoSky 阅读(5) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int N=3e5+10; string s[N]; int tr[N][26],idx,ed[N]; int ind[26]; bool g[26][26]; int n; void 阅读全文
posted @ 2026-03-06 16:35 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; int n,k,a[15][15]; bool vis[15][15],cross[15][15]; vector<int> path; int dx[8]={-1,-1,0,1,1,1,0,-1 阅读全文
posted @ 2026-03-05 23:03 AnoSky 阅读(1) 评论(0) 推荐(0)
摘要: 点击查看代码 #include <bits/stdc++.h> using namespace std; // 【优化1】传引用 &,原地修改 A,避免 1000 次 vector 的深拷贝操作 void mul(vector<int>& A, int b) { int t = 0; for (in 阅读全文
posted @ 2026-03-05 18:44 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include <bits/stdc++.h> using namespace std; const int N = 600005; const int MAX_NODES = N * 25; //max_id,存经过某个节点的最大下标,用于下界区间的判断 int ch[MAX_NO 阅读全文
posted @ 2026-03-05 09:36 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 import java.util.HashMap; import java.util.Map; class Solution { public int[] twoSum(int[] nums, int target) { Map<Integer,Integer> map = new H 阅读全文
posted @ 2026-03-04 23:19 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; int n; int main() { cin>>n; int ans=0; for(int i=1;i<=n;i++){ bool ok=true; int x=i; int p=1; whil 阅读全文
posted @ 2026-03-04 13:35 AnoSky 阅读(6) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<vector> using namespace std; using ll=long long; const int P=1e9+7; int n; int main() { ios::sync_with_stdio(0),cin 阅读全文
posted @ 2026-03-04 13:09 AnoSky 阅读(2) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 18 下一页