题解列表

筛选

基础c语言代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char arr[100] = { 0 };    int a = 0……

可以利用函数控制输出小数的位数

摘要:解题思路:注意事项:需要包含头文件#include<iomanip>,setprecision需要和fixed一起用才是控制位数,单用只是控制有效位数参考代码: #include<iostream> ……

砍 柴

摘要:解题思路:注意事项:参考代码:import mathdef get_primes(max_val):   v = [True] * (max_val + 1)   for x in range(2, ……

挖 矿

摘要:解题思路:注意事项:参考代码:N = int(2e6 + 10)n, m = map(int, input().split())a = list(map(int, input().split()))l……

回文数组-贪心

摘要:解题思路:注意事项:参考代码:n = int(input())a = list(map(int, input().split()))d = []for i in range(n // 2):   d.……

封闭图形个数

摘要:解题思路:注意事项:参考代码:class number:   def __init__(self, v, c):       self.v = v       self.c = c   def __l……

数字诗意-找规律

摘要:解题思路:注意事项:参考代码:import mathn=int(input())nums = list(map(int,input().split()))ans = 0for i in nums:  ……

3065: 最长公共子上升序列

摘要:解题思路:后续补充注意事项:测试结果顺序可能不一致,交换a, b序列嵌套循环参考代码:#include#include#include  #includeusing namespace std; ……

陈乐昕编的题解

摘要:解题思路:一个判断搞定!注意事项: 是同时整除3 和 5哦!参考代码:#include<iostream>using namespace std;int main(){    int n;    ci……