当前位置:网站首页>Super fast reading in OI
Super fast reading in OI
2022-06-24 07:36:00 【Hard working Lao Zhou】
Super fast reading
Use getchar() To read . But only numbers can be read .
Code implementation
template <typename T>
inline T read() {
T x = 0, f = 1;
char ch = getchar();
while (!isdigit(ch)) {
if(ch=='-') {
f = -1;
ch = getchar();
}
}
while (isdigit (ch)) {
x = x * 10 + (ch ^ 48);
ch = getchar();
}
return x * f;
}
Usage method
int T=read<int>();
long long x=read<long long>();
边栏推荐
- Huawei experimental topology set, learning methods are attached at the end of the article!
- 学会使用楼宇控制系统BACnet网关没那么难
- 2、 What is the principle of layer 3 and 4 switching technology? Recommended collection!
- Tutorial on simple use of Modbus to BACnet gateway
- RDD基础知识点
- How to turn on win11 notebook power saving mode? How to open win11 computer power saving mode
- PCL calculates the area of a polygon
- [image segmentation] retinal vessel segmentation based on morphology with matlab code
- [OGeek2019]babyrop
- 与(&&)逻辑或(||),动态绑定结合三目运算
猜你喜欢

(CVE-2020-11978)Airflow dag中的命令注入漏洞复现【vulhub靶场】

bjdctf_2020_babystack

伦敦金的资金管理比其他都重要

Unexpected token u in JSON at position 0

阿里云全链路数据治理
![[GUET-CTF2019]zips](/img/79/22ff5d4a3cdc3fa9e0957ccc9bad4b.png)
[GUET-CTF2019]zips

MySQL enable binlog
![[image fusion] image fusion based on directional discrete cosine transform and principal component analysis with matlab code](/img/21/a5a973f06ea002755a8a2a4431dcd8.png)
[image fusion] image fusion based on directional discrete cosine transform and principal component analysis with matlab code

MaxCompute远程连接,上传、下载数据文件操作

Blue Bridge Cup seven segment code (dfs/ shape pressing + parallel search)
随机推荐
[cnpm] tutorial
【MySQL 使用秘籍】克隆数据表、保存查询数据至数据表以及创建临时表
在终端pip install xxx但在pycharm却no module named xxx
两个链表的第一个公共节点_链表中环的入口(剑指offer)
10 common malware detection and analysis platforms
【图像分割】基于形态学实现视网膜血管分割附matlab代码
buuctf misc 从娃娃抓起
MySQL case: analysis of full-text indexing
Graduation season advance technology
[Proteus] Arduino uno + ds1307+lcd1602 time display
Ultra wideband pulse positioning scheme, UWB precise positioning technology, wireless indoor positioning application
选择器(>,~,+,[])
蓝牙耳机怎么连接电脑使用,win10电脑如何连接蓝牙耳机
[frame rate doubling] development and implementation of FPGA based video frame rate doubling system Verilog
Summary of 2022 blue team HW elementary interview questions
bjdctf_2020_babystack
How to select a third-party software testing company? 2022 ranking of domestic software testing institutions
20个不容错过的ES6技巧
20 not to be missed ES6 tips
A penetration test of c/s Architecture - Request encryption, decryption and test