题解列表
1163: 排队买票()
摘要:解题思路:注意事项:参考代码:#include<iostream>
using namespace std;
const int N = 11;
long long a[N];
//计算卡特兰……
二级C语言-计算素数和
摘要:解题思路:将m到n的值循环判断,是素数就累加,不是素数舍弃,最后输出即可注意事项:判断不是素数后,要返回一个0参考代码:#include<stdio.h>int isprime(int a){ ……
1164: 数组的距离- 极简
摘要:解题思路:双指针算法注意事项:参考代码:#include<iostream>
#include<cmath>
using namespace std;
const int N = 1e3 + 1……
明明的随机数- 排序+ 双指针
摘要:解题思路:排序 + 双指针注意事项:参考代码:#include<iostream>
#include<algorithm>
using namespace std;
const int N = ……
1169: 绝对值排序
摘要:解题思路:归并排序注意事项:参考代码:#include<iostream>
#include<cstring>
#include<cmath>
using namespace std;
con……
python整数平均值
摘要:解题思路:注意事项:参考代码:while True: try: a = int(input()) b = list(map(int,input().strip().s……
java-计算三角形面积
摘要:```java
import java.util.Scanner;
public class Main{
public static void main(String[] args){……