cf 20a BerOS file system
来源:互联网 发布:sql大文件导入数据库 编辑:程序博客网 时间:2024/05/21 10:43
#include <iostream>#include <cstdio>using namespace std;int main(){ string s; cin>>s; bool flag=false; int p=s.length()-1; while(s[p]=='/') p--; if(p==-1) s="/"; else s=s.substr(0,p+1); int i=0; while(i!=s.length()) { if(!flag) cout<<s[i]; else { if(s[i]!='/') { cout<<s[i]; flag=false; } } if(s[i]=='/') flag=true; else flag=false; i++; } printf("\n");}
0 0
- cf 20a BerOS file system
- A. BerOS file system
- Code Forces 20A BerOS file system
- CodeForces 20A BerOS file system (简单题)
- 【水I/O】#20 A. BerOS file system
- CDOJ_327 BerOS file system
- CF 245A System Administrator
- CF 214 A System of Equations
- Project5: Design a File System
- Choose a journaling file system
- CF#61(div2)_C Petya and File System
- 20ABerOS file system
- CIFS: A Common Internet File System
- Tips for Writing a File System Filter
- Check for a case sensitive file system
- System Navigator - A Versatile File Manager
- CF 457A(Golden System-特殊的进制)
- unable to find a medium containing a live file system
- 大嘴巴漫谈笔记-抽样分布与假设检验
- [TYVJ 1927] 『Citric II』一道防AK好题 · 模拟
- Win32-2048游戏
- 变量命名规范
- 【软考】——数据流图
- cf 20a BerOS file system
- 理解红黑树的节点插入和删除
- C语言打印指针(地址)的值
- 黑马程序员——OC语言日志——NSMutableString和NSMutableArray 的介绍及使用
- 二:Windows100个系统命令
- javascript基本使用 9 ------call,apply
- Dom
- Log4Net 的使用
- POJ1068双端队列模拟