题解列表

筛选

IP判断——python

摘要:解题思路:注意事项:参考代码:while True:    try:        L = list(map(str,input().split('.')))        s = 0……

除了数组,的其他两种解法

摘要:解题思路:一种通俗易懂易学,一种是优化后的解法 总体思路就是简单的求位数数字的数学方法,先/后%就行注意事项:细心就行,主要要把循环结构每一步的循环结构弄明白才行参考代码:数组解法入下#include……

1072: 汽水瓶

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<cmath> #include<algorithm> #include……

自定义函数

摘要:def fact(n): x=1 for i in range(1,n+1): x=x*i return x def mypow(x,n): ……

python不同单词个数统计

摘要:解题思路:set去重注意事项:参考代码:L = list(map(str,input().split()))L = list(set(L))print(len(L))……

水仙花数判断

摘要:for i in range(1,9):    for j in range(0,9):        for k in range(0,9):            if i*100+j*10+k=……

分数统计python

摘要:解题思路:写个题解,这么多代码不能白敲了。。。。注意事项:参考代码:n = int(input())a = b = c = d = e = 0L1 = []L2 = []L3 = []L4 = []L……

无脑递推dp公交汽车

摘要:解题思路:无脑递推注意事项:参考代码:#include <stdio.h>int a[101];int main() { for (int i = 1; i <= 10;i++) { scanf("……