题解列表
[编程入门]阶乘求和 C语言,极速算
摘要:解题思路:注意事项: 使用int范围会不够,使用long及以上就可以了。参考代码:#includeint main()
{
long long n,a[30],i;
scanf("%……
三种解法——1020猴子吃桃的问题
摘要:解题思路:找到关系求出通项;递归思路; 常规思路注意事项:参考代码:eg:1#include<stdio.h>int hz_taozi(int n) { if(n==1) ……
用for循环遍历数据panduan
摘要:解题思路:注意事项:这个代码能在vs上运行但答案错误不知道为啥参考代码:#include<iostream>using namespace std;int main(){ int a, b, c……
C语言考试练习题_排列
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,n,e; int a[4]; scanf("%d %d %d %d",&a[0],&a[1]……
1456: 蓝桥杯历届试题-连号区间数
摘要:超时做法
for(int i=0;ip[i];
int res=0;
for(int i=0;i……
1095: The 3n + 1 problem java代码, 以及hasNext与hasNextLine的大致区别
摘要:```java
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
……
bool型构建天空,点缀星星,暴力查询
摘要:解题思路: 用bool型 来表示星空,1为存在星星;注意事项:参考代码:#include<iostream>
using namespace std;
int……