版本比较
快读,快写模板C++
正文
增加 3 行删除 3 行
12345673 行未改动111213141516171819202122233 行未改动快读```cppvoid read(int &a){a = 0;char c;while ((c = getchar()) < 48);3 行未改动```快写```cppvoid write(int x){static int sta[35];int top = 0;do{sta[top++] = x % 10;x /= 10;} while (x);3 行未改动12345673 行未改动111213141516171819202122233 行未改动快读```cppvoid read(int &a){a = 0;char c;while ((c = getchar()) < 48);3 行未改动```快写```cppvoid write(int x){static int sta[35];int top = 0;do{sta[top++] = x % 10;x /= 10;} while (x);3 行未改动