题解列表
字符逆序-一个for搞定
摘要:解题思路:注意事项:#include<stdio.h>#include<string.h>intmain(){&……
易于理解-数1的个数-for、while结合
摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){intn,a=0,i……
判断一个数是否为质数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>//判断一个数是否为质数int&……
stricmp用不了,换普通解法
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<stdio.h>using namespace std;i……
一个有点复杂的方法,不如其他大佬的优质解法(本人刚起步学习哈)
摘要:#includeint main(void){ int num; scanf("%d",&num); int a[num]; for(int……
Python代码-去掉空格
摘要:```pythonif __name__ == '__main__': while True: try: str1 = str(input()……
Python代码-求矩阵的两对角线上的元素之和
摘要:```pythonif __name__ == '__main__': N = int(input()) nums = [] for i in range(N):……