题解列表

筛选

编写题解 1072: 汽水瓶

摘要:while 1:     t=int(input())     if t==0:         break     else:         a=[0,1]   &nb

1183: 人见人爱A+B

摘要:解题思路:注意事项:参考代码:n = int(input()) for i in range(n):     AH,AM,AS,BH,BM,BS=map(int,input().split()) ……

回文串(新奇的思路 生成回文串)

摘要:采用生成回文串的方法,单独开辟一个bool[i][j] 数组来判定字符串S[i...j]是否是回文串,而非采用双指针偏移判断。看上去多此一举,主要是为了将“判断回文”的操作分离,如果是在更复杂的操作中……

1199: 哥德巴赫曾猜测

摘要:解题思路:注意事项:参考代码:n=int(input()) def isprime(x):     if x ==1:         return 0     elif x==2:    ……

1201: 回文数(一)

摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(n):     m=input()     s=0     while s<=8:         ……

初探dp--砝码称重 Python语言

摘要:解题思路:参考D的题解,自己重现了一遍注意事项:注意4,5行参考代码:n=int(input()) w=[int(i) for i in input().split()] s=sum(w) w.……

最小绝对值

摘要:参考代码:#include<stdio.h>#include<math.h>int main(){ //a[10]表示输入的十个数  int a[10],i,temp,flag,flag1;  for……