石头剪子布(不难,就是麻烦) 摘要:解题关键: strcmp() 字符串比较函数 头文件为#include strcmp(s1,s2) 若s1==s2,则返回0 若s1>s2,则返回大于0的值 若s1…… 题解列表 2023年09月21日 0 点赞 0 评论 500 浏览 评分:0.0
高精度乘法,vector, 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;vector<int> mul(const vector<in…… 题解列表 2023年09月21日 0 点赞 0 评论 342 浏览 评分:0.0
信息学奥赛一本通T1307-高精度乘法 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;vector<int> mul(const vector<in…… 题解列表 2023年09月21日 0 点赞 0 评论 684 浏览 评分:0.0
一个二维数组搞定最大子矩阵 摘要:解题思路:1.设一个足够大的二维数组2.从[1][1]开始向右下累加,使每个位置表示其左上方(包括该位置本身的数)的和3.四重for循环(前两重与后两重代表两个指针,指示矩阵的左上角和右下角)4.利用…… 题解列表 2023年09月21日 0 点赞 0 评论 478 浏览 评分:9.9
1025: [编程入门]数组插入处理(C++) 摘要:解题思路:一般前序遍历加后续遍历再插中,初始插头照顾值为最小的情况,比较为最大值则加在尾部参考代码://数组插入处理 #include<iostream> using namespace std;…… 题解列表 2023年09月21日 0 点赞 0 评论 518 浏览 评分:9.9
简单算术表达式求值(整点花活,三目运算符) 摘要:参考代码: ```c #include int main() { int a; char c; int b; scanf("%d%c%d",&a,&c,&b); int d…… 题解列表 2023年09月21日 0 点赞 0 评论 469 浏览 评分:0.0
原码求补码 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { char a[16]; for (int i = 0; i < 1…… 题解列表 2023年09月21日 0 点赞 0 评论 387 浏览 评分:0.0
为什么不初始化就通不过 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int i; char a[101] = {'\…… 题解列表 2023年09月21日 0 点赞 0 评论 385 浏览 评分:0.0
2851: 合法C标识符(C语言) 摘要: #include #include int main() { char a[100]; scanf("%s",a); int n=strlen(a); int p…… 题解列表 2023年09月21日 0 点赞 0 评论 524 浏览 评分:0.0
三位数反转 摘要:解题思路:注意事项:参考代码: #includeint main(){ int a; while(scanf("%d\n",&a)!=EOF){ int o,p,q; o=a/…… 题解列表 2023年09月21日 0 点赞 0 评论 473 浏览 评分:0.0