题解 2936: 简单算术表达式求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int yun(int x,int y,char z){ int d; if(z=='+') d=x+y; …… 题解列表 2024年05月07日 0 点赞 0 评论 360 浏览 评分:0.0
可以利用函数控制输出小数的位数 摘要:解题思路:注意事项:需要包含头文件#include<iomanip>,setprecision需要和fixed一起用才是控制位数,单用只是控制有效位数参考代码: #include<iostream> …… 题解列表 2024年05月07日 0 点赞 0 评论 340 浏览 评分:0.0
砍 柴 摘要:解题思路:注意事项:参考代码:import mathdef get_primes(max_val): v = [True] * (max_val + 1) for x in range(2, …… 题解列表 2024年05月06日 3 点赞 0 评论 1118 浏览 评分:9.9
挖 矿 摘要:解题思路:注意事项:参考代码:N = int(2e6 + 10)n, m = map(int, input().split())a = list(map(int, input().split()))l…… 题解列表 2024年05月06日 0 点赞 0 评论 709 浏览 评分:9.9
回文数组-贪心 摘要:解题思路:注意事项:参考代码:n = int(input())a = list(map(int, input().split()))d = []for i in range(n // 2): d.…… 题解列表 2024年05月06日 1 点赞 0 评论 420 浏览 评分:0.0
封闭图形个数 摘要:解题思路:注意事项:参考代码:class number: def __init__(self, v, c): self.v = v self.c = c def __l…… 题解列表 2024年05月06日 0 点赞 0 评论 504 浏览 评分:0.0
数字诗意-找规律 摘要:解题思路:注意事项:参考代码:import mathn=int(input())nums = list(map(int,input().split()))ans = 0for i in nums: …… 题解列表 2024年05月06日 2 点赞 0 评论 1276 浏览 评分:10.0
3065: 最长公共子上升序列 摘要:解题思路:后续补充注意事项:测试结果顺序可能不一致,交换a, b序列嵌套循环参考代码:#include#include#include #includeusing namespace std; …… 题解列表 2024年05月06日 0 点赞 0 评论 281 浏览 评分:9.9
陈乐昕编的题解 摘要:解题思路:一个判断搞定!注意事项: 是同时整除3 和 5哦!参考代码:#include<iostream>using namespace std;int main(){ int n; ci…… 题解列表 2024年05月06日 0 点赞 0 评论 274 浏览 评分:0.0
二级C语言-成绩归类 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int arr[10000],i,a=0,b=0,c=0; for(i=0;i<10000;i…… 题解列表 2024年05月06日 0 点赞 0 评论 253 浏览 评分:0.0