摘要: http://pat.zju.edu.cn/contests/pat-practise/1024 1 #include <stdio.h> 2 #include <stack> 3 using namespace std; 4 int main() 5 { 6 int N,b; 7 scanf("%d%d",&N,&b); 8 if(N==0) { 9 printf("Yes\n");10 printf("0\n");11 return 0;12 }13 14 stack<int> 阅读全文
posted @ 2012-06-16 13:32 linyvxiang 阅读(153) 评论(0) 推荐(0) 编辑
摘要: http://pat.zju.edu.cn/contests/pat-practise/1017 1 #include <stdio.h> 2 #include <string.h> 3 #include <algorithm> 4 using namespace std; 5 6 int N,K,wait_time=0; 7 struct Customer 8 { 9 int arrive_time; 10 int need_time; 11 }; 12 13 struct Customer customer[10002]; 14 15 struct... 阅读全文
posted @ 2012-06-16 11:30 linyvxiang 阅读(322) 评论(0) 推荐(0) 编辑