题解列表

筛选

数组距离qdqdqwd

摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "math.h"int main() { int a, b; scanf("%d%d", &a, &b); int ……

drdsgfgfdsgdsfgdfsg

摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include "string.h"int main(){ int n; scanf("%d", &n); for (int i =……

python解法(python)

摘要:解题思路:注意事项:参考代码:n = int(input())  # 输入数for i in range(n):      sum = 0  # 定义及初始化    list = input().sp……

超简单解法(python)

摘要:解题思路:空格一行用print(" ")解决注意事项:参考代码:while True:    try:        a,b=map(int,input().split())        print……

巧妙解决多输入问题(python开荒)

摘要:解题思路:基础的空列表求和输出注意事项:参考代码:while True:    try:        d=0        s=list(map(int,input().split()))     ……

链表合并(C语言)

摘要:# C99是支持动态数组的 ## 思路与一般的排序题一样 ``` c #include struct Student{ int num; int score; }; ……

[编程入门]自定义函数处理素数 Python解决

摘要:解题思路:    使用取余即可    那我们就是用2,如果取余为0的话(被除尽了),那么他就不是素数参考代码:    x = int(input())    if x % 2 == 0:       ……