题解列表

筛选

java字符串p型编码

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {    public static String pEncoding(String……

快速排序(c++代码)

摘要:解题思路:注意事项:参考代码:const int MAX = 10;int arr[MAX];void qsort(int l, int r) { if (l > r)return; int i = ……

十六进制转八进制

摘要:解题思路: 先从十六进制转十进制,要注意对于字母和数字的分别处理,再把十进制转为八进制 参考代码: ```c #include #include #include #define M……

按比例计算成绩

摘要:解题思路:    1.注意计算公式    2.考虑输出结果类型 提示中输出结果不含小数 也就是说 输出结果为整型(int)    3.考虑double型向int型的强制转换        需要用到 i……

解法11111111111111

摘要:解题思路:注意事项:格式不要弄错参考代码:#include <stdio.h> int main(){    int n, k = 2, i = 0, q = 0;    int a[10];    ……

指针/引用练习之交换数字

摘要:解题思路:注意事项:参考代码://#define _CRT_SECURE_NO_WARNINGS//#pragma warning(disable:6031)#include<stdio.h>void……

2548: [CSP-J2020] 优秀的拆分

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;char s[1000];char a[……

利用C++完成完数的判断

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define max 1000int range,array[max];int main(v……