2790. Double Happiness time limit per test 3 seconds memory limit per test 128 megabytes input standard input output standard output On the math lesson a teacher asked each pupil to come up with his own lucky numbers. As a fan of number theory Pete…
A - Jzzhu and Children 找到最大的ceil(ai/m)即可 #include <iostream> #include <cmath> using namespace std; int main(){ int n,m; cin >> n >> m; ; ; ; i < n; ++ i){ cin >> a; if(maxv <= ceil(a/m)){ maxv = ceil(a/m); maxIdx = i+;…