题解列表

筛选

汪汪与洋洋 (C++代码)

摘要:解题思路:题目一看,基本就是一道求概率的题目。仔细看下,感觉直接求有点麻烦,所以我们尝试使用动态规划的思想。题意基本等于让我们求用3个骰子丢出和大于9的概率是多少。这样我们可以用dp[i][j]表示用……

IP判断 (C语言代码)

摘要:#include <stdio.h>#include <string.h>int main(){     int i=0,j,flag=1,s=0;     char a[1000][31];    ……

第几天 (C++代码)

摘要://把年月日分割成三个字符串,再转化为三个整数然后求解 #include <iostream> #include <cstdlib> #include <cmath> #include <de……