URAL 1654 - Cipher Message
来源:互联网 发布:windows 打开ftp 编辑:程序博客网 时间:2024/05/20 21:59
题目地址: http://acm.timus.ru/problem.aspx?space=1&num=1654
经典题。 对栈空间的操作。
很久前做的,今天刚好看到,就放上来了。
#include<iostream>#include<cstdio>using namespace std;char str[210000],stk[210000];int main(){int i,tp;gets(str);for(i=0,tp=0;str[i];i++)if(tp==0) stk[tp++]=str[i];else if(stk[tp-1]!=str[i])stk[tp++]=str[i];else tp--;stk[tp]=0;puts(stk);return 0;}
- ural 1654 Cipher Message
- URAL 1654 - Cipher Message
- Ural 1654 Cipher Message
- URAL 1654 Cipher Message
- URAL 1654 Cipher Message(栈)
- ural 1654. Cipher Message
- Ural 1654. Cipher Message
- Ural 1654. Cipher Message
- ural 1654. Cipher Message
- Ural 1706. Cipher Message 2 后缀数组
- URAL 1996 Cipher Message 3 (FFT + KMP)
- ural 1996. Cipher Message 3 KMP+FFT
- 【ural】1996. Cipher Message 3【FFT+KMP】
- URAL 1654. Cipher Message (STL stack)
- URAL 1996 Cipher Message 3 FFT + KMP
- URAL 1996 Cipher Message 3 (FFT + KMP)
- URAL 1996 Cipher Message 3 FFT KMP
- Cipher Message
- 三星Galaxy SIII/E210L第三方升级/刷机教程(Recovery模式卡刷法)
- 找出Windows系统中启动隐患的方法
- 继承
- 编译 boost
- VIM重要编辑命令
- URAL 1654 - Cipher Message
- java java.lang.NoClassDefFoundError 的解决办法
- android 项目移植/分辨率适配与dip(dp)的使用
- Chrome Developer Tools 调试javascript
- 我的java笔记(异常,字符串)
- nfs: server 192.168.1.100 not responding, still trying 解决办法
- cocos2d多点触摸
- ipv6学习之旅--组播侦听发现协议(MLD)
- Js中的Ajax XMLHttpRequest的创建