You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
typedef long long LL;
|
|
|
|
int main() {
|
|
//数学知识储备
|
|
//【大于L,并且是p的倍数,最小整数是多少?】
|
|
int p = 3;
|
|
for (LL L = 100; L <= 200; L++)
|
|
cout << max(2ll, (L - 1) / p + 1) * p << endl;
|
|
return 0;
|
|
} |