Codeforces Round #623 (Div. 2, based on VK Cup 2019-2020 - Elimination Round, Engine) A Dead Pixel
讨论坏点的左右上下的矩形大小。
#include <bits/stdc++.h>
using namespace std;
int main()
{int t;cin >> t;while (t--){long long a, b, x, y;cin >> a >> b >> x >> y;// cout<<a<<" "<<b<<" "<<x<<" "<<y<<endl;long long ans = 0;ans = max(ans, x * b);ans = max(ans, a * y);ans = max(ans, a * ( b-y-1));// cout<<x * ( b-y)<<endl;ans = max(ans, (a-x-1) *b);cout<<ans<<endl;}
}
Codeforces Round #623 (Div. 2, based on VK Cup 2019-2020 - Elimination Round, Engine) A Dead Pixel相关推荐
- Codeforces Round #623 (Div. 2, based on VK Cup 2019-2020 - Elimination Round, Engine) C. Restoring
C. Restoring Permutation time limit per test1 second memory limit per test256 megabytes inputstandar ...
- Codeforces Round #740 (Div. 2, based on VK Cup 2021 - Final (Engine))
Codeforces Round #740 (Div. 2, based on VK Cup 2021 - Final (Engine)) 题号 题目 知识点 A Simply Strange Sor ...
- Codeforces Round #740 (Div. 2, based on VK Cup 2021 - Final (Engine)) A-F全题解
Codeforces Round #740 (Div. 2, based on VK Cup 2021 - Final (Engine)) 文章目录 A. Simply Strange Sort B. ...
- Codeforces Round #681 (Div. 2, based on VK Cup 2019-2020 - Final)
今天看不下去数电vp一场div2,搞A搞了很长时间,导致后面没有时间写,不过今天补题的时候全是独立补出来的没有看题解 vp3题,补3题 A - Kids Seating 最开始想的是与质数有关,乱七八 ...
- Codeforces Round #504 (rated, Div. 1 + Div. 2, based on VK Cup 2018 Final)切题报告(A-B题)
这是我第二次参加CF比赛,也是第一次写博客,写得不好,望各位大佬海涵. A. Single Wildcard Pattern Matching 原题链接 这道题,这是难到让人无法直视,太水了. 题目大 ...
- Codeforces Round #505 (rated, Div. 1 + Div. 2, based on VK Cup 2018 Final)
A. Doggo Recoloring ps:注意 n == 1 B. Weakened Common Divisor 题解:WCD出现中的数必然是 < a, b >中某个数的公约数.而 ...
- Codeforces Round #477 (rated, Div. 2, based on VK Cup 2018 Round 3)
点击打开A题链接 #include<bits/stdc++.h> using namespace std; const int MAX = 105; int n,s;int h[MAX], ...
- Codeforces Round #470 (rated, Div. 2, based on VK Cup 2018 Round 1)B. Primal Sport
Alice and Bob begin their day with a quick game. They first choose a starting number X0 ≥ 3 and try ...
- Codeforces Round #409 (rated, Div. 2, based on VK Cup 2017 Round 2)C. Voltage Keepsake
题目链接:C. Voltage Keepsake 题解:二分时间,然后判断看需要充电的时间总和是否在允许的范围内 #include<bits/stdc++.h> #define pb pu ...
最新文章
- linux 切换python版本_Linux下python默认版本切换成替代版本(示例代码)
- @value报错_Excel这都是些啥?#VALUE!、#DIVO!、#NUM!、#REF!、#NULL!、#NA!
- Objective-C语法之Object对象的那些事儿(五)
- 耳鼻喉专科服务机构“仁树医疗”完成数千万元A轮融资...
- 安装php时,make步骤报错make: *** [ext/gd/gd.lo] Error 1
- Java黑皮书课后题第4章:*4.8(给出ASCII码对应的字符)编写程序,得到一个ASCII码的输入(0~27之间的一个整数),然后显示该字符
- Linux中安装tomcat
- android工具栏隐藏和显示不出来了,Android工具栏操作按钮未显示
- struts2学习一:搭建第一个struts2.5项目
- 电子设计竞赛方案搜集
- SQL Server中使用索引性能的比较
- python移动平均算法_移动平均算法
- 2022年全新PHP程序开发在线工单管理系统源码,售后工单系统
- 强制卸载 奇安信天擎
- DM13: COSCon19私人回顾
- 2017 蓝桥杯决赛 C++B(2)瓷砖样式 dfs + hash去重
- w7系统路由器虚拟服务器怎么设置方法,win7路由器怎么重新设置
- 【渝粤题库】广东开放大学 文化投资与贸易 形成性考核 (2)
- Matlab绘制隐函数总结-二维和三维
- 西北乱跑娃 -- html header优化信息
热门文章
- 100行代码实现了多线程,批量写入,文件分块的日志方法
- Less语法基于node\grunt/gulp编译
- WINDOWS 2008 AD权限管理服务(ADRMS)完全攻略
- html area图片热点
- java提高篇之理解java的三大特性——多态
- firefox-Developer开发者站点——关于Object.create()新方法的介绍
- nginx location配置详解
- android各种color值
- Ubuntu 12.04安装英汉词典
- 京东价格情报员 比价是假 砸场子是真