Train Problem ITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 15980Accepted Submission(s): 5931 Problem Description As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by t...
转载 2013-08-04 20:57:00
43阅读
2评论
栈的基本操作……#include #include #include using namespace std;char in[100],out[100];int flag[200];int main(){ int n,top,i,j,k,bo; while(scanf("%d",&n)!...
转载 2014-04-16 15:31:00
27阅读
2评论
Train Problem I Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 32387 Accepted Submission(s): 122
转载 2016-10-07 15:57:00
60阅读
2评论
Problem Description As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(beca
转载 2017-06-17 16:20:00
26阅读
2评论
Train Problem Ihttp://acm.hdu.edu.cn/showproblem.php?pid=1022Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 12861 Accepted Submission(s): 4705 Problem DescriptionAs the new term comes, the Ignatius Train Station is very busy nowadays. A lot of s
转载 2012-12-28 22:39:00
41阅读
2评论
Problem Description As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(beca
转载 2017-08-13 08:30:00
25阅读
2评论
太囧了,刚开始我居然把 while(!s.empty()) s.pop(); while(!q.empty()) q.pop();写成了 if(!
原创 2022-01-05 14:55:15
154阅读
Train Problem ITime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 20678
原创 2022-12-02 00:33:44
62阅读
As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is the fastest all over the world ^v^). But here comes a problem, there is only one railway where all the trains stop. So all
原创 2021-07-29 16:16:49
232阅读
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1022 #include #include #include #include using namespace std;string strIn,strOut;stack strTmp;//临时栈vector strInfo;int main(int argc,char* argv[]){ int...
转载 2021-08-05 14:54:48
63阅读
Problem Description As the new term comes, the Ignatius Train Station is very busy nowadays.
转载 2013-03-30 16:00:00
44阅读
2评论
Train Problem Ihttp://acm.hdu.edu.cn/showproblem.php?pid=1022Time Lim
原创 2023-04-11 16:41:48
127阅读
Problem Description As the new ter
原创 2022-08-12 09:53:06
35阅读
Train Problem ITime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 23614    Accepted Submission(s): 8925Problem DescriptionAs the new te
原创 2023-04-24 02:48:04
39阅读
题意:火车进站问题,判断出栈的顺序。仅仅是栈的简单应用,熟练掌握即可。#include #inclu
原创 2022-08-09 17:33:23
34阅读
Train Problem ITime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 48177    Accepted Submission(s): 18184Problem DescriptionAs the new term co...
原创 2023-02-07 11:36:50
53阅读
地址:http://acm.hdu.edu.cn/showproblem.php?pid=1022题意:火车调度问题,栈的基本应用。。。2wa。。。变量忘记初始化。。。太2了。代码: 1 # include <stdio.h> 2 3 4 int n, ans[25] ; 5 char s1[15], s2[15] ; 6 char s[15] ; 7 8 9 int gao()10 {11 int i, p = 0, q = 0, top = 0 ;12 for (i = 0 ; i < 2*n ; i++)13 {14 if (top != ...
转载 2012-06-10 09:06:00
41阅读
题目大意://此题不真正的仔细读难理解出事栈的应用,容易想成反序相等就yes的问题,此题题意是说输入的两列字符串,第一列表示进入的顺序,第二列表示出去的顺序,问你是否符合后进先出。//举出一列数据 7 1234567 4321576//上面数据应该是 in in in in out out out out in out in in out out;解题思路:
原创 2013-08-08 21:14:10
17阅读
x
原创 2023-02-18 11:30:26
80阅读
  • 1
  • 2
  • 3
  • 4
  • 5