Files
python/LuoGu/RuMen/常用办法.txt

9 lines
159 B
Plaintext
Raw Normal View History

2025-08-30 18:35:01 +08:00
//字符串转数字
int num = 0;
istringstream(str) >> num;
//数字转字符串
to_string(10);
//排序(倒序)
sort(a, a + n, greater<int>());