汽水瓶【递归】 ```java//汽水瓶//这时候剩2个空瓶子。然后你让老板先借给你一瓶汽水,喝掉这瓶满的,喝完以后用3个空瓶子换一瓶满的还给老板importjava.util.Scanner;publicclassMain{publicstaticintfn(inta){//利用分治递归的思想, 题解列表 2022年03月19日 0 点赞 0 评论 671 浏览 评分:0.0
编写题解 1025: [编程入门]数组插入处理(初始解题,包含数组、循环、判断) #原题链接**[编程入门]数组插入处理-C语言网https://www.dotcpp.com/oj/problem1025.html。**##解题思路**1、按照题目要求输入正序的数(假设是从小到大顺序)放入数组,同时输入需要插入的数x2、用x与数组元素比较, 题解列表 2022年03月19日 0 点赞 0 评论 716 浏览 评分:0.0
编写题解 1085: A+B for Input-Output Practice (I) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while (scanf("%d %d",&a,&b)!=EOF) { …… 题解列表 2022年03月19日 0 点赞 0 评论 574 浏览 评分:0.0
编写题解 1086: A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int a,b; cin>>n; …… 题解列表 2022年03月19日 0 点赞 0 评论 643 浏览 评分:0.0
编写题解 1087: A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b){ …… 题解列表 2022年03月19日 0 点赞 0 评论 589 浏览 评分:0.0
编写题解 1088: A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int a; while(true){…… 题解列表 2022年03月19日 0 点赞 0 评论 525 浏览 评分:0.0
编写题解 1089: A+B for Input-Output Practice (V) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int a; int m; ci…… 题解列表 2022年03月19日 0 点赞 0 评论 599 浏览 评分:0.0
编写题解 1090: A+B for Input-Output Practice (VI) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int a;while(cin>>n){ …… 题解列表 2022年03月19日 0 点赞 0 评论 510 浏览 评分:0.0
编写题解 1091: A+B for Input-Output Practice (VII) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b){ …… 题解列表 2022年03月19日 0 点赞 0 评论 550 浏览 评分:0.0
蓝桥杯2019年第十届国赛真题-最长子序列-pyhon写法 S=input()T=input()i=0j=0ans=[]#用于存储子序列whilei 题解列表 2022年03月19日 0 点赞 0 评论 631 浏览 评分:0.0