题解列表

筛选

编写题解 1173: 计算球体积

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>#include <iomanip>#define PI 3.1415using namespace ……

编写题解 1171: 蟠桃记

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n;    while(cin>>n){        ……

datetime处理日期真是太省心了

```pythonimportdatetimes=input()#从输入的字符串里把年月日分别搞出来years=int(s[:4])mouths=int(s[4:6])days=int(s[6:])begin=datetime.date(years,

就很简单的原理

摘要:解题思路:注意事项:参考代# main n = input() n_da = 0 n_xiao = 0 n_number = 0 for i in n:     if(i.isdigit(……

二维经典DP,一维就不写了

解题思路:先定义dp[i][j]:至第i个a和第j个b的最长子序列写出转换方程,若序列a第i个值==序列b第j个值:dp[i][j]=max(dp[i-1][j-1]+1,dp[i][j]),否则:dp[i][j]=max(dp[i-1][j],