题解列表

筛选

不废话直接秒

摘要:解题思路:floor函数向下取整注意事项:参考代码:import mathn,x,y=map(int,input().split())print(math.floor(n-1/x*y))……

瞎七八解释的挺清楚的了

摘要:解题思路:1. 我们需要每次消耗多少能量才能达到体力最大值?每次消耗 m/n 个能量就会让体力达到最大值,体力最大值恒定不变为5 ;但是由于我们每次消耗能量至少一个,所以实际上我们要让体力达到最大值需……

三行秒杀大象喝水

摘要:解题思路:map函数接收输入注意事项:至少喝几桶水用向上取整参考代码:import mathh,r=map(int,input().split())print(math.ceil(20000/(h*m……

二级C语言-成绩归类

摘要:参考代码:#include <stdio.h>int main(){ int n; int a,b,c; a=b=c=0; scanf("%d",&n); while (n!=0) { if (n>8……

3081: 围成面积 dfs

摘要:解题思路:          从四条边开始搜索就OK了注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个11x11的二维数……