#include using namespace std;
int n,l,r; int mas=0;
int main(){
cin>>n>>l>>r; for(int i=0;i<l;i++){ int x; cin>>x; if(x>mas)mas=x; } for(int i=0;i<r;i++){ int y; cin>>y; if(n-y>mas)mas=n-y; } cout<<mas<<endl; return 0;
}
註冊一個 西华师范大学OnlineJudge 通用賬戶,您就可以在我們提供的所有線上評測服務上提交程式碼、參與討論。
使用您的 西华师范大学OnlineJudge 通用賬戶