返回顶部
摘要: \(1≤N≤100000\),$1≤Ai≤1000000000(=109) $$1≤Ai≤1000000000(=10 9)$ 这么大不能用数组存,用STL的set集合! #include <bits/stdc++.h> #include <set> using namespace std; set 阅读全文
posted @ 2022-01-20 22:17 zrc4889 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 一个简单的扫雷游戏模拟。 #include <bits/stdc++.h> using namespace std; int h,w; char s[51][51]; int f(int x,int y){ int ans=0; if (s[x-1][y-1] == '#') ans++; if ( 阅读全文
posted @ 2022-01-20 21:51 zrc4889 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 2022寒假第一篇! #include <bits/stdc++.h> using namespace std; long long a[1000001]; int main() { int n,temp,ans=0; cin >> n; for (int i=1;i<=n;i++){ cin>>t 阅读全文
posted @ 2022-01-20 21:14 zrc4889 阅读(29) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; const int maxn = 101; bool a[maxn]={0}; int main(){ int n; cin>>n; cout<<n<<endl; for (int i=0;i<n;i++){ 阅读全文
posted @ 2022-01-20 15:11 zrc4889 阅读(51) 评论(0) 推荐(0) 编辑