D. Dice Game - Find the Minimum Moves to Reach a Target Sum
#include
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; }
原文地址: https://www.cveoy.top/t/topic/g55 著作权归作者所有。请勿转载和采集!