利用循环查找元音字母 摘要:解题思路: 定义2个字符数组,利用循环在字符数组里查找元音字母,如找到了则赋值给另外一个字符数组,然后输出。 ```c #include int main() { char a[100];…… 题解列表 2022年11月27日 0 点赞 0 评论 386 浏览 评分:9.9
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i; char str[100]; scanf("%d",&n); ge…… 题解列表 2022年11月27日 0 点赞 0 评论 288 浏览 评分:0.0
2782: 整数大小比较 摘要:while 1: try: while 1: x,y = map(int,input().strip().split()) if (x …… 题解列表 2022年11月27日 0 点赞 0 评论 497 浏览 评分:0.0
编写题解 1030: [编程入门]二维数组的转置 摘要:解题思路:将数组处理为最原始的样子(也就[[1,2,3],[4,5,6],[7,8,9]])注意事项:理解二维数组的运算方式参考代码:lst = []for i in range(3): j =…… 题解列表 2022年11月27日 0 点赞 0 评论 736 浏览 评分:9.9
2781: 奇偶ASCII值判断 摘要:解题思路:注意事项:参考代码:while 1: try: a = str(input()) if ord(a) % 2 == 0: print(…… 题解列表 2022年11月27日 0 点赞 0 评论 465 浏览 评分:0.0
优化求解---第n小的质数 摘要:注意事项:优化求解过程。优化1:第二层for循环中的sqrt(i),因数都是成对出现的。比如,100的因数有:1和100,2和50,4和25,5和20,10和10。看出来没有?成对的因数,其中一个必然…… 题解列表 2022年11月27日 0 点赞 0 评论 444 浏览 评分:0.0
常规解法级数求和 摘要:结果:i = 1835421 Sn = 15.000000参考代码:#include<stdio.h>int main() { int k; double Sn = 0; scanf("%d",&k)…… 题解列表 2022年11月27日 0 点赞 0 评论 358 浏览 评分:0.0
自定义函数之字符串反转 摘要:解题思路:最简洁注意事项:参考代码:#include<stdio.h>#include<string.h>int fun(char a[]){ int n = strlen(a); return n;…… 题解列表 2022年11月27日 0 点赞 0 评论 241 浏览 评分:9.9
矩阵转换(矩阵转换) 摘要:解题思路:将原先的m行n列,变为n行m列。感谢大佬的思路,我真是个天才注意事项:参考代码:#includeint main(){ int i,j,m,n; int a[500][500]; scanf…… 题解列表 2022年11月27日 0 点赞 0 评论 541 浏览 评分:9.3
入门难度的题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int num[30];int maxnum;int main(){ stri…… 题解列表 2022年11月27日 0 点赞 0 评论 703 浏览 评分:9.9