java字符串p型编码 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static String pEncoding(String…… 题解列表 2023年12月02日 0 点赞 0 评论 193 浏览 评分:0.0
快速排序(c++代码) 摘要:解题思路:注意事项:参考代码:const int MAX = 10;int arr[MAX];void qsort(int l, int r) { if (l > r)return; int i = …… 题解列表 2023年12月02日 0 点赞 0 评论 125 浏览 评分:0.0
十六进制转八进制 摘要:解题思路: 先从十六进制转十进制,要注意对于字母和数字的分别处理,再把十进制转为八进制 参考代码: ```c #include #include #include #define M…… 题解列表 2023年12月02日 0 点赞 0 评论 134 浏览 评分:0.0
按比例计算成绩 摘要:解题思路: 1.注意计算公式 2.考虑输出结果类型 提示中输出结果不含小数 也就是说 输出结果为整型(int) 3.考虑double型向int型的强制转换 需要用到 i…… 题解列表 2023年12月02日 0 点赞 0 评论 197 浏览 评分:0.0
解法11111111111111 摘要:解题思路:注意事项:格式不要弄错参考代码:#include <stdio.h> int main(){ int n, k = 2, i = 0, q = 0; int a[10]; …… 题解列表 2023年12月02日 0 点赞 0 评论 208 浏览 评分:0.0
题解 2901: 查找特定的值 摘要: #include using namespace std; int c,b,d,sum=1; int a[200000]; int main(){ …… 题解列表 2023年12月02日 0 点赞 0 评论 189 浏览 评分:0.0
指针/引用练习之交换数字 摘要:解题思路:注意事项:参考代码://#define _CRT_SECURE_NO_WARNINGS//#pragma warning(disable:6031)#include<stdio.h>void…… 题解列表 2023年12月02日 0 点赞 0 评论 459 浏览 评分:0.0
计算邮资--ceil函数与printf函数之间的问题 摘要:解题思路:注意事项:ceil 函数不能直接嵌套在printf函数内使用,会出现错误参考代码:错误示例:#include<stdio.h>#include<math.h>int main(){ i…… 题解列表 2023年12月02日 0 点赞 0 评论 211 浏览 评分:0.0
2548: [CSP-J2020] 优秀的拆分 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;char s[1000];char a[…… 题解列表 2023年12月02日 0 点赞 0 评论 382 浏览 评分:0.0
利用C++完成完数的判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#define max 1000int range,array[max];int main(v…… 题解列表 2023年12月02日 0 点赞 0 评论 119 浏览 评分:0.0