分离整数的各个数位 摘要:解题思路:注意事项:参考代码:int main(){ int n,s=0; scanf("%d",&n); for(int i=n;i!=0;i/=10) { …… 题解列表 2023年12月13日 0 点赞 0 评论 2312 浏览 评分:0.0
宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define bian(a,b,c) S=(a+b+c)/2;#define mianji(a,b,c…… 题解列表 2023年12月13日 0 点赞 0 评论 748 浏览 评分:0.0
c语言宏定义求余数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define ret(a,b) t=a%b;int main(){ int a,b,t; …… 题解列表 2023年12月13日 0 点赞 0 评论 646 浏览 评分:0.0
题解 2912: 最长平台 摘要: #include using namespace std; int a[20000],c,d,n; int main() { cin>>n; …… 题解列表 2023年12月13日 0 点赞 0 评论 559 浏览 评分:0.0
c代码记录之加密的病历单 #include#includeintmain(){charstr[1000];//说好的长度小于50呢?inti,n;gets(str);n=strlen(str);for(i=n-1;i>=0;i--){//逆序输出if(str[i]>='a'&&str[i] 题解列表 2023年12月13日 0 点赞 0 评论 565 浏览 评分:0.0
清晰高精度数字加法 解题思路:注意事项:参考代码://高精度数字相加#include#includecharn[1001],m[1001];inta[1001],b[1001],c[1001];intmain(){while(~scanf("%s%s",n,m)){//反向存入int型//n存入am存入bintln=st 题解列表 2023年12月13日 0 点赞 3 评论 554 浏览 评分:9.9
c代码记录之整数的尾除-C 摘要: #include int main() { int m,n,i; while(1){ scanf("%d%d"…… 题解列表 2023年12月13日 0 点赞 0 评论 550 浏览 评分:0.0
宏定义之找最大数 摘要:解题思路:【LP】宏定义max函数进行解题for循环输出两行注意事项:#define max(a,b) ((a)>(b)?(a):(b)我们使用宏定义来实现了 max 函数和 count 宏。max …… 题解列表 2023年12月13日 0 点赞 0 评论 968 浏览 评分:9.9
[编程入门]结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> typedef struct students{ char *id; cha…… 题解列表 2023年12月13日 0 点赞 0 评论 515 浏览 评分:9.9
画矩形(python) 摘要:解题思路:用两个循环打出长宽的边,再用if判断是否为实心参考代码:length, width, symbol, solid = map(str, input().split()) for i in …… 题解列表 2023年12月13日 0 点赞 0 评论 628 浏览 评分:9.9