摘要:
#include #include using namespace std; vector yueShu(long a) { vector vec; vec.push_back(1); for (int i = 2; i v) { long s = 0; for (int vi : v) { s += vi; } ... 阅读全文
摘要:
#include using namespace std; struct Time { int start; int end; }; Time times[101]; int dp[101]; void sortTimes(Time times[], int n) { // 直接插入排序 for (int i = 1; i = 1 && times[j].... 阅读全文
摘要:
#include using namespace std; struct Point { int x, y; }; Point a[101]; int main() { int n; while (cin >> n && n != 0) { for (int i = 1; i > a[i].x >> a[i].y; } ... 阅读全文
摘要:
#include using namespace std; int main() { long a, b; while (cin >> a >> b && a != 0 && b != 0) { long result = a; for (long i = 2; i <= b; i++) { ... 阅读全文