摘要: 一、第一题 代码: #include <bits/stdc++.h> using namespace std; int main() { int f[210][210],n,i,m,j,k; while(cin>>n) { if(!n) return 0; memset(f,0x3f,sizeof 阅读全文
posted @ 2025-02-19 19:20 astronomyy 阅读(13) 评论(0) 推荐(0)
摘要: 一、第一题 代码: #include <bits/stdc++.h> using namespace std; int main() { int i,n,sum=-100000,a,ans=-100000; cin>>n; for(i=0;i<n;i++) { cin>>a; if(sum<=0) 阅读全文
posted @ 2025-02-16 15:17 astronomyy 阅读(7) 评论(0) 推荐(0)
摘要: 一、第一题 代码: #include <bits/stdc++.h> using namespace std; int m,a[10]={1},n; void dfs(int x) { int i; for(i=a[x-1];i<=m;i++) { if(i==n) continue; a[x]=i 阅读全文
posted @ 2025-02-13 14:00 astronomyy 阅读(20) 评论(0) 推荐(0)
摘要: 一、第一题 代码: #include<bits/stdc++.h> using namespace std; int main() { long long mod=19260817,na=0,nb=0,res=1,k=mod-2; string a,b; cin>>a>>b; for(long lo 阅读全文
posted @ 2025-02-10 21:39 astronomyy 阅读(13) 评论(0) 推荐(0)
摘要: 一、第一题 代码: #include<iostream> #include<queue> #include<string> using namespace std; int main() { priority_queue<long long> s; string a; long long k; wh 阅读全文
posted @ 2025-02-07 20:51 astronomyy 阅读(88) 评论(0) 推荐(0)
摘要: 一、第一题 代码: #include<iostream> #define N 100000 using namespace std; int main() { int n, q, i, l, r,mid; long long m, a[N]; cin >> n; for (i = 0; i < n; 阅读全文
posted @ 2025-01-26 15:26 astronomyy 阅读(39) 评论(0) 推荐(0)
摘要: 一、第一题 代码: #include<iostream> using namespace std; #include<string> int main() { int n; cin>>n; string s(n,'o'); cout<<'L'<<s<<"ng"; return 0; } 思路:通过字 阅读全文
posted @ 2025-01-23 14:12 astronomyy 阅读(26) 评论(0) 推荐(0)