题解列表
LinkedHashMap解法
摘要:解题思路:注意事项:Map:key,values LinkedHashMap:有序的key,values参考代码:Scanner sc = new Scanner(System.in);
St……
同行列对角线的格子(C语言代码)
摘要:```c
#include
/*------------------------------*/
void S_line(int n, int x, int y)//从左到右输出同一行格子位置
……
C语言联合if语句正常解法
摘要:解题思路:无非就是一个从零开始一个从最大开始,一个递增一个递减一直互相交换字符注意事项:这里面交换字符的中间量记得用char参考代码:#include<stdio.h>#include<string.……
矩阵加法(C语言代码)
摘要:```c
#include
void input(int(*arr)[100], int n,int m)
{
for (int i = 0; i < n; i++)
{
……
自己写的c++最暴力版
摘要:参考代码:#include<iostream>#include<string>using namespace std;int n;int main(){ cin>>n; int a=65; strin……
自定义函数之字符提取
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int f(char a[1000],int sz,char b[5]){ int i=……
亲和数(超简单C++)
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
int f(int n) //求约数和
{
int i,s=0……
1009利用循环解决问题(coolboy小白)
摘要:解题思路:1):首先明确三个任务都是利用循环结构,2):第一个任务输出数字的位数:将数字不断除以10,计算可以几次,该次数即是这个数字的位数。eg:i=1;1234/10=123,i=2;123/10……