摘要: 题目是选出c个连续的囚犯,而且囚犯的级别不能大于t#include using namespace std;int main(){ int n,t,c; cin >> n >> t >> c; int a,cnt = 0, res =0;; for(int i = 0 ; i... 阅读全文
posted @ 2014-05-03 19:37 OpenSoucre 阅读(332) 评论(2) 推荐(1) 编辑
摘要: 题目的意思就是找出未能及时处理的犯罪数,#include using namespace std;int main(){ int n; cin >> n; int a,recruit = 0, crimes = 0;; for(int i = 0 ; i > a; ... 阅读全文
posted @ 2014-05-03 19:34 OpenSoucre 阅读(141) 评论(0) 推荐(0) 编辑