题解列表

筛选

编写题解 2835: 计算书费

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[10];    int i;    float sum=0.0;        for(i=0……

题解 2789: 骑车与走路

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

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