codeforces 604A Uncowed Forces
题目链接:http://codeforces.com/problemset/problem/604/A
题意:求cf比赛每次能够增加的排名,运算规则会告诉你
题目分类:数学
题目分析:用题目给的公式直接进行运算就好
代码:
#include<bits/stdc++.h>
using namespace std;
int a[]={,,,,,};
int m[];
int w[];
int main()
{
    int s,us;
    for(int i=;i<=;i++)
    {
        cin>>m[i];
    }
    for(int i=;i<=;i++)
    {
        cin>>w[i];
    }
    cin>>s>>us;
    __int64 sum=;
    for(int i=;i<=;i++)
    {
        sum+=max(*a[i]/,(-m[i])*a[i]/-*w[i]);
    }
    sum=sum+s*-us*;
    cout<<sum<<endl;
}
codeforces 604A Uncowed Forces的更多相关文章
- Codeforces Round #334 (Div. 2) A. Uncowed Forces 水题
		A. Uncowed Forces Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/contest/604/pro ... 
- 【51.27%】【codeforces 604A】Uncowed Forces
		time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard ou ... 
- 【 CodeForces 604A】B - 特别水的题2-Uncowed Forces
		http://acm.hust.edu.cn/vjudge/contest/view.action?cid=102271#problem/B Description Kevin Sun has jus ... 
- CodeForces 604A(浮点数)
		这道题需要注意一个点,浮点数的误差问题 判断里的0.3*a[i]换成3*a[i]/10就过了 这个后面还要专门研究一下 #include <iostream> #include <s ... 
- Codeforces Round #334(div.2) A
		A. Uncowed Forces time limit per test 1 second memory limit per test 256 megabytes input standard in ... 
- Codeforces Round #334 (Div. 2)
		水 A - Uncowed Forces #include <bits/stdc++.h> using namespace std; typedef long long ll; const ... 
- code forces Codeforces Round #487 (Div. 2)  C
		C. A Mist of Florescence time limit per test 1 second memory limit per test 256 megabytes input stan ... 
- Codeforces Round #192 (Div. 1) A. Purification 贪心
		A. Purification Time Limit: 20 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/contest/329/probl ... 
- Codeforces Gym 100002 D"Decoding Task" 数学
		Problem D"Decoding Task" Time Limit: 1 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com ... 
随机推荐
- 1、Zookeeper熟悉和用途综述
			集群 配置: 192.168.32.80 192.168.32.81 192.168.32.82 server 1: zjtest7-redis:/opt/zookeeper/conf# cat zo ... 
- Swift 与 Objective-C混合编程
			在Swift项目中想要同一时候加入Objective-C的库支持或者须要同一时候用Objective-C编程 在加入新的文件时选择Objective-C系统就会自己主动生成一个xx-Bridging- ... 
- c语言: Standard C 语言标准函数库
			Standard C 语言标准函数库速查 (Cheat Sheet) http://ganquan.info/standard-c/ c语言标准头: <assert.h> 断言 <c ... 
- ORA-01092 ORA-12432: LBAC error: zllegnp:OCIStmtExecute 故障一例
			最近由于数据库hang住,无奈之下直接干掉了pmon进程,再次启动的时候收到了ORA-01092: ORACLE instance terminated. Disconnection forced以及 ... 
- 基于visual Studio2013解决C语言竞赛题之1019填数
			     题目 解决代码及点评 /* 19. 找3个数字,填在下面式子中,使等式成立. _6325 = 6325_ × ____ (等号左边是五位) 1,若答案有多个,则打印一组即 ... 
- 执行shell脚本提示“syntax error near unexpected token for((i=0;i<$length;i++))”
			sh脚本例如以下: #!/usr/bin/env bash county="3 4 5 6 7 8 9 10 11 12 16 29 39 44 53 62 72 84 97 115 128 ... 
- 读书与写论文的引导书——leo鉴书60
			我是专科直接考的研究生.在论文写作方面基本能够算是初级.MBA毕业那会儿要写论文,在网上找了不少这方面的书,<论文与治学>是当中之中的一个. 这本那时为应景儿卖的书,成了我之后学习与工作的 ... 
- HDU 3966 Aragorn's Story(树链剖分)
			HDU Aragorn's Story 题目链接 树抛入门裸题,这题是区间改动单点查询,于是套树状数组就OK了 代码: #include <cstdio> #include <cst ... 
- Eclipse用法和技巧五:生成说明文档2
			上面一篇文章里面我们介绍了一种生成可以被JDK提取到,生成JavaDoc的添加注释方法.下面再补充一种生成这种注释的方法,上图: 步骤一:光标移动到需要添加注释的语句旁边,快捷键:shift + al ... 
- UC网盘被关停 将与阿里淘盘合并?(案例说明云盘的成本才是重点,技术不是问题;与巨头竞争是重点)
			UC网盘被关停 将与阿里淘盘合并? 二八2016-03-18 08:05:36阿里巴巴 网盘 产品阅读(0)评论(12) UC网盘项目组日前发布公告称将停止网盘存储服务,原因为配合国家对云盘传播淫秽色 ... 
