problemcutter

导航

2015年2月22日 #

SPOJ Problem 4:Transform the Expression

摘要: 这题也不难,模拟一下栈,若搜到字符为+-则弹出栈顶,若搜到字符为*/且不为+-则弹出栈顶,然后把搜到的操作字符压入栈顶,字母就输出。#include#includechar s[500],symbol[500];int num[500],i,j,t,r;int main(){ int t; ... 阅读全文

posted @ 2015-02-22 20:02 problemcutter 阅读(108) 评论(0) 推荐(0)