题解列表
无数组版(暂时不是很喜欢用数组)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,a,g,b=0,t; scanf("%d",&n); for(i=0;i<n;……
1000: [竞赛入门]简单的a+b
摘要:参考代码:while True: try: a,b=map(int,input().strip().split()) print(a+b) except: break……
编写题解 3020: 最大数位置
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,a[1001],maxx=1; cin>>n; ……
2124: 信息学奥赛一本通T1259-求最长不下降序列
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<cstring>
#include<cmath>
#include<algorithm>
#include……
Python统计数字字符个数
摘要:解题思路:注意事项:参考代码:n=input()count=0for i in n: if i>='0' and i<='9': count+=1p……
Python解统计字符
摘要:解题思路:注意事项:参考代码:n = input()a = 0b = 0c = 0d = 0for i in n: if (i>='a' and i<='z') ……
<循环>求数组里面的最大值(C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main()
{
int n, arr[1000], max=0;
scanf("%d", &n);
for ……
<循环>求整数的和与均值(C语言)
摘要:#include<stdio.h>
int main()
{
int n,x,sum=0;
double ave;
scanf("%d", &n);
for (int i = 0;……
<循环>编写函数带有指针求整数平均值(C语言)
摘要:#include<stdio.h>
int my_fun(int *p, int n)
{
int ave,sum=0;
for (int i = 0; i < n; i++)
{
……