当前位置: 首页 > news >正文

可以做试卷并批改的网站短信营销

可以做试卷并批改的网站,短信营销,学校的网站建设费如何入账,软件工程专业就业现状http://poj.org/problem?id3125 这道题没什么突出的地方#xff0c;是一道很水的题#xff0c;可以用list#xff0c;也可以用queue来解决。#xff08;用list解决的代码我就不写了#xff09;把它写上来#xff0c;只是因为我在使用STL的时候犯了一个小错误#xff0c…http://poj.org/problem?id3125   这道题没什么突出的地方是一道很水的题可以用list也可以用queue来解决。用list解决的代码我就不写了把它写上来只是因为我在使用STL的时候犯了一个小错误从而导致我WA了数次。还是一个老问题初始化。数组的使用需要初始化STL的使用有时也要初始化。   还是直接贴代码吧…… View Code 1 #include cstdio2 #include cstdlib3 #include cstring4 #include cmath5 #include cctype6 #include vector7 #include list8 #include set9 #include map 10 #include string 11 #include algorithm 12 #include stack 13 #include queue 14 15 #define INF 0x7fffffff 16 #define reset(a) memset(a, 0, sizeof(a)) 17 #define copy(a, b) memcpy(a, b, sizeof(b)) 18 #define PI acos(-1) 19 #define FMAX (1E300) 20 #define MAX 1000000000 21 #define feq(a, b) (fabs((a)-(b))1E-6) 22 #define flq(a, b) ((a)(b)||feq(a, b)) 23 #define MAXN 10005 24 #define BASE 137 25 #define PASS puts(pass) 26 27 using namespace std; 28 29 struct Job{ 30 int pri; 31 int pos; 32 }; 33 34 int main(){ 35 queueJob q; 36 int exist[10]; 37 int T; 38 39 scanf(%d, T); 40 while (T--){ 41 int n, m, p, tm 0; 42 43 reset(exist); 44 /*****这部分是我起初忘记加上去的*****/ 45 while (!q.empty()){ 46 q.pop(); 47 } 48 /******************************/ 49 scanf(%d%d, n, m); 50 for (int i 0; i n; i){ 51 Job t; 52 53 scanf(%d, t.pri); 54 if (i m){ 55 p t.pri; 56 } 57 t.pos i; 58 exist[t.pri]; 59 q.push(t); 60 } 61 62 int pri 9; 63 64 while (pri p){ 65 while (exist[pri]){ 66 if (q.front().pri pri){ 67 q.pop(); 68 tm; 69 exist[pri]--; 70 } 71 else { 72 q.push(q.front()); 73 q.pop(); 74 } 75 } 76 pri--; 77 } 78 //PASS; 79 //printf(%d %d %d\n, q.front().pos, m, p); 80 while (q.front().pos ! m){ 81 if (q.front().pri p) tm; 82 q.pop(); 83 } 84 tm; 85 printf(%d\n, tm); 86 } 87 88 return 0; 89 }     好了为的就只有这个。后面的路还长着加油   P.S.:一个学习STL各容器用法的好网站刚才发现的www.builder.com.cn/more/3_48.shtml转载于:https://www.cnblogs.com/LyonLys/archive/2012/05/06/poj_3125_Lyon.html
http://www.pierceye.com/news/708274/

相关文章:

  • 如何开个人网站seo诊断站长
  • wordpress rss 订阅乐陵seo推广
  • 公司做一个网站企业建设3D网站
  • 自己做的网站别人打不开网络系统建设与运维职业技能等级证书
  • 签名能留链接的网站数据库网站建设公司
  • 网站权重不够高 导致创建网站销售产品
  • 中国建设报网站做网站如何文字链接文字
  • 网站建设网站多少钱网站上做值机的app
  • 百度手机网站提交做网站优化的教程
  • wordpress建站教程贴吧网站建设的论文的参考文献
  • 公司网站设计建议php7 wordpress
  • 商城网站建设策划书扬中会建网站
  • 铜陵市网站建设如何建立小程序商城
  • 大型网站运营步骤做网站f12的用处
  • 静态网站什么意思微信开发者工具打不开
  • 建站到网站收录到优化通化北京网站建设
  • 网站开发作用wordpress mysuc cms
  • 网站开发人员的职责是什么石家庄外贸建站公司
  • 内外外贸购物网站建设网站顶部下拉广告
  • 深圳企业网站建设服务平台销售推广语
  • 做网站要什么资料百度网盘登录
  • 聚牛网站建设公司北京seo优化推广
  • 成都网站公司网站建设东莞大岭山电子厂
  • python建立简易网站网站界面设计的分类有哪几种
  • 网络规划师考哪些内容优化设计卷子答案
  • 邢台网站关键词优化wordpress弹窗下载
  • 晋城市企业网站腾讯qq官网登录入口
  • 怎么给网站在百度地图上做爬虫一家专门做灯的网站
  • 河南焦作有做网站开发的公司吗xampp安装wordpress
  • python购物网站开发流程图win淘宝客wordpress主题模板