自定义函数之字符串反转java 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年04月08日 0 点赞 0 评论 364 浏览 评分:9.9
利用malloc动态分配空间 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>int main(){ int n = 0,sum=0; scanf("%d", &n); int*…… 题解列表 2023年04月08日 0 点赞 0 评论 321 浏览 评分:0.0
题目 2768: 与圆相关的计算 摘要:直接看#includeusing namespace std;int main(){ double a,pi; cin >>a; pi = 3.14159; printf("%…… 题解列表 2023年04月08日 0 点赞 6 评论 1059 浏览 评分:9.9
计算多项式的值 摘要:注意事项: x先输入,之后输入a,b,c,d参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double a,b,c,d,…… 题解列表 2023年04月08日 0 点赞 0 评论 811 浏览 评分:9.9
蓝桥杯算法提高VIP—理财计划—Python 摘要:解题思路:注意事项:参考代码:k,n,p=map(float,input().split())s=0m=kfor i in range(1,int(n+1)): s+=k*p k+=k*p+m…… 题解列表 2023年04月08日 0 点赞 0 评论 452 浏览 评分:9.9
骂骂这题 这题一点都不对劲 摘要:解题思路:在读入完之后加上for (int j = 0; j < 3; j++) for (int i = 0; i < strlen(str[j]); i++) { …… 题解列表 2023年04月08日 0 点赞 0 评论 555 浏览 评分:0.0
构建函数表达算数表达式的值 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void jia(int a,int b){ int add=0; add=a+b; printf("%d",add);}void …… 题解列表 2023年04月08日 0 点赞 0 评论 495 浏览 评分:0.0
continue,break 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char A[100001]; scanf(…… 题解列表 2023年04月09日 0 点赞 0 评论 367 浏览 评分:0.0
最简单的解法 摘要:解题思路:一般做题总是会想着先换完一轮之后再换第二轮,其实可以换种思路,每次只换一瓶,喝完再换注意事项:最后剩俩瓶子时也可以换一瓶参考代码:#include<iostream>using namesp…… 题解列表 2023年04月09日 0 点赞 0 评论 358 浏览 评分:0.0
蓝桥杯2023年第十四届省赛真题-接龙数列(DP) 摘要:# ***解题思路*** 定义:$$f[i][j]$$表示前i个数以j结尾的最长接龙数列的长度 状态转移方程: $$ f[i][b] = max(f[i][b], f[i - 1][a] …… 题解列表 2023年04月09日 0 点赞 2 评论 2119 浏览 评分:8.9