编写题解 1098: 陶陶摘苹果 摘要:解题思路:这个程序首先使用 Scanner 类读取输入数据。在读取10个苹果的高度时,我们使用一个整型数组来存储它们。在读取陶陶能够伸手的最大高度时,我们直接使用一个整数来存储它。接下来,程序使用一个…… 题解列表 2023年04月24日 0 点赞 0 评论 769 浏览 评分:9.9
简单又实用,看不懂请打死我 摘要:解题思路:用排序函数sort对输入的数据进行排序,使用降重函数unique对输入的数据进行降重并输出注意事项:使用sort和unique前添加头文件#include<algorithm>参考代码:#i…… 题解列表 2023年04月24日 0 点赞 0 评论 516 浏览 评分:9.9
2761: Hello, World!的大小 摘要:解题思路:复制"Hello, World!",直接用sizeof()输出。注意事项:直接复制"Hello, World!"的话不要复制双引号,题目的双引号是中文的,无法通过编译。参考代码:#inclu…… 题解列表 2023年04月25日 0 点赞 0 评论 1081 浏览 评分:9.9
原题链接:整型数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; short b; cout<<sizeof(…… 题解列表 2023年04月25日 0 点赞 0 评论 828 浏览 评分:9.9
有点浪费时间,不过稳定通过 摘要:参考代码:def fun(n): min_num=int(n[-1]) n=list(n) del n[-1] new_n='' for i in n: …… 题解列表 2023年04月25日 0 点赞 0 评论 526 浏览 评分:9.9
C语言训练-通俗易懂代码---亲密数 摘要:解题思路:第一步:把这3000个数的因子全部统计下来 第二步:利用循环在循环中寻找符合条件的数注意事项:参考代码:#include<stdio.h>int kiss_num(…… 题解列表 2023年04月25日 0 点赞 1 评论 800 浏览 评分:9.9
[STL训练]壮志难酬(c语言) 摘要:```c int main() { int t; scanf("%d", &t); while (t--) { char str[20] = { 0 }; int n;…… 题解列表 2023年04月25日 0 点赞 0 评论 564 浏览 评分:9.9
[STL训练]寻梦(c语言gets过不了) 摘要:```c #include #include int main() { int n; scanf("%d", &n); getchar(); while (n--) {…… 题解列表 2023年04月25日 0 点赞 1 评论 589 浏览 评分:9.9
亲和串-手写函数解决(c语言) 摘要:```c #include #include char str1[100000]; char str2[100000]; void cycle_str(char*,int len); …… 题解列表 2023年04月25日 0 点赞 0 评论 561 浏览 评分:9.9
1307: 表达式计算1 摘要:```cpp #include using namespace std; const int N=10001; int a[N],b[N]; char op,k; bool key,mar…… 题解列表 2023年04月25日 0 点赞 1 评论 786 浏览 评分:9.9