题解列表

筛选

编写题解 3008: 买笔,

摘要:解题思路:注意事项:只因你太美参考代码:#include <iostream>using namespace std;int main(int argc, char** argv) {int x,y,……

记忆化搜索

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

2799: 奥运奖牌计数

摘要:解题思路:注意事项:参考代码:m1 = m2 = m3 = 0n = int(input())for i in range(0,n):    a = list(map(int,input().spli……

2800: 多边形内角和

摘要:解题思路:注意事项:参考代码:m = 0n = int(input())a = list(map(int,input().split()))for i in a:    m += iprint((n ……

记录一下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)输……