汤少的随机数(C语言解法)先排序后去重 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<string.h>using namespace std;int main(){int a[100],b,c,d;…… 题解列表 2023年06月28日 0 点赞 0 评论 342 浏览 评分:0.0
直接根据ASCII表进行输出,减少循环次数 摘要: #include #include int main(){ char str[10000]; int arr[26] = { 0 }; while (gets(str)) { …… 题解列表 2023年06月28日 0 点赞 0 评论 455 浏览 评分:0.0
1030: [编程入门]二维数组的转置 摘要:# 自己写的代码 ```c #include int main() { int a[3][3]; int b[3][3]; for(int i=0;i…… 题解列表 2023年06月28日 0 点赞 0 评论 409 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char str[101]; gets(str); str[strlen(str)] = &#…… 题解列表 2023年06月29日 0 点赞 0 评论 387 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float k,p,profit,money=0.0,sum_profit=0.0; int n; …… 题解列表 2023年06月29日 0 点赞 0 评论 408 浏览 评分:0.0
猴子吃桃的问题 摘要:#include <stdio.h> int main(){ int T,N,i,sum=1; scanf("%d",&N); for(i=1;i<N;i++){ sum=(sum…… 题解列表 2023年06月29日 0 点赞 0 评论 321 浏览 评分:0.0
和为给定数--二分 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int a[100001];int main(){ in…… 题解列表 2023年06月29日 0 点赞 0 评论 438 浏览 评分:0.0
1031题: 自定义函数之字符串反转 摘要:# 自己写的代码 ```c #include #include int main() { char a[20]; gets(a); int len=0; len=strl…… 题解列表 2023年06月29日 0 点赞 0 评论 464 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>struct student{ char name[21]; char sex[21];…… 题解列表 2023年06月29日 0 点赞 0 评论 377 浏览 评分:0.0
1032题 : 自定义函数之字符串连接 摘要:# 自己写的代码 ```c #include #include int main() { char a[20]; char b[20]; gets(a); gets(b)…… 题解列表 2023年06月29日 0 点赞 0 评论 385 浏览 评分:0.0