c代码记录之自定义函数数字分离-C 摘要:解题思路:注意事项:参考代码:#includevoid output(char num[]) { int i; for(i=0;i<4;i++) printf(…… 题解列表 2023年11月13日 0 点赞 0 评论 271 浏览 评分:0.0
python编写a%b 摘要:解题思路:跟a+b一样的思路只是改运算符,具体注意事项参照a+b参考代码:while True: try: a,b=map(int,input().strip().split()) print(a…… 题解列表 2023年11月13日 0 点赞 0 评论 359 浏览 评分:0.0
c代码记录之自定义函数字符提取 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void imp(char str[],char output[],int n) …… 题解列表 2023年11月13日 0 点赞 0 评论 294 浏览 评分:0.0
python编写a+b 摘要:解题思路:用while语句让它一直循环,不然直接打印会只对百分之五十。while语句有始有终,需要用break跳出注意事项:注意代码前面空格的位置参考代码:while True: try: …… 题解列表 2023年11月13日 3 点赞 0 评论 1361 浏览 评分:0.0
计算浮点数相除的余数 摘要:解题思路:按要求做答注意事项:参考代码:#include<stdio.h>#define PI 3.14159void main(){ //计算两个双精度浮点数a和b的相除的余数,a和b都是正数的。 …… 题解列表 2023年11月13日 0 点赞 0 评论 847 浏览 评分:9.3
简单的圆的计算 摘要:解题思路:注意事项:需要熟悉圆的各类计算部分参考代码:#include<stdio.h>#define PI 3.14159void main(){ double r,n,S,d,C; scanf("…… 题解列表 2023年11月13日 0 点赞 0 评论 645 浏览 评分:9.9
2782: 整数大小比较 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d %d", &x, &y); if(x>y) pri…… 题解列表 2023年11月12日 0 点赞 0 评论 308 浏览 评分:0.0
矩阵对角线求和 摘要: x1,x2,x3 = map(int,input().split()) x4,x5,x6 = map(int,input().split()) x7,x8,x9 = map(int,inp…… 题解列表 2023年11月12日 0 点赞 0 评论 621 浏览 评分:6.0
蛇形矩阵,找规律输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int temp=…… 题解列表 2023年11月12日 0 点赞 0 评论 358 浏览 评分:0.0
[编程入门]有规律的数列求和 (C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,d,i,e; double sum,a,b,c; a=2; b=1; …… 题解列表 2023年11月12日 0 点赞 0 评论 274 浏览 评分:0.0