题解列表

筛选

两种解法列出最简真分数序列

摘要:解题思路:方法一:1 看规律1 3 7 9 11 13 17 19...37 39            2 写出规律 %2!=0&&%5!=0            3 代码结构方法二:1 当成递增……

关于数字的处理与判断

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){   string n;    cin >> n;    in……

暴 力 输 入

摘要:解题思路:注意事项:参考代码:# include <stdio.h>int main(){    printf("1*1=1\n1*2=2  2*2=4\n1*3=3  2*3=6  3*3=9\n……

排队买票(c语言)

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> /* run this program using the console paus……

P1002(C++)结构体,自定义排序

摘要:解题思路:定义结构体+结合sort排序+自定义类型排序注意事项:两个获得奖金一致时,按输入顺序输出先输入的参考代码:#include <iostream>#include <algorithm>usi……

P1001C++排序+素数

摘要:解题思路:就一个排序(直接使用sort即可)和判定素数注意事项:参考代码:#include <iostream>#include <string>#include <algorithm>using n……

一元二次方程

摘要:解题思路:1 考虑类型                2 思考步骤——1)deta的三种条件的判断 2) 一元二次求根公式 3)共轭复数z1=a+b,z2=c+d             &

1047: [编程入门]报数问题

摘要:解题思路:注意事项:参考代码:#includevoid chag(int *n,int num[]){     int lis[--*n],i;     for(i=0;i<*n-2;i++){ ……