汤少的随机数(C语言解法)先排序后去重 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<string.h>using namespace std;int main(){int a[100],b,c,d;…… 题解列表 2023年06月28日 0 点赞 0 评论 471 浏览 评分:0.0
直接根据ASCII表进行输出,减少循环次数 #include#includeintmain(){charstr[10000];intarr[26]={0};while(gets(str)){intlen=strlen(str);for(inti=0;i 题解列表 2023年06月28日 0 点赞 0 评论 603 浏览 评分:0.0 1030: [编程入门]二维数组的转置 #自己写的代码```c#includeintmain(){inta[3][3];intb[3][3];for(inti=0;i 题解列表 2023年06月28日 0 点赞 0 评论 579 浏览 评分:0.0 c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char str[101]; gets(str); str[strlen(str)] = &#…… 题解列表 2023年06月29日 0 点赞 0 评论 544 浏览 评分: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 评论 536 浏览 评分: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 评论 449 浏览 评分:0.0 和为给定数--二分 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int a[100001];int main(){ in…… 题解列表 2023年06月29日 0 点赞 0 评论 600 浏览 评分:0.0 1031题: 自定义函数之字符串反转 #自己写的代码```c#include#includeintmain(){chara[20];gets(a);intlen=0;len=strlen(a);for(inti=len-1;i>=0;i--){printf("%c",a[i]);}return0;}```#代码思路利用置换原理进行将前后置 题解列表 2023年06月29日 0 点赞 0 评论 604 浏览 评分:0.0 c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>struct student{ char name[21]; char sex[21];…… 题解列表 2023年06月29日 0 点赞 0 评论 527 浏览 评分:0.0 1032题 : 自定义函数之字符串连接 #自己写的代码```c#include#includeintmain(){chara[20];charb[20];gets(a);gets(b);intlen_1=0,len_2=0;len_1=strlen(a);len_2=strlen(b);for(inti=0;i 题解列表 2023年06月29日 0 点赞 0 评论 563 浏览 评分:0.0 « 12...4653465446554656465746584659...59125913 »
1030: [编程入门]二维数组的转置 #自己写的代码```c#includeintmain(){inta[3][3];intb[3][3];for(inti=0;i 题解列表 2023年06月28日 0 点赞 0 评论 579 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char str[101]; gets(str); str[strlen(str)] = &#…… 题解列表 2023年06月29日 0 点赞 0 评论 544 浏览 评分: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 评论 536 浏览 评分: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 评论 449 浏览 评分:0.0
和为给定数--二分 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int a[100001];int main(){ in…… 题解列表 2023年06月29日 0 点赞 0 评论 600 浏览 评分:0.0
1031题: 自定义函数之字符串反转 #自己写的代码```c#include#includeintmain(){chara[20];gets(a);intlen=0;len=strlen(a);for(inti=len-1;i>=0;i--){printf("%c",a[i]);}return0;}```#代码思路利用置换原理进行将前后置 题解列表 2023年06月29日 0 点赞 0 评论 604 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>struct student{ char name[21]; char sex[21];…… 题解列表 2023年06月29日 0 点赞 0 评论 527 浏览 评分:0.0
1032题 : 自定义函数之字符串连接 #自己写的代码```c#include#includeintmain(){chara[20];charb[20];gets(a);gets(b);intlen_1=0,len_2=0;len_1=strlen(a);len_2=strlen(b);for(inti=0;i 题解列表 2023年06月29日 0 点赞 0 评论 563 浏览 评分:0.0