题解 2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[504],b[504];int main(){ int n,sum=0…… 题解列表 2024年07月15日 0 点赞 0 评论 692 浏览 评分:0.0
题解 2917: 奇数单增序列 ```cpp#includeusingnamespacestd;typedeflonglongll;lla[503],cnt;intmain(){lln;cin>>n;for(inti=1;i>x;if(x%2!=0)a[++cnt]=x;}sort(a+1, 题解列表 2024年07月15日 0 点赞 0 评论 593 浏览 评分:0.0
题解 2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[600];int main(){ int n=0; in…… 题解列表 2024年07月15日 0 点赞 0 评论 553 浏览 评分:0.0
2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;ll a[…… 题解列表 2024年07月15日 0 点赞 0 评论 724 浏览 评分:0.0
2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;ll a…… 题解列表 2024年07月20日 0 点赞 0 评论 717 浏览 评分:0.0
8行:万花丛中过,片叶不沾身 ````li=[]n=int(input())l=list(map(int,input().split()))forsinl:ifs%2==1:li.append(s)li.sort()print(",".join(map(str,li)))```` 题解列表 2024年08月01日 0 点赞 0 评论 712 浏览 评分:10.0
奇数单曾序列,用一个数组解决 摘要:解题思路:使用的是选择排序注意事项:在打印逗号时,利用状态标记,符合奇数,改变状态,打印逗号参考代码:#include<stdio.h>#include<string.h>int main(){ …… 题解列表 2024年11月12日 0 点赞 0 评论 669 浏览 评分:0.0