1130: C语言训练-数字母 摘要:解题思路: strlen函数判断字符长度,头文件string.h isalpha函数判断是否为字母(包含大小写)(是返回非0),头文件ctype.h注意事项: count必须赋值0,…… 题解列表 2022年12月30日 0 点赞 0 评论 132 浏览 评分:0.0
超简单逻辑代码 摘要:解题思路:输出结果时代表行列的i,n互换位置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[3][3],i,n; f…… 题解列表 2022年12月30日 0 点赞 0 评论 161 浏览 评分:0.0
c语言,运用中间变量置换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() {double n,…… 题解列表 2022年12月30日 0 点赞 0 评论 308 浏览 评分:0.0
1126: C语言训练-字符串正反连接 摘要:解题思路:解1;先反转字符串,再合并正反字符串,后输出(更严谨)。解2;先正着输出字符串,再反着输出字符串(简单暴力);注意事项:参考代码:代码1;#include<stdio.h>#include<…… 题解列表 2022年12月30日 0 点赞 0 评论 273 浏览 评分:0.0
整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long x,y; char a; scanf("%lld%lld",&x,&…… 题解列表 2022年12月30日 0 点赞 0 评论 275 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a[1000],i,ave,s=0; scanf("%d",&n); fo…… 题解列表 2022年12月30日 0 点赞 0 评论 150 浏览 评分:0.0
暴力解法(凑字数。。。。。。。 摘要:解题思路:注意事项:参考代码:def shu(gewei,ci): if ci==1: return gewei else: return gewei*10*…… 题解列表 2022年12月30日 0 点赞 0 评论 138 浏览 评分:0.0
统计数字字符个数 摘要:、解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,n=0; char a[255]; …… 题解列表 2022年12月30日 0 点赞 0 评论 341 浏览 评分:0.0
2的幂 基础模式,中规中矩 摘要:解题思路:pow函数的应用注意事项:注意头文件math.h参考代码:#include<stdio.h>#include<math.h>int main(){ int n,i; scanf(…… 题解列表 2022年12月31日 0 点赞 0 评论 362 浏览 评分:0.0
2779 输出绝对值题解 摘要:解题思路:本题只需要按照题干的要求模拟输出即可。注意事项:1.绝对值,即非负数的绝对值为其本身,负数的绝对值为其相反数(即符号相反) 2.注意保留两位小数。可以用fixed和…… 题解列表 2022年12月31日 0 点赞 0 评论 247 浏览 评分:0.0