两段时长加起来
运行下面这段程序:
#include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
#include <chrono>
int main() {
auto t = chrono::microseconds(2500) + chrono::milliseconds(1);
cout << t.count() << endl;
}
(本题用 g++ -std=c++17 -O0 编译。)
全部评论