题解列表

筛选

题解 2790: 分段函数

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

题解 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))  ……

1303: 统计数字(C++ STL)

摘要:# STL map ```c++ #include #include #include #include #include using namespace std; mapnums; ……

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   ……