题解列表
定义函数求最小公倍数以及最大公约数
摘要:解题思路:注意事项:参考代码:#include<stdio.h> int max(int a,int b) { int r=0; while(a%b!=0) { r=a%b; ……
编写题解 2927: 二分法求函数的零点
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>double fun(double x){ return pow(x,5)-15*po……
循环嵌套练习:输出九九乘法表
摘要:解题思路:本题运用了多重嵌套,用for循环来完成,外层循环完成一次时,内层循环完成一轮注意事项:①题目要求,注意宽度为2,并且左对齐,用-2表示,且每个表达式之间有一个空格,在printf中再敲一个空……
[编程入门]三个数最大值
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int a[3],i,max; for(i=0;i<3;i+……
矩阵加法(C语言代码)
摘要:```c
#include
void input(int(*arr)[100], int n,int m)
{
for (int i = 0; i < n; i++)
{
……
A+B for Input-Output Practice (I)
摘要:解题思路:EOF表示为文件结束符注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while (scanf("%d %d",&a,&b)!=E……
自己写的c++最暴力版
摘要:参考代码:#include<iostream>#include<string>using namespace std;int n;int main(){ cin>>n; int a=65; strin……
密码破译(chr()和ord()函数的应用)
摘要:解题思路:先将输入的i转化为ascll值后加4,再转化为字母注意事项:chr()函数:将ascll码转化为字符 ord()函数:将字符转化为ascll码简单代码:inp=in……