题解列表

筛选

记忆化搜索

摘要:解题思路:自顶而下搜索最小值注意事项:记录答案防止时间爆炸参考代码:#include<bits/stdc++.h>#define endl &#39;\n&#39;using namespace st……

记录一下DNA这道题的题解

摘要:参考代码:#include<stdio.h>void Print(int len,int re){    while(re)    {                for(;i<len;i++)  ……

1201: 回文数(一)

摘要:```c #include int huiwen(int n){ int cnt=0,i,k,a[100]; do{ a[cnt]=n%10; cnt++; n/=10……

1480: 模拟计算器 思路简单 if判断

摘要:解题思路:输入很简单,不用多说;接下来用5个if判断语句判断加减乘除符号,就完成了。注意事项:参考代码:a,b,c=map(str,input().split())if(c==&#39;+&#39;)……

python零花钱解法 思路简单

摘要:在网站里面跑不出来 不过可以代入数据进行验算 都是对的nc=list(map(int,input().split()))N=nc[0]#N种金额C=nc[1]#每种金额硬币的数量# print(N)输……

2801: 奇数求和

摘要:解题思路:注意事项:参考代码:s = 0a,b = map(int,input().split())for i in range(a,b+1):    if i % 2 != 0:        s ……

2802: 满足条件的数累加

摘要:解题思路:注意事项:参考代码:s = 0m,n = map(int,input().split())for i in range(m,n+1):    if i % 17 == 0:        s……

输出亲朋字符串(简短)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){     char s[100];     gets(s);     int ……