hdoj 2054
来源:互联网 发布:js设置按钮禁用 编辑:程序博客网 时间:2024/06/05 14:43
http://acm.hdu.edu.cn/showproblem.php?pid=2054
//字符串题 要考虑各种情况,题目中没有说明两个数是什么样的数#include <iostream>#include <string>using namespace std;void func(string & a){ int k = a.length()-1; while (a[k]=='0') k--; if (a[k] == '.') k--; a.erase(a.begin()+k+1, a.end());}int main(){ string str1, str2; int i; while (cin >> str1 >> str2) { if (str1.find(".") != string::npos) func(str1); if (str2.find(".") != string::npos) func(str2); //cout << str1 << endl << str2 << endl; if (str1 == str2) puts("YES"); else puts("NO"); } return 0;}
- hdoj 2054
- HDOJ 2054
- HDOJ 2054
- HDOJ--2054
- POJ 2054 && HDOJ 1055
- HDOJ 2054 遮挡判断
- HDOJ
- hdoj
- hdoj
- HDOJ
- HDOJ 2054 A == B ?
- HDOJ 2054 A == B ?
- hdoj 2054 A == B ? 【字符串】
- hdoj 2054 A == B ?
- hdoj.2054 A == B ? 20141027
- HDoj- 2054 A==B?
- hdoj-2054-A == B ?
- hdoj 1568 && hdoj 5344 && hdoj 5444
- 简单修复J-Link v7、v8固件损坏
- hdoj 1257
- hdoj 2037
- linux shell中的单引号与双引号的区别(看完就不会有引号的疑问了)
- 访问者模式(Visitor)
- hdoj 2054
- passthru驱动安装
- 查询Blocking脚本
- 输入输出
- aix下oracle定时自动备份
- C/C++____vector___学习
- java 中的 必须知道的 排序
- C++:STL标准入门汇总
- hdu_4350 Card(水题)