摘要:
3.55 can't be represented exactly in floating point. The internal value is something like 3.54999999999, which rounds to 3.5 首先要明白浮点数在计算机中都绝大多数是近似值。其实 阅读全文
摘要:
int main() { vector<int> a; a.push_back(1); a.push_back(2); for (auto &i : a) // 加上引用是安全的写法 { i = 3; cout << i << endl; } for (auto i:a) { cout << i < 阅读全文
摘要:
B. Infinite Prefixes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given strin 阅读全文
摘要:
A. Display The Number time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You have a large el 阅读全文