简单易懂,利用string字符类型(C++代码) 摘要:解题思路: 很简单的思路,利用字符串类型输入字符串s,利用for循环从s的第m-1个下标开始输出。注意事项: 注意,是从s的第m-1个下标开始输出,不是第m个下标。参考代码:#in…… 题解列表 2020年12月01日 0 点赞 0 评论 1103 浏览 评分:9.9
IP判断-题解(C语言代码) ###解题思路看代码注释:```c#include#includeintmain(){inti;chara[30];intisip;while(scanf("%s",&a)!=EOF){//判断是否为EOFintb[3]={0};isip=1;intx=0, 题解列表 2020年12月01日 0 点赞 1 评论 1706 浏览 评分:9.9
[编程入门]自定义函数之字符类型统计-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void count(char arr[]){ int i,a=0,b=0,c=0,d=0;for(i=0;arr[i]!='…… 题解列表 2020年12月01日 0 点赞 0 评论 776 浏览 评分:9.9
[编程入门]宏定义之找最大数-题解(C语言代码) 摘要:解题思路:宏定义和函数的返回值是最大值输出注意事项:宏定义用?:操作符,函数用if语句,也可以用?:求参考代码:#include<stdio.h> #define max(x,y,z) (x>y?x…… 题解列表 2020年12月01日 0 点赞 0 评论 1135 浏览 评分:9.9
[编程入门]阶乘求和-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j; long long a[21],sum1,sum2=0; scanf("%d",&n); …… 题解列表 2020年12月01日 0 点赞 0 评论 737 浏览 评分:9.9
[编程入门]完数的判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,k,sum,count,m; int a[100]; scanf("%d",&n); for…… 题解列表 2020年12月01日 0 点赞 0 评论 753 浏览 评分:9.9
做幻方-题解(C语言代码) 摘要:解题思路:注意事项:参考代码: 代码格式不太好看,建议粘贴在编译器上看11 18 25 …… 题解列表 2020年12月02日 0 点赞 0 评论 1042 浏览 评分:9.9
[编程入门]报数问题-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,count=0,count1=0; int a[1000]={0}; scanf("%d",&n…… 题解列表 2020年12月02日 0 点赞 0 评论 1248 浏览 评分:9.9
[编程入门]自定义函数之整数处理-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[10]={0},b=9999999,c=-100000,x=0,y=0…… 题解列表 2020年12月03日 0 点赞 1 评论 1853 浏览 评分:9.9
蓝桥杯算法训练VIP-字符串的展开-题解(C++代码)那个最短的不行哈,我的代码全网最短。 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int p1,p2,p3,i=0,k; char ch[300],be,a…… 题解列表 2020年12月03日 1 点赞 0 评论 989 浏览 评分:9.9