题解列表

筛选

刷题统计Pthon

摘要:解题思路:注意事项:参考代码:a,b,n=map(int,input().split())week=5*a+2*bdays=(n//week)*7n%=weekif n<=a*5:    day=0 ……

K-进制数题解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int zuhe(int n,int m){ int z=1; for(int i=……

有详解 简单易懂

摘要:```cpp //目标:计算每个科目的平均分以及输出总分最高的学生的信息 #include #include using namespace std; struct student{ s……

最简单的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i; int s=1; for(i=1;i<=n;i++)……

计算球的体积(Python)

摘要:解题思路:注意事项:参考代码:import math pi = math.pi while True:         try:         r = float(input()) ……

最大上升子序列和-DP

摘要:#### DP问题 ####注意事项 - 与最长上升子序列问题思路相同,仅仅改变维护的信息。 ###### 代码 ``` #include #include using ……

题解 2811: 救援

摘要:解题思路:注意事项:参考代码:import math   # 调用数学模块 t = 0 n = int(input())    #屋顶数 for i in range(n):     a = ……