题解
2026-08-20 19:36:45
发布于:江苏
1阅读
0回复
0点赞
一个小的动态规划。
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
ll n;
cin >> n;
while(n --)
{
ll h;
cin >> h;
if(h <= 10) cout << 1 << endl;
else cout << (h - 1) / 5 << endl; //公式
}
return 0;
}
这里空空如也






有帮助,赞一个