| 记录编号 | 131045 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 956.money | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.005 s | ||
| 提交时间 | 2014-10-23 20:20:48 | 内存使用 | 0.31 MiB | ||
#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
double x[100+10]={0};
using namespace std;
int main(){
	freopen("dog.in","r",stdin);
	freopen("dog.out","w",stdout);
	int c=0,n;
	double a,b,d;
	cin>>n;
	for(int i=1;i<=n;i++){
		cin>>a>>b;
		x[c]=a*b/10;
		c++;
	}
	for(int o=0;o<=c;o++){
		d+=x[o];
	}
	printf("%.2lf",d);
}