[编程入门]三个数最大值 摘要:#include<bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false) int main() …… 题解列表 2024年02月04日 0 点赞 0 评论 293 浏览 评分:9.9
三个嵌套for循环+pow函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> //pow函数的头文件int main(){ int a,b,c,cn,sn; cn=sn=0;…… 题解列表 2024年02月04日 0 点赞 0 评论 189 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:注意数组类型为char不是int参考代码:#include<stdio.h>#include<string.h>void sort(char arr[100], int a){ …… 题解列表 2024年02月04日 0 点赞 0 评论 157 浏览 评分:0.0
蓝桥杯基础练习VIP-数的读法 (java题解) 摘要:package 假期作业; import java.util.Scanner; public class 数的读法 { public static void main(String…… 题解列表 2024年02月04日 0 点赞 0 评论 213 浏览 评分:0.0
编写题解 2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a,i,sum=0; scanf("%d",&n); for(i=1;i<=n;i…… 题解列表 2024年02月04日 0 点赞 0 评论 323 浏览 评分:0.0
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:可以调用系统函数解决,鄙人附带了strcat功能实现的代码,可以进行参考注意事项:使用strcat时要调用string.h的文件参考代码:#include<stdio.h>#include<…… 题解列表 2024年02月04日 0 点赞 0 评论 190 浏览 评分:0.0
过滤多余的空格(Java) 摘要:解题思路:注意事项:参考代码:public static void main(String args[]) { Scanner sc=new Scanner(System.in); Str…… 题解列表 2024年02月04日 0 点赞 0 评论 172 浏览 评分:0.0
最简洁的解 摘要:参考代码:n = int(input()) # 初始饮料数和瓶盖数 total_drinks = n caps = n # 不断循环,直到无法再换取新的饮料 while caps >…… 题解列表 2024年02月04日 0 点赞 0 评论 271 浏览 评分:9.9
大整数乘法C++ 摘要://大整数乘法#include <bits/stdc++.h>using namespace std;int na[2005], nb[2005], nc[4010];string mul(strin…… 题解列表 2024年02月04日 0 点赞 0 评论 322 浏览 评分:0.0
接龙数列动态规划的python写法 摘要:解题思路:极简 线性DP-Dotcpp编程社区dp[]数组长度设置为10,因为接龙数列的每一项均为数字,从1~9,0不需要考虑进去;dp[]数组的含义:以i结尾的接龙数列的最大长度;设a为接龙数列的第…… 题解列表 2024年02月04日 0 点赞 0 评论 627 浏览 评分:8.0