题解列表

筛选

编写题解 3009: 判断闰年

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

编写题解 2792: 三角形判断

摘要:解题思路:两边之和大于第三边注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a,b,c;    cin……

如有漏洞请指出谢谢

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……

C语言-自定义函数

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<math.h>#include<stdio.h>double jca(int……

位数分解(不止于三位)

摘要:解题思路:不同于寻常方法的求解注意事项:该方法运用了函数递归参考代码:void print(int n){ if (n > 9) print(n / 10); printf("%d\n", n % ……

输出二进制(负数时数据有错的看这个)

摘要:解题思路:抛弃传统的短除法求二进制的策略,引入math库函数,运用减法求二进制,避免事后的倒序处理;同时,因为负数是采取补码运算的方式,所以为了简便过程,我们将符号位处理之后便可将数据化为对应的正数进……

汽水瓶题解

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>/* run this program using the console pauser o……