题解列表

筛选

感觉不错的方法

摘要:解题思路:用布尔函数判断是否为素数注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a = 0;    cin >>……

编写题解 1160: 出圈(队列)

摘要:解题思路:把m-1个数加到后面之后,删除第一个数即可注意事项:参考代码:while True:    try:        n,m = map(int,input().split())       ……

C语言简单for循环求阶乘

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    long long a,b=1,sum=0;    int i; scanf("%lld",&a); f……

c语言利用数组

摘要:解题思路:#includeint main(){    int month_consume[12]; //每月的消费    int month_save=0;   //单月的剩余    float a……

[编程入门]有规律的数列求和

摘要:解题思路:分子分母参考斐波那契数列规律注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS 1#include <stdio.h>float Fibonacci_1(fl……

1060:同因查找(python)

摘要:解题思路:注意事项:参考代码:for i in range(10,1001):    if(i%2==0 and i%3==0 and i%7==0):        print(i)    ……

点和正方形的关系--java语言

摘要:解题思路:①导入②判断关系③输入④输出注意事项:①导入②关系判断参考代码:import java.util.Scanner; public class Main { public stati……

周末舞会(python)

摘要:解题思路:注意事项:参考代码:def dance_partner(men_count, women_count, dance_count):    men_queue = list(range(1, ……