SCUT Training 20170920 Problem K
来源:互联网 发布:12345网络举报平台 编辑:程序博客网 时间:2024/06/05 08:09
原题:http://codeforces.com/gym/101409/problem/A
Problem A
思路:
看懂就秒杀了
源代码:
#include <iostream> //K#include <cstdio>#include <iomanip>using namespace std;double a,b,c,d=0;int test,n=0;double maxx,tmp=0;int main(){ freopen("area.in","r",stdin); freopen("area.out","w",stdout); maxx=0; scanf("%d",&n); for (int i=1;i<=n;i++) { scanf("%lf%lf%lf%lf",&a,&b,&c,&d); tmp=(c-a)*(b-d)/(2*(c-a+b-d)); if (tmp>maxx) maxx=tmp; } cout.unsetf(ios::showpoint); cout<<maxx<<endl; fclose(stdin); fclose(stdout); return 0;}
阅读全文
0 0
- SCUT Training 20170920 Problem K
- SCUT Training 20170913 Problem K
- SCUT Training 20170920 Problem A
- SCUT Training 20170920 Problem B
- SCUT Training 20170920 Problem C
- SCUT Training 20170920 Problem D
- SCUT Training 20170920 Problem E
- SCUT Training 20170920 Problem F
- SCUT Training 20170920 Problem G
- SCUT Training 20170920 Problem H
- SCUT Training 20170920 Problem I
- SCUT Training 20170920 Problem J
- SCUT Training 20170920 Problem L
- SCUT Training 20170920 Problem M
- SCUT Training 20170920 Problem N
- SCUT Training 20170920 Problem O
- SCUT Training 20170920 Problem P
- SCUT Training 20170913 Problem A
- python的浅拷贝和深拷贝
- python多条件排序
- 数据结构实验一
- Windows系统 配置Java开发环境 JDK与JRE
- 麻将开发 网狐客户端地址编辑器
- SCUT Training 20170920 Problem K
- maven 安装本地JAR包
- JVM调优总结(四)-垃圾回收面临的问题
- React Native带你从源码解决启动白屏(Android)
- 9月计划
- MINI2440裸机流水灯
- linux常用命令
- SCUT Training 20170920 Problem L
- Python3常用内置函数