1008: [编程入门]成绩评定 摘要:解题思路:switch判断注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a; cin>>a; …… 题解列表 2021年03月21日 0 点赞 0 评论 523 浏览 评分:7.3
Tom数--(c语言) 摘要:解题思路:我们可以把所要算的Tom数的位数存于一个数组里,后面在把数组里的数相加就得到我们要算的Tom数了注意事项:注意定义变量的类型,防止溢出参考代码:#include<stdio.h>//注意定义…… 题解列表 2021年03月22日 0 点赞 0 评论 903 浏览 评分:7.3
题解 2105: 狂猎退去 ( C语言代码 )为什么这道题才26%的AC 摘要: 参考代码:#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> int main…… 题解列表 2021年03月26日 0 点赞 0 评论 386 浏览 评分:7.3
简单方法!字符串处理 摘要:解题思路:把要处理的数字全部都插入到字符串当中, 然后找规律, 进行输出。注意事项:详情都写在代码里参考代码:#includeusing namespace std; typedef long …… 题解列表 2021年04月02日 0 点赞 0 评论 522 浏览 评分:7.3
题目 1032: [编程入门]自定义函数之字符串连接 摘要:def fun(str_1, str_2): new_ste = str_1 + str_2 return new_stestr_1 = input()str_2 = input()rel…… 题解列表 2021年04月06日 0 点赞 0 评论 635 浏览 评分:7.3
字符串问题,C语言,原地逆序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> #define SWAP(a, b)((a)^=(b),(b)^=(a),(a)^=…… 题解列表 2021年04月07日 0 点赞 0 评论 837 浏览 评分:7.3
两种代码的对比 摘要:第一种递归:超时50%#include<bits/stdc++.h>using namespace std;int muniu_num(int n){ if(n<=3) return n; retu…… 题解列表 2021年04月07日 0 点赞 1 评论 271 浏览 评分:7.3
九九乘法表 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; for(i=1;i<=9;i++) { for(j=1;j<=i;j++)…… 题解列表 2021年04月07日 0 点赞 0 评论 879 浏览 评分:7.3
优质题解 菜鸟的思路 摘要:解题思路: 一、先划分大的框架,从整体看 分为length相同和不相同。 二、lengthb不相同只有一种情况,那就是第1种情况。 三、length相同分为三种情况,而这三种情况又分…… 题解列表 2021年04月12日 0 点赞 3 评论 715 浏览 评分:7.3
菜鸡的题解008——后缀表达式 摘要:后缀表达式只是正常式子的一种形式,所以直接当成正常的中缀表达式理解,给定正负号,分类讨论。如果全是正号的话,直接求和;如果存在负号的话,绝对会有一个数不能转化符号,也有一个数必须被减去,但其他数都可以…… 题解列表 2021年04月15日 0 点赞 0 评论 735 浏览 评分:7.3