简简单单的解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,sum=0; scanf("%d",&n); for(i=1;i<=n;i++) { j=…… 题解列表 2021年10月26日 0 点赞 0 评论 633 浏览 评分:0.0
入门训练 分段函数 摘要:```c #include int main() { double x,y; scanf("%lf",&x); if(x=1)&&(x…… 题解列表 2021年10月26日 0 点赞 0 评论 646 浏览 评分:8.0
三个数最大值 ----java 摘要:解题思路:注意事项:参考代码:package zhj;import java.util.Scanner;public class choice { public static void main…… 题解列表 2021年10月26日 0 点赞 0 评论 555 浏览 评分:0.0
入门训练 温度转换 摘要:```c #include int main() { double F,c; scanf("%lf",&F); c=(F-32)*5/9; printf(…… 题解列表 2021年10月26日 0 点赞 0 评论 827 浏览 评分:9.0
字符串的处理方法 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string.h>using namespace std;int main() { int n; scanf("…… 题解列表 2021年10月26日 0 点赞 0 评论 629 浏览 评分:0.0
【C语言】编写题解 1402: 简单的字符串 摘要:参考大神题解,理解后写了注释。参考代码:#include <stdio.h> #include <string.h> int main() { int i, j, k, n, len, cou…… 题解列表 2021年10月26日 0 点赞 0 评论 756 浏览 评分:9.9
1670 拆分位数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int a; scanf("%d",&a); printf("%d %d %d",a%10,(a/10…… 题解列表 2021年10月26日 0 点赞 0 评论 1294 浏览 评分:9.9
【C语言】自守数 ##题目分析方法1:1.将s和i转换为字符串str1和str2(运用sprintf函数)2.将两个字符串倒序3.比较字符串前len(str1长度-1)是否相同方法2:1.i一直除以10到0为止得到i的位数f2.i的平方余去10的f次方得到i平方的后f位3.判断是否相等##代码实现方法1:#includ 题解列表 2021年10月26日 0 点赞 0 评论 870 浏览 评分:0.0
对称矩阵题解C 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[105][105],i,j,n,flag=1; while(scanf("%d",&n)!=EOF)…… 题解列表 2021年10月26日 0 点赞 0 评论 824 浏览 评分:9.3
【C语言】sprintf的基础用法 ##关于sprintfC库函数intsprintf(char*str,constchar*format,...)发送格式化输出到str所指向的字符串。参数:str--这是指向一个字符数组的指针,该数组存储了C字符串。format--这是字符串,包含了要被写入到字符串str的文本。 题解列表 2021年10月26日 0 点赞 0 评论 780 浏览 评分:0.0