简单又实用,看不懂请打死我 摘要:解题思路:用排序函数sort对输入的数据进行排序,使用降重函数unique对输入的数据进行降重并输出注意事项:使用sort和unique前添加头文件#include<algorithm>参考代码:#i…… 题解列表 2023年04月24日 0 点赞 0 评论 278 浏览 评分:9.9
2761: Hello, World!的大小 摘要:解题思路:复制"Hello, World!",直接用sizeof()输出。注意事项:直接复制"Hello, World!"的话不要复制双引号,题目的双引号是中文的,无法通过编译。参考代码:#inclu…… 题解列表 2023年04月25日 0 点赞 0 评论 799 浏览 评分:9.9
原题链接:整型数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; short b; cout<<sizeof(…… 题解列表 2023年04月25日 0 点赞 0 评论 628 浏览 评分: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 评论 317 浏览 评分:9.9
C语言训练-通俗易懂代码---亲密数 摘要:解题思路:第一步:把这3000个数的因子全部统计下来 第二步:利用循环在循环中寻找符合条件的数注意事项:参考代码:#include<stdio.h>int kiss_num(…… 题解列表 2023年04月25日 0 点赞 1 评论 554 浏览 评分: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 评论 342 浏览 评分:9.9
[STL训练]寻梦(c语言gets过不了) 摘要:```c #include #include int main() { int n; scanf("%d", &n); getchar(); while (n--) {…… 题解列表 2023年04月25日 0 点赞 1 评论 353 浏览 评分:9.9
亲和串-手写函数解决(c语言) 摘要:```c #include #include char str1[100000]; char str2[100000]; void cycle_str(char*,int len); …… 题解列表 2023年04月25日 0 点赞 0 评论 361 浏览 评分: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 评论 532 浏览 评分:9.9
Anagrams问题(c语言代码) 摘要: 解题思路:首先根据题目我们知道给定的两个字符串的长度一定是一样的,要求我们求字符串中的字母出现的次数是否一样。我们可以不跟着他的要求来解题,换种思路就很简单了。 N.1将两个字符串中的字符全…… 题解列表 2023年04月25日 0 点赞 0 评论 368 浏览 评分:9.9