2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,n; cin>>a>>n; int sum; i…… 题解列表 2024年05月07日 0 点赞 0 评论 287 浏览 评分:0.0
基础c语言代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[100] = { 0 }; int a = 0…… 题解列表 2024年05月07日 0 点赞 0 评论 430 浏览 评分:0.0
题解 2936: 简单算术表达式求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int yun(int x,int y,char z){ int d; if(z=='+') d=x+y; …… 题解列表 2024年05月07日 0 点赞 0 评论 470 浏览 评分:0.0
可以利用函数控制输出小数的位数 摘要:解题思路:注意事项:需要包含头文件#include<iomanip>,setprecision需要和fixed一起用才是控制位数,单用只是控制有效位数参考代码: #include<iostream> …… 题解列表 2024年05月07日 0 点赞 0 评论 426 浏览 评分:0.0
砍 柴 摘要:解题思路:注意事项:参考代码:import mathdef get_primes(max_val): v = [True] * (max_val + 1) for x in range(2, …… 题解列表 2024年05月06日 3 点赞 0 评论 1232 浏览 评分:9.9
挖 矿 摘要:解题思路:注意事项:参考代码:N = int(2e6 + 10)n, m = map(int, input().split())a = list(map(int, input().split()))l…… 题解列表 2024年05月06日 0 点赞 0 评论 816 浏览 评分:9.9
回文数组-贪心 摘要:解题思路:注意事项:参考代码:n = int(input())a = list(map(int, input().split()))d = []for i in range(n // 2): d.…… 题解列表 2024年05月06日 1 点赞 0 评论 511 浏览 评分:0.0
封闭图形个数 摘要:解题思路:注意事项:参考代码:class number: def __init__(self, v, c): self.v = v self.c = c def __l…… 题解列表 2024年05月06日 0 点赞 0 评论 582 浏览 评分:0.0
数字诗意-找规律 摘要:解题思路:注意事项:参考代码:import mathn=int(input())nums = list(map(int,input().split()))ans = 0for i in nums: …… 题解列表 2024年05月06日 3 点赞 0 评论 1415 浏览 评分:10.0
3065: 最长公共子上升序列 摘要:解题思路:后续补充注意事项:测试结果顺序可能不一致,交换a, b序列嵌套循环参考代码:#include#include#include #includeusing namespace std; …… 题解列表 2024年05月06日 0 点赞 0 评论 356 浏览 评分:9.9