水题

#include<cstdio>
#include<cstring>
#include<cmath>
#include<stack>
#include<vector>
#include<string>
#include<iostream>
#include<algorithm>
using namespace std; int sx,sy;
int ex,ey; int main()
{
scanf("%d%d",&sx,&sy);
scanf("%d%d",&ex,&ey);
int ans;
int lenx=abs(ex-sx);
int leny=abs(ey-sy);
ans=min(lenx,leny)+lenx-min(lenx,leny)+leny-min(lenx,leny);
printf("%d\n",ans);
return ;
}

最新文章

  1. 基于Picture Library创建的图片文档库中的上传多个文件功能(upload multiple files)报错怎么解决?
  2. [转]搬瓦工换机房换ip之后不能连外网
  3. 开源分布式实时计算引擎 Iveely Computing 之 安装部署(2)
  4. TCP/IP详解 学习三
  5. ASP.NET会话(Session)保存模式--终于知道session为什么丢失了
  6. 【转】Nginx系列(四)--工作原理
  7. Spring Auto scanning components
  8. 【BZOJ1823】 [JSOI2010]满汉全席
  9. [Angular 2] Building a Toggle Button Component
  10. Ext.Net学习笔记04:Ext.Net布局
  11. day5、文件乱码怎么解决
  12. Codeforces Round #409 (rated, Div. 2, based on VK Cup 2017 Round 2)(A.思维题,B.思维题)
  13. 爬虫-request以及beautisoup模块笔记
  14. 写给 Android 应用工程师的 Binder 原理剖析
  15. Spark Standalone spark-env.sh
  16. iframe和form表单实现ajax请求上传数据
  17. Instruments Time Profiler时,无法定位代码,如何破?
  18. 窗体应用程序防腾讯QQ源码
  19. UVA-839-二叉树-一个有意思的题目
  20. 非常简单的部署脚本(JavaWeb项目)和部署项目教程

热门文章

  1. error: invalid &#39;asm&#39;: invalid operand for code &#39;w&#39;
  2. 外部连VPN的方法
  3. Toy Storage POJ 2398
  4. druid 文档 和 源码地址
  5. 运行第一个SparkKPI程序
  6. 给input元素添加float. 去除IE6 下input的空隙
  7. 初探JavaScript魅力(五)
  8. 当使用System,out.println()打印一个对象是自动调用toString方法
  9. maven学习笔记 1
  10. Windows API 之 InternetOpen、InternetOpenUrl、InternetReadFile