字符类型统计-傻瓜做法 摘要:解题思路:如果忘记了alpha、dight、space这几个单词的情况下可以用这个方法......注意事项:注意字母是会有大写小写两种状态的参考代码:inp = input()A = 0B = 0C …… 题解列表 2022年03月03日 0 点赞 0 评论 319 浏览 评分:0.0
宏定义之闰年判断 摘要:```cpp #include using namespace std; #define LEAP_YEAR(y) if((y%100!=0&&y%4==0)||y%400==0){cout…… 题解列表 2022年03月03日 0 点赞 0 评论 274 浏览 评分:0.0
题解 1135: C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,n; scanf("%d %d",&a,&n); if(n>=…… 题解列表 2022年03月03日 0 点赞 0 评论 424 浏览 评分:0.0
题解 1149: C语言训练-计算1~N之间所有奇数之和 摘要:解题思路:注意事项:计算奇数时需要包括1和n本身参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); …… 题解列表 2022年03月03日 0 点赞 0 评论 460 浏览 评分:0.0
宏定义之找最大数 摘要:```cpp #include using namespace std; #define da2(a,b,c) float x1,x2;x1=max(a,b);x2=max(x1,c);cout…… 题解列表 2022年03月03日 0 点赞 0 评论 283 浏览 评分:0.0
题解 1150: C语言训练-计算t=1+1/2+1/3+...+1/n 摘要:解题思路:注意事项:1.计算分数的值时,分母的数据类型需要设为浮点型参考代码:#include<stdio.h> int main() { int n; double t=0,…… 题解列表 2022年03月03日 0 点赞 0 评论 266 浏览 评分:0.0
1575 递归倒置字符数组 java 摘要:- 代码 ```java import java.util.ArrayList; import java.util.Scanner; public …… 题解列表 2022年03月03日 0 点赞 0 评论 459 浏览 评分:0.0
题解 2002: 计算数字个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { char arr[100]; //定义一个数组,用来存储字符串 int i,j=0…… 题解列表 2022年03月03日 0 点赞 0 评论 452 浏览 评分:0.0
题解 2004: 统计成绩 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[10],i,fail=0; double sum = 0; //平均…… 题解列表 2022年03月03日 0 点赞 0 评论 264 浏览 评分:0.0
python求解方法 摘要:解题思路:注意事项:参考代码:#完整版a,b=map(int,input().split())maps=[[0 for j in range(b)]for i in range(a)]for i in…… 题解列表 2022年03月03日 0 点赞 0 评论 351 浏览 评分:0.0