HDU 5982 Relic Discovery

【解题报告】2015ACM/ICPC亚洲区上海站 简略的解题报告。 阅读详情

http://acm.hdu.edu.cn/showproblem.php?pid=5982




这道题说实话没有读,但是看样例3 4 2 1 输出14 猜可能是3*4+1*2
结果还真是,很好奇在比赛的时候清华大学是怎么做到在1分钟内读完题并提交的,太强了。



#include<bits/stdc++.h>
using namespace std;
int main(){
	int t;
	cin>>t;
	while(t--)
	{
		int n;
		cin>>n;
		long long int sum=0;
		int i;
		int a,b;
		for(i=1;i<=n;i++)
		{
			cin>>a>>b;
		  sum+=a*b;
		}
		cout<<sum<<endl;
	}
	return 0;
}





ECN实战指南:如何用SAP系统搞定工程变更(附库存处理避坑技巧) 本文详细解析了如何在SAP系统中高效执行工程变更通知(ECN),特别聚焦PP模块的操作流程与库存处理技巧。通过实战案例和系统操作指南,帮助制造业企业避免库存混乱和生产中断,实现从创建到生效的全流程管理。 阅读详情

相关推荐

Zemax新手别慌!一文搞懂几何像差:从球差、慧差到色差的实战识别与优化

本文为Zemax新手提供几何像差实战指南,详细解析球差、彗差和色差的识别与优化方法。通过软件操作关键节点和实际项目决策逻辑,帮助光学设计师快速掌握像差诊断与优化技巧,提升光学设计效率。

weixin_42524708的博客 265

杭电5982之Relic Discovery

Relic Discovery Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 485 Accepted Submission(s): 375 Problem Description Recently, paleoanthrop

ESESZB的博客 447

别再瞎猜了!Fluent瞬态计算时间步长到底设多少?一个公式+实战案例搞定

本文详细解析了Fluent瞬态计算中时间步长的设置方法,通过黄金公式和实战案例,帮助工程师准确确定时间步长,避免计算发散和资源浪费。文章还介绍了动态调整策略和典型工程场景的参数优化,提升仿真效率和精度。

weixin_42638178的博客 434

HDU 5982 Relic Discovery (2016年青岛区域赛A题——水题)

Recently, paleoanthropologists have found historical remains on an island in the Atlantic Ocean. The most inspiring thing is that they excavated in a magnificent cave and found that it was a huge tomb...

vocaloid01的博客 513

AD2428与SigmaStudio:从节点自动配置与EEPROM存储实战

本文详细介绍了AD2428 A2B收发器与SigmaStudio开发环境的集成应用,重点讲解从节点自动配置与EEPROM存储的实战流程。通过硬件连接、属性配置、数据导出及嵌入式系统集成等步骤,实现设备上电自启动,提升汽车音频系统的可靠性与部署效率。

g8f9d0s1a2的博客 663

浅析图像处理中的名词:Gamma 校正(Gamma变换、Gamma调整)

浅析图像处理中的名词:Gamma 校正(Gamma变换、Gamma调整)

qq_51908382的博客 1万+

hdu 5982(16青岛现场赛)Relic Discovery水题

Relic Discovery Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1027    Accepted Submission(s): 830 Problem Description Recently, p

The_star_is_at的博客 461

Win11家庭版如何让Win+R运行CMD默认管理员权限?3种方法实测有效

本文针对Win11家庭版用户,实测了三种让Win+R运行CMD默认获取管理员权限的有效方法。通过分析UAC机制与家庭版功能限制,详细介绍了注册表编辑、快捷方式创建与任务计划程序三种方案的原理、步骤与风险对比,帮助用户根据安全与效率需求选择最佳方案,实现一键高效管理。

sat99的博客 1300

hdu5982——Relic Discovery(水)

Problem Description Recently, paleoanthropologists have found historical remains on an island in the Atlantic Ocean. The most inspiring thing is that they excavated in a magnificent cave and found tha

Beyond the Sora 963

Chapter 19 Digital Phase-Locked Loops

数字锁相环 Digital Phase-Locked Loops, 就是根据原来时钟信号, 产生新的时钟信号, which is locked or synchronized. (align 参考时钟边沿 or 在中间)

2304_76736886的博客 974

Relic Discovery

Problem Description Recently, paleoanthropologists have found historical remains on an island in the Atlantic Ocean. The most inspiring thing is that they excavated in a magnificent cave and found

落辰哀的博客 433

【异常】Nacos 2.x 核心报错:Server check fail (gRPC 端口连不通) 深度排查

如果 Nacos 运行在 K8s 中,需确保对应的Servicemetadata:spec:ports:port: 8848port: 9848 # 必须暴露此端口selector:app: nacos在 Nacos 2.x 时代,“端口成套出现”是基础设施配置的基本要求。遇到连接失败时,首要检查的不是业务配置,而是网络链路上主端口 + 1000的 TCP 通讯是否被放行。更多关于 AI + 教育领域的干货,可以关注我的微信公众号一时间获取哦~

奶爸的编程之路,也就一周冷个三天 340

HDU - 5982 Relic Discovery

Description Recently, paleoanthropologists have found historical remains on an island in the Atlantic Ocean. The most inspiring thing is that they excavated in a magnificent cave and found that it w...

一定要站在自己热爱的生活里闪闪发光 3万+

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

hdu 5982 Relic Discovery

点击打开题目链接 超级水题,求和。。。 因为要检查博客数量。。。顺便水一篇吧。。。。 #include #define LL long long using namespace std; int main(){ int T,n; cin>>T; while(T--){ cin>>n; LL ans=0,a,b;

zoro_n的博客 754

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

HDU5982 Relic Discovery

Relic Discovery Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 220    Accepted Submission(s): 174 Problem Description Recently, paleoa

要做ADC 770

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

HDU-5982-Relic Discovery

ACM模版描述题解相乘求和,签到题。代码#include <iostream>using namespace std;int n;int main() { int T; scanf("%d", &T); while (T--) { scanf("%d", &n); int sum = 0, x, y; for (int i

逐梦者 389

HDU 5982 Relic Discovery

【代码】HDU 5982 Relic Discovery。

Binbin__Zhang的博客 198

HDU5982. Relic Discovery

题目大意 给你n种物品,每个物品有数量和价格,问开支 简要题解 傻缺题 1 #include <bits/stdc++.h> 2 using namespace std; 3 namespace my_header { 4 #define pb push_back 5 #define mp make_pair 6 #define pir pair&lt...

weixin_30872671的博客 138

HDU 5134 Highways (圆与多边形面积交)

Highway Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 512000/512000 K (Java/Others) Total Submission(s): 285    Accepted Submission(s): 100 Special Judge Problem Description You j

YitongJun的博客 860

hdu5982

/**/ #include &lt;cstdio&gt; #include &lt;cstring&gt; #include &lt;cmath&gt; #include &lt;cctype&gt; #include &lt;iostream&gt; #include &lt;algorithm&gt; #include &lt;map&gt; #include &lt;set&amp

oneplus123的博客 247

概率——2016青岛icpc区域赛 C - Pocky HDU - 5984 公式推导

博客目录 一、原题 原题传送门(vjudge) 原题传送门(杭电原题) Let’s talking about something of eating a pocky. Here is a Decorer Pocky, with colorful decorative stripes in the coating, of length L. While the length of rem...

GreyBtfly的博客 2047

HDU 5948 Thickest Burger 【模拟】 (2016ACM/ICPC亚洲区沈阳站)

Thickest Burger Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 63    Accepted Submission(s): 60 Problem Description ACM ICPC i

Coolxxx的博客 1318

2017CCPC 网络选拔赛 1005 CaoHaha's staff

http://acm.hdu.edu.cn/showproblem.php?pid=6154 题意就是在一个平面直角坐标系里面,每一笔只能画1的直线或者是根号2的斜对角线,给出一个面积,求最少需要多少笔才能围成一个封闭图形的面积大于等于给出的面积 比赛的时候一直在瞎画图,思路很乱,结果没有找到规律。 结果看到题解,才发现自己想的差不多了就是没有去总结一下,其实就是用根号2的边为菱形的

三水的鱼塘♂ 774

四塔问题!!!!!!!!!!!!!!!!!

#include using namespace std; int dp[55555]; int main() { int i,j=0,k=2,t=2; dp[1]=1; for(i=2;i<=50000;i++){ j++; dp[i]=(dp[i-1]+t)%10000; if(j==k

三水的鱼塘♂ 705

codeforces 837B Flag of Berland

B. Flag of Berland time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The flag of Berland is such rectangular f

三水的鱼塘♂ 487
上一篇: FZU 1627 Revival's road
下一篇: HDU 5983 Pocket Cube
threeh20
博客等级 码龄9年 64粉丝 422原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值