鸡兔同笼--java语言 摘要:解题思路: 通过数学思维 将公式列出 假设鸡a,兔b 在已知头x,脚y时,可得: a+b = x; 2a + (x-b)4 = y;   题解列表 2023年12月03日 0 点赞 0 评论 258 浏览 评分:0.0
编写题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double s,a,b,c; cin>>a>…… 题解列表 2023年12月03日 0 点赞 0 评论 125 浏览 评分:0.0
A+B for Input-Output Practice (II) python代码 摘要:这几个题真的有点没活了,实在不行去咬打火机,pass意思就是跳过,数组的长度小于等于1passwhile True: try: a = list(map(int, input().…… 题解列表 2023年12月03日 0 点赞 0 评论 144 浏览 评分:0.0
单词反转(遍历) 摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Scanner;public class Main { public static…… 题解列表 2023年12月03日 0 点赞 0 评论 106 浏览 评分:0.0
利用C++完成选择排序 摘要:解题思路:注意事项:参考代码:#include<iostream>#define totalnum 10using namespace std;int array[totalnum];void jud…… 题解列表 2023年12月03日 0 点赞 0 评论 103 浏览 评分:0.0
C语言史山:两个链表,数组排大小,链表的搜索。共计109行 摘要:参考代码:#include <stdio.h>#include <stdlib.h>typedef struct Node1{ int number; int grade; stru…… 题解列表 2023年12月03日 0 点赞 0 评论 100 浏览 评分:0.0
编写题解 1069: 二级C语言-寻找矩阵最值 摘要:解题思路:注意事项:参考代码:n = int(input()) my_list = [] my_lit = None for i in range(n): my_lit = list(…… 题解列表 2023年12月03日 0 点赞 0 评论 112 浏览 评分:0.0
编写题解 1136: C语言训练-求具有abcd=(ab+cd)2性质的四位数 摘要:解题思路:注意事项:参考代码:for i in range(1000, 10000): # 生成一个序列,也就是所有的四位数 l = i // 100 # 将这个数的左边两位拿出 …… 题解列表 2023年12月04日 0 点赞 0 评论 103 浏览 评分:0.0
题解 2847: 找第一个只出现一次的字符(好像写的复杂了,不过第一想法是这么写的) 摘要:解题思路:建立一个长度为26的全0列表,表示从'a'到'z',之后遍历的时候遇到第一个1就输出,然后break注意事项:注意chr和ord的使用ord是打印ascll数…… 题解列表 2023年12月04日 0 点赞 0 评论 177 浏览 评分:0.0
[编程入门]三个数字的排序(C语言指针方法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,*p1,*p2,*p3,*p; scanf("%d %d %d",&a,&b,&…… 题解列表 2023年12月04日 0 点赞 0 评论 118 浏览 评分:0.0