省时间算法整理
来源:互联网 发布:union安卓图像软件 编辑:程序博客网 时间:2024/05/29 08:53
读入int:
inline int read(){ int res(0),sign(1); char c;while(1){ c = getchar(); if('0' <= c && c <= '9') { res = c - '0'; break; } else if(c == '-') { sign = -1; break; } }while(1){ c = getchar(); if('0' <= c && c <= '9') res = res*10 + c - '0'; else break; }return res * sign;}
输出int
inline void put(int x){ if(x< 0){ putchar('-'); x = -x; } if(x == 0){ putchar('0'); return; } char s[20]; int bas = 0; for(;x;x/=10)s[bas++] = x%10+'0'; for(;bas--;)putchar(s[bas]); return;}
0 0
- 省时间算法整理
- 如何在编译内核时节省时间~
- 用TDD开发可能会更省时间
- Matlab 省时间的小技巧总结
- 电脑知识小技巧,可以帮你省时间
- Excel 2007 六则技巧 帮你省时间
- uva 11997 priority_queue 应用举例(超省时间!!!)
- 省钱又省时间的买书方法
- [Scrapy爬虫]自己修改常用网站,去广告,省时间
- 省时选择器
- 算法整理
- 算法整理
- 算法整理
- 算法整理
- 算法整理
- 做一个统计数据时到底哪种查询更省时间呢
- NYOJ 在于公式的变形+scanf、printf省时间+预处理命令也会耗时间的
- Windows 常用电脑快捷键大全 用起来很省时间哦!
- 利用NSURLSession实现https请求
- 苹果推送-APNS
- Android中SQLiteDataBase的使用
- 1014. Waiting in Line (30)
- 安卓中的Activity的几种跳转方式
- 省时间算法整理
- Sublime Text 3 设置C/C++编译环境
- UVA 10420-List of Conquests
- OpenLDAP学习笔记
- 设置wifi连接中虚拟机无法使用桥接的问题
- 一道面试的智力题目
- 数组指针和指针数组
- const与指针
- spring-quartz