^m
路漫漫

随笔分类 -  学习笔记

安利一个好用的读入优化!
摘要:↓ 1 #include <bits/stdc++.h> 2 3 using namespace std; 4 5 namespace io { 6 const int SIZE = (1 << 21) + 1; 7 char ibuf[SIZE], *iS, *iT, obuf[SIZE], *o 阅读全文
posted @ 2018-04-20 23:38 ^m 阅读(130) 评论(0) 推荐(0)
随机数生成
摘要:死到临头发现还不会对拍 C++随机数生成:↓ 1 #include<bits/stdc++.h> 2 3 using namespace std; 4 5 int main() { 6 srand((unsigned)time(NULL)); 7 cout << rand() << " "; // 阅读全文
posted @ 2018-04-05 17:28 ^m 阅读(118) 评论(0) 推荐(0)