题解列表

筛选

简简单单的解

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,sum=0; scanf("%d",&n); for(i=1;i<=n;i++) { j=……

三个数最大值 ----java

摘要:解题思路:注意事项:参考代码:package zhj;import java.util.Scanner;public class choice {    public static void main……

字符串的处理方法

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string.h>using namespace std;int main() { int n; scanf("……

1670 拆分位数

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int a; scanf("%d",&a); printf("%d %d %d",a%10,(a/10……

【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

对称矩阵题解C

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[105][105],i,j,n,flag=1; while(scanf("%d",&n)!=EOF)……

【C语言】sprintf的基础用法

##关于sprintfC库函数intsprintf(char*str,constchar*format,...)发送格式化输出到str所指向的字符串。参数:str--这是指向一个字符数组的指针,该数组存储了C字符串。format--这是字符串,包含了要被写入到字符串str的文本。