题解列表
java--study||O.o
摘要:参考代码:
import java.util.Scanner;
public class Main
{ static int n, arr[];
public static void……
1156: C语言训练-阿姆斯特朗数
摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int x=2; for(x=2;x<1000;x++) { int a=0,b=0,c=0; a=x/1……
1054: 二级C语言-计算素数和
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int hjh(int i){ int count=2; for(int f=2;f<i;f++) { if(i%f!=0) coun……
编写题解 2074: [STL训练]A+B
摘要:解题思路:将字符串转化为整数就好了。注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>long long as(char a[]……
蓝桥杯算法提高VIP-质因数2(c++)
摘要:解题思路:注意事项:注意本题重复质因数不能只算一次,如输入:81,输出:3 3 3 3 ,质因数个数为4参考代码:#include<iostream>using namespace std;void ……
1170: 能量项链(绝对的好东西)
摘要:解题思路:循环复制2倍,然后先以1为头,取n个数量的为一块,然后以2为头,取n个数量为一块.....不断循环直至一个周期,最后求出最大的。注意事项:参考代码:#include<iostream>usi……