题解列表

筛选

2853: 字符替换

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

用do,while,不循环每个数字

摘要:解题思路:已知42为最小符合的数,42*1,42*2,42*3同样符合。因此不用1-1000每个数都循环,就可得到符合条件的数注意事项:主要方法是计算符合条件的数,不是遍历循环参考代码:#includ……

三个嵌套for循环+pow函数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>    //pow函数的头文件int main(){ int a,b,c,cn,sn; cn=sn=0;……

过滤多余的空格(Java)

摘要:解题思路:注意事项:参考代码:public static void main(String args[]) { Scanner sc=new Scanner(System.in); Str……

大整数乘法C++

摘要://大整数乘法#include <bits/stdc++.h>using namespace std;int na[2005], nb[2005], nc[4010];string mul(strin……

字符串判等(简介)

摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2860: 字符串判等 import java.util.Scanner; public class t_2860 {……