解题思路:
注意事项:
参考代码:
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <vector> #include <string> #include <algorithm> #include <stdio.h> using namespace std; int main(int argc, char** argv) { int n = 0; cin >> n; double ans = 0; for (int i = 0; i < n; i++) { double a; int b; string s; cin >> s >> a >> b; ans += a * b; } printf("%.6lf\n", ans); return 0; }
0.0分
0 人评分
C语言考试练习题_排列 (C语言代码)浏览:725 |
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:672 |
程序员的表白 (C语言代码)浏览:667 |
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:604 |
简单的a+b (C语言代码)浏览:577 |
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)浏览:545 |
Cylinder (C语言描述,蓝桥杯)浏览:1247 |
C语言训练-数字母 (C语言代码)浏览:608 |
幸运数 (C++代码)浏览:1264 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:514 |