信息学奥赛一本通T1535-数列操作-题解(各语言代码) 摘要:**C** ```c #include #include int*l,n,m; void update(int x,int y){ do l[x]+=y; while((x+=x&-…… 题解列表 2022年05月17日 0 点赞 0 评论 668 浏览 评分:9.9
三角形——题解 摘要:解题思路:此题一般的迭代解法在遇到较大规模的测试时会需要花费大量时间,从而导致程序通不过,比如我一开始用的如下解法:#include<iostream>#include<vector>using na…… 题解列表 2022年05月17日 0 点赞 0 评论 319 浏览 评分:9.9
[编程入门]筛选N以内的素数 摘要:#include<iostream>#include<fstream>#include<algorithm>using namespace std;long long zs(long long cao…… 题解列表 2022年05月17日 0 点赞 0 评论 262 浏览 评分:9.9
[编程入门]数组插入处理 摘要:#include<bits/stdc++.h>using namespace std;long long a[800000];int main(){ for(int i=1;i<=10;i++) c…… 题解列表 2022年05月17日 0 点赞 1 评论 824 浏览 评分:9.9
[编程入门]二维数组的转置 摘要:#include<bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){ for(int i=1;i<=3;i++)…… 题解列表 2022年05月17日 0 点赞 0 评论 537 浏览 评分:9.9
数字排序(冒泡法) 摘要:解题思路:若十个数进行排序时,利用“冒泡法”进行排序。先将10个数中最小的数与a[0]对换,再将a[1]到a[9]中最小的数与a[1]对换,再比较一轮,找出一个未经排序的数中最小的一个,共比较9轮。注…… 题解列表 2022年05月17日 0 点赞 0 评论 413 浏览 评分:9.9
1034 自定义函数之数字分离 摘要:参考代码: #凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数for i in input():print(i,end=" ")…… 题解列表 2022年05月17日 0 点赞 0 评论 361 浏览 评分:9.9
傻逼图形输出 摘要:#include<bits/stdc++.h>using namespace std;int main(){ printf( " X | X | X\n" "---+---+---\n" …… 题解列表 2022年05月17日 0 点赞 1 评论 534 浏览 评分:9.9
数字逆序输出 摘要:解题思路:1.先定义一个长度为10的数组a[10] 2.利用for循环输入10个数字 3.利用for循环从后往前遍历输出数组注意事项:参考代码:#i…… 题解列表 2022年05月19日 1 点赞 0 评论 384 浏览 评分:9.9
编写题解 1033: [编程入门][C语言]自定义函数之字符提取 摘要:#include<stdio.h> void check(char a[]) { int i; int fg1=0,fg2=0,fg3=0,fg4=0,fg5=0;//在循环外定义,用来使…… 题解列表 2022年05月19日 0 点赞 0 评论 352 浏览 评分:9.9