牛客662962409号
牛客662962409号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客662962409号的博客
全部文章
(共6篇)
题解 | 无法吃午餐的学生数量
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param students int整型vector * @param sandwich...
2025-09-19
0
3
题解 | 有效括号序列
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @return bool布尔型 */ ...
2025-09-17
1
9
题解 | 简写单词
#include <iostream> #include <string> using namespace std; int main() { string str; string strSimplify = ""; while...
2025-09-15
0
12
题解 | 比大小
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << (a < b ? "<&quo...
2025-09-08
0
16
题解 | 明天星期几?
#include <iostream> using namespace std; #define MAXDAY (8) int main() { int a; cin >> a; cout << ++a % MAXDAY + ( a ...
2025-09-08
1
11
题解 | 温标转换
#include <iostream> using namespace std; int main() { float K,F; cin >> K; F = (K - 273.15) *1.8 +32; cout << F <...
2025-09-08
0
14