题解列表

筛选

蓝桥杯历届试题-回文数字-纯暴力(Java)

摘要:# 解题思路: 对每一个数的每个位的总值是否与输入的值相同 并且对两个sb对象进行判断,完全相同就是回文数字 ## 注意事项: i的值不能直接参加运算,否则会影响后续的循环 ……

编写题解 3040: An Easy Problem

摘要:解题思路:就那样注意事项:参考代码:#include <stdio.h>#include <stdbool.h>int js(int i) {    int t = 0;    while (i > ……

java--study||O.o

摘要:参考代码:import java.util.Scanner; public class Main {   private String year, month, day;     publi……

c++简单实现完数判断

摘要:解题思路:主要使用枚举法先判断完数,用循环实现,判断后在逐步输出。注意事项:参考代码:#include<iostream>using namespace std;int main(){    int ……

1480: 模拟计算器

摘要:解题思路:注意事项:case后是‘符号’参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a,b;    char……

java--study||O.o

摘要:参考代码:import java.util.Scanner; public class Main {   public static void main(String[] args)    ……

素数回文数的个数两种方法

摘要:暴力写法,范围只有1000我们只需要前后就好了 ``` #include #include #include #include using namespace std; typed……