题解列表

筛选

题解 2791: 计算邮资

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    char b;    scanf("%d  %c", &a, &b);    if (……

又是一个动态规划的题

摘要:#include<iostream> using namespace std; int main() {     string s;     while(getline(cin,s))  ……

1177: 三角形,C++动态规划实现

摘要:#1177: 三角形,C++动态规划实现 ####题目描述: [题目 1177: 三角形](https://www.dotcpp.com/oj/problem1177.html "题目 1177:……

用二维数组思想打印dna

摘要:解题思路:注意事项:需要单独打印第一行,否则出现的DNA会有重复部分参考代码:#include<stdio.h>int main(){ int i,j,a,b,n; scanf("%d",&n); w……

python天数计算——挑战最简解

摘要:python就不讲什么结构体了,咱没有这玩意参考代码:year, month, day = map(int, input().split()) days1 = [31, 28, 31, 30, 31……

2837: 年龄与疾病

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(void){    int n,age[100],i;    int a=0;        //年龄在0-18   ……

2846: 统计数字字符个数

摘要:解题思路:了解字符串的处理注意事项:只需计算数字的个数,注意字符串结尾的&#39;\0&#39;参考代码:#include<stdio.h>#include<string.h>      //处理字符……