题解列表
[编程入门]数组插入处理
摘要:```java
import java.util.Scanner;
public class Main {
public static void main(String[] args) {……
[编程入门]自定义函数求一元二次方程
摘要:```java
import java.util.Scanner;
public class Main {
public static void main(String[] args) {……
[编程入门]数字逆序输出
摘要:解题思路:注意事项:参考代码:Scanner sc = new Scanner(System.in); int[] arr = new int[10]; for (int i = 0; i < a……
2896: 二维数组右上左下遍历
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
……
[编程入门]数组插入处理
摘要:解题思路:关键在于n后面数的替换,可定义两个相同数组来实现替换。注意事项:参考代码:# includeint main(){ int n; int a[10]; int b[9]; for (int ……
[编程入门]宏定义的练习
摘要:解题思路:定义一个宏定义,求取a b的余数注意事项:取余符号是%参考代码:#include<stdio.h>#define reasu (a%b)main(){ int a,b; s……
简简单单输入n(n<=100)个整数,按照绝对值从大到小排序后输出。题目保证对于每一个测试实例,所有的数的绝对值都不相等。
摘要:解题思路:注意事项:函数调用一大堆,哈哈哈就是面向对象参考代码:#include <iostream>
#include <vector>
#include <algorithm>
#inclu……
第一次独立写出,发表一下获奖感言。
摘要:解题思路:先建立结构体,然后输入,for循环简单计算平均值和找出成绩最高的注意事项:输入和输出格式参考代码:#include<stdio.h>#include<stdlib.h>int main(){……
出圈,人要麻木了,真的出圈了
摘要:解题思路:注意事项:在判断最后一个函数中的迭代器要两次判断尾参考代码:#include <iostream>
#include <vector>
using namespace std;
voi……