赞
踩
#include <iostream> using namespace std; int main() { int n, sum = 0; cin >> n; for (int i = 0; i < n; i++) { int w, score; cin >> w >> score; sum += w * score; } if (sum > 0) cout << sum; else cout << "0"; return 0; }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。