Sicily 1636. show me the money
来源:互联网 发布:python之父谈go 编辑:程序博客网 时间:2024/05/23 17:16
// Problem#: 1636// Author#: Reid Chan#include <iostream>using namespace std;int main() { int t; cin >> t; while (t--) { int m, n; cin >> m >> n; int used = 0, ai, bi; for (int i = 0; i < n; ++i) { cin >> ai >> bi; used += (ai * bi); } int rest = m - used; if (rest < 0) { cout << "Not enough" << endl; } else { cout << rest << endl; } } return 0;}
0 0
- sicily--1636. show me the money
- Sicily 1636. show me the money
- [sicily]1636. show me the money
- Sicily 1636. Show me the money
- 1636. show me the money
- 1636. show me the money
- Show me the money
- Show Me the Money
- Sicily 2371. Show Me The Fax
- 【职场】帮你.帮我和Show. Me. The. Money.
- 【职场】帮你.帮我和Show. Me. The. Money.
- 【职场】帮你.帮我和Show. Me. The. Money.
- 【职场】帮你.帮我和Show. Me. The. Money.
- 【职场】帮你.帮我和Show. Me. The. Money.
- 【职场】帮你.帮我和Show. Me. The. Money.
- Show me the Template
- Show me the Template
- Show me the truth -- 告诉我真相
- Java编程最差实践
- Hibernate3.1.3使用自定义实体类实现对SQL查询语句的映射
- vi 全局替换命令等
- iOS开发-定位服务和地理围栏
- Apache Commons 工具类介绍及简单使用
- Sicily 1636. show me the money
- 右位移循环操作的实现
- 控件源码网站
- iOS开发 FTP使用详解
- nyoj-214 单调递增子序列(二)
- Sicily 1815. 计算两点间的距离
- 引用作形参--输入三个整数,采用地址的方法按从大到小排序
- Maven的仓库(转载自Maven实战 作者许晓斌)
- 分治法的经典问题——大整数相乘