题解列表

筛选

二级java分段函数

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

自定义函数

摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner scan = new Scan……

2815: 求特殊自然数(C语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a=49;    while(a>=49&&a<=728){        if(a/49==a%……

迭代法求平方根

摘要:解题思路:迭代法注意事项:x1和x2的赋值是为了什么要想清楚。参考代码:#include<stdio.h>#include<math.h>int main(){ int a=0; scanf("%d"……

通过判断过了几个完全周来优化循环次数

摘要:解题思路:    1.暴力循环(由于n <= 10^18次O(n/(a+b) )超时);    2.显然我们可以通过先计算通过了多少个完全周 , 令t = 这个结果 (方便后面叙述);    3.n-……

按照题目要求完成

摘要:解题思路:注意事项:参考代码:#include#include"math.h"using namespace std;uint8_t digitNum(uint32_t num) {//数字长度判断 ……