最近遇到了FTP的问题,牵扯到了ALG,在这里写一下,为了以后的学习参考. 先来认识一下ALG的概念, It allows customized NAT traversal filters to be plugged into the gateway to support address andport translation for certain application layer "control/data" …
#include <bits/stdc.h>
using namespace std;
int n,l,ans0,sna0,a;
int main(){cin >> l >> n;for(int i1;i<n;i){cin >> a;ansmax(min(l1-a,a),ans);snamax(max(l1-a,a),sna);}cout << ans << " "<< sna;
}