看到一段代码,有一句是ans += yes[i] * 1LL * (yes[i] - 1) / 2;,请问1LL是什么意思?在C++中如何使用?链接:完整代码
ans += yes[i] * 1LL * (yes[i] - 1) / 2;
1LL
业精于勤,荒于嬉;行成于思,毁于随。
LL stands for long long, a 64-bit long integer type, newly defined in the C++11 standard. Its usage is an integer type with a larger range. How else do you want to use it?
LL stands for long long, a 64-bit long integer type, newly defined in the C++11 standard. Its usage is an integer type with a larger range. How else do you want to use it?