题解列表

筛选

选择排序一般写法

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstring>#include <algorithm>using namespace std;void cho……

题目2917:奇数单增排序,C语言

摘要:解题思路:a[]是原数组,b[]奇数数组注意事项:参考代码:#include<stdio.h>void input(int a[],int n);   输入数据。int f(int a[],int b……

鸡尾酒疗法

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#include <complex.h> int main() {    int n, x, y[2……
优质题解

Yu金币简洁易懂写法

##解析:本题无法直接循环天数和金币数。但是发现一个规律,连续的n天都发放n枚金币。我们可以用while循环解决连续n天发放n枚金币。**我的解法:**sum记录总金币,n代表总天数,day代表当前第几天。for循环里:用i代表该天应当获得的金币数,而day控制循环while循环:连续k天金币加i个。

学习ASCII码(java)

摘要:参考代码:import java.util.Scanner;//用熟悉的printf输出字符常量 &#39; t &#39; 的ASCII以及ASCII码值63对应的字符!//注意,是两个结果,一个数……

题目 1739: 成绩排序

摘要:解题思路:注意事项:参考代码:def compare_students(student):    name, age, score = student    return (score, name, ……

数位排序暴力

摘要:解题思路:暴力注意事项:无参考代码:#pragma GCC optimize(3) #include <bits/stdc++.h> using namespace std; #define e……