各類讀入的測試

測試了一下用scanf,cin,cin關同步,讀入優化讀入1e7的數據時的用時 (LJ機房電腦...太慢)測試 附讀入優化優化 inline int read() { int x=0,p=1;char ch=getchar(); while (ch<'0'||ch>'9'){if (ch=='-')p=-1;ch=getchar();} while (ch>='0'&&ch<='9'){x=(x<
相關文章
相關標籤/搜索