编写题解 2802: 满足条件的数累加题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int m,n,sum=0;cin>>m>>n;for(int…… 题解列表 2024年05月07日 0 点赞 0 评论 433 浏览 评分:0.0
编写题解 1743: 大整数排序 摘要:解题思路:两个字符串,谁的长度长谁就大,若长度相等,从第一个字符开始比较,注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>…… 题解列表 2024年05月07日 0 点赞 0 评论 305 浏览 评分:0.0
2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,n; cin>>a>>n; int sum; i…… 题解列表 2024年05月07日 0 点赞 0 评论 235 浏览 评分:0.0
基础c语言代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[100] = { 0 }; int a = 0…… 题解列表 2024年05月07日 0 点赞 0 评论 367 浏览 评分: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 评论 390 浏览 评分:0.0
可以利用函数控制输出小数的位数 摘要:解题思路:注意事项:需要包含头文件#include<iomanip>,setprecision需要和fixed一起用才是控制位数,单用只是控制有效位数参考代码: #include<iostream> …… 题解列表 2024年05月07日 0 点赞 0 评论 362 浏览 评分:0.0
砍 柴 摘要:解题思路:注意事项:参考代码:import mathdef get_primes(max_val): v = [True] * (max_val + 1) for x in range(2, …… 题解列表 2024年05月06日 3 点赞 0 评论 1140 浏览 评分:9.9
挖 矿 摘要:解题思路:注意事项:参考代码:N = int(2e6 + 10)n, m = map(int, input().split())a = list(map(int, input().split()))l…… 题解列表 2024年05月06日 0 点赞 0 评论 729 浏览 评分:9.9
回文数组-贪心 摘要:解题思路:注意事项:参考代码:n = int(input())a = list(map(int, input().split()))d = []for i in range(n // 2): d.…… 题解列表 2024年05月06日 1 点赞 0 评论 441 浏览 评分:0.0
封闭图形个数 摘要:解题思路:注意事项:参考代码:class number: def __init__(self, v, c): self.v = v self.c = c def __l…… 题解列表 2024年05月06日 0 点赞 0 评论 517 浏览 评分:0.0