hacks
hacks
全部文章
题解
JavaWeb开发(1)
未归档(1)
归档
标签
去牛客网
登录
/
注册
hacks的博客
学习记录
全部文章
/ 题解
(共2篇)
题解 | #明明的随机数#
维护一个set,每次输入放入set里面,最后用 set::iterator 遍历一下set。 代码 #include <iostream> #include <cstdio> #include <set> using namespace std ; s...
C++
2022-04-27
0
322
题解 | #字符串最后一个单词的长度#
思路: 直接从后往前遍历,记录长度。 #include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #include <string...
2021-04-13
0
433