题解列表

筛选

Sine之舞:简单的字符连接及找规律题

摘要:解题思路: 本题中可以使用递归或者循环的方法进行字符串连接输出对应结果,主要的解题步骤还是要找规律,字符拼接的时候只要别粗心少个符号啥的就行,这一题中首先看An,它本质上就是“sin(i”加上对应加减……

字符串判等(简介)

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

一种减小复杂度的质因数分解法

摘要:解题思路:本题中主要思路就是遍历题目给出区间,分解其中每一个元素的质因式主要的部分为:1.判断质数的函数 2.生成升序质数序列(一般只需要从小到大判断元素并且加入列表就行了,不需要再专门排序)3.从题……

模拟计算器

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    int a,b;    char c;    cin>>a>>……

编写题解 2790: 分段函数

摘要:解题思路:注意事项:参考代码#include <iostream>using namespace std;int main(){    float x,y;    cin>>x;    if(x>=0……

编写题解 2792: 三角形判断

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    int a,b,c;    cin >>a>>b>>c;   ……

编写题解 2791: 计算邮资

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int c = 0;    int a;    cin>>a; ……

java--study||O.o

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

[编程入门]密码破译

摘要:#include<bits/stdc++.h> using namespace std; #define IOS ios::sync_with_stdio(false) int main() ……