poj 3650 The Seven Percent Solution
来源:互联网 发布:windows 文件管理器 编辑:程序博客网 时间:2024/06/02 22:59
#include <iostream>#include <string>using namespace std;int main(){ string input, ans; int i, len; while (getline(cin, input)) { if (input == "#") break; ans.clear(); len = input.length(); for (i = 0; i < len; i++) { if (input[i] == ' ') ans += "%20"; else if (input[i] == '!') ans += "%21"; else if (input[i] == '$') ans += "%24"; else if (input[i] == '%') ans += "%25"; else if (input[i] == '(') ans += "%28"; else if (input[i] == ')') ans += "%29"; else if (input[i] == '*') ans += "%2a"; else ans.push_back(input[i]); } cout << ans << endl; } system("pause");}
- poj 3650 The Seven Percent Solution
- poj 3650 The Seven Percent Solution
- POJ 3650:The Seven Percent Solution
- POJ 3650 The Seven Percent Solution G++
- POJ 3650 The Seven Percent Solution
- POJ 3650 The Seven Percent Solution
- poj 3650 The Seven Percent Solution
- POJ 3650 && HDU 2719 The Seven Percent Solution(水~)
- the seven percent solution
- The Seven Percent Solution
- The Seven Percent Solution
- The Seven Percent Solution
- The Seven Percent Solution
- The Seven Percent Solution
- 1530. The Seven Percent Solution
- Sicily1530 The Seven Percent Solution
- HDU2719:The Seven Percent Solution
- POJ3650----The Seven Percent Solution
- 稻草人的程序之路--函数参数中非引用,引用和const限定符的使用.
- 面向对象设计原则--面试遭遇
- ASP.NET2.0 CheckBoxList组件编程浅析
- 2012.6.8
- poj 3650 The Seven Percent Solution
- poj 3650 The Seven Percent Solution
- 取消Firefox Flash debug player调试时超时机制
- 视频编解码概述
- 印制电路板
- Instr 函数
- 重做系统后回复grub引导
- 点击页面上某个元素实现动画的滚动效果
- 加密解密-TraceMe—注册机
- 使用 GObject 库模拟类的数据封装形式