安全问答

安全问答是一个知识全球问答,包含丰富的问答知识

首页 常规 游戏 娱乐 科技 程序员

D. Dice Game - Find the Minimum Moves to Reach a Target Sum

  • 日期: 2027-06-19
  • 标签: 常规

#include using namespace std;

int main() { int T; cin>>T; while(T--) { int n; cin>>n; if(n<=7) { cout<<1<<endl; } else { cout<<n/7 + 1<<endl; } } return 0; }

D. Dice Game - Find the Minimum Moves to Reach a Target Sum

原文地址: https://www.cveoy.top/t/topic/g55 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录

  • 上一篇: 写一个租车位的协议200字左右
  • 下一篇: can什么意思

© 2019 • 2025 - 安全问答 站长邮箱:wxgpt@qq.com    ICP备案/许可证号:鲁ICP备2026057792号