题目链接
D-小红的乘2除2_牛客周赛 Round 48 (nowcoder.com)
解析:
用DP来推,好理解,但是容易出错。
#include <bits/stdc.h>
using namespace std;
#define endl \n
#define int long long
// int gcd(int a, int b) { return b ?…
回调函数
回过头来调用的函数
#include <stdio.h> #include <stdlib.h>
int Find_Max(int arr[], int n){ int max_value arr[0]; for (int i 1; i < n; i){ if (max_value < arr[i]) max_value arr[i]; } return…