题解列表

筛选

石头剪子布(不难,就是麻烦)

摘要:解题关键: strcmp() 字符串比较函数 头文件为#include strcmp(s1,s2) 若s1==s2,则返回0 若s1>s2,则返回大于0的值 若s1……

高精度乘法,vector,

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;vector<int> mul(const vector<in……

一个二维数组搞定最大子矩阵

摘要:解题思路:1.设一个足够大的二维数组2.从[1][1]开始向右下累加,使每个位置表示其左上方(包括该位置本身的数)的和3.四重for循环(前两重与后两重代表两个指针,指示矩阵的左上角和右下角)4.利用……

1025: [编程入门]数组插入处理(C++)

摘要:解题思路:一般前序遍历加后续遍历再插中,初始插头照顾值为最小的情况,比较为最大值则加在尾部参考代码://数组插入处理 #include<iostream> using namespace std;……

原码求补码

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { char a[16]; for (int i = 0; i < 1……

为什么不初始化就通不过

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){     int i;     char a[101] = {&#39;\……

三位数反转

摘要:解题思路:注意事项:参考代码: #includeint main(){    int a;    while(scanf("%d\n",&a)!=EOF){    int o,p,q;    o=a/……