题解列表

筛选

数字逆序输出

摘要:解题思路:1.具体问题具体分析,本题要求输入十个数,定义数组长度为10就行了。2.注意数组下标是从零开始的,最后一个下标为9;数组下标0123456789插入前1234567890插入后0987543……

python解答,内容简洁易读

摘要:参考代码:def match_strings(s1, s2):    i, j = 0, 0    while i < len(s1) and j < len(s2):        if s1[i]……

第四届真题-带分数

摘要:解题思路:注意事项:参考代码:/*暴力思路: 1.枚举全排列 2.枚举a,b,c的每一位数,枚举其中两个即可。可以使用高中排列知识,在9位数中找2个空隙放隔板 3.判断等式是否成立*/ #in……

有规律的数列求和

摘要:参考代码:#include <stdio.h>#include <stdlib.h>float sum_dev(float fenzi,float fenmu,int n,float s){ if(n……

java--study||O.o

摘要:参考代码: import java.util.Scanner; public class Main {   public static void main(String[] args) {……

java没有无符号数,写C

摘要:参考代码:#include<iostream> using namespace std; int main() { unsigned x; int n; cin >> x >>……

java没有无符号数,写C

摘要:参考代码:#include<iostream> using namespace std; int main() { unsigned move(unsigned, int);     ……