题目解析

字符串的基础操作,注意判断零即可

#include <bits/stdc++.h>
using namespace std; int i;
char c[15]; int main ()
{
scanf ("%s", &c);
if (c[0] == '-')
{
i = 1;
printf ("-");
}
for (int j = strlen (c) - 1; j >= i; -- j)
{
if (c[j] - 48 != 0)
printf ("%c", c[j]);
}
return 0;
}

最新文章

  1. Qt5中的信号槽
  2. H5实现俄罗斯方块(三)
  3. DDD:谈谈数据模型、领域模型、视图模型和命令模型
  4. R 语言实现牛顿下降法
  5. Git hub pull时候的错误 : The current branch is not configured for pull No value for key branch.master.merge found in configuration
  6. Linux中tar命令-C用法
  7. EF操作sqlite数据库时的项目兼容性问题
  8. 关闭sublime自动检测更新提示
  9. python-面向对象入门
  10. ionic3 隐藏子页面tabs
  11. python之运算符与基本数据类型
  12. 测试SD卡读写速度
  13. Access restriction: The type BASE64Encoder is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar
  14. Cognos11中关于CJAP第三方认证的相关配置
  15. PinnedListView分析一
  16. js面试题——找到数组中的重复元素并判断重复次数且输出重复元素
  17. stm32 Flash读写[库函数]
  18. SQL中禁用trigger
  19. SGU 126 Boxes(模拟题|二进制)
  20. Android Hook框架Xposed详解

热门文章

  1. website captcha
  2. vue &amp; child component &amp; props
  3. 使用控制台启动Android设备模拟器
  4. 玩遍博客网站,我整理了 Hugo 及其流行的风格主题
  5. 微信小程序:日期组件picker的使用
  6. 生成pdf phantomjs
  7. Django简单的使用及一些基础方法
  8. ViewPager 高度自适应
  9. 为WebView 同步cookie
  10. ubuntu上pyecharts V1版本环境搭建