高天翱翔666
高天翱翔666
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
高天翱翔666的博客
全部文章
(共9篇)
题解 | 有效括号序列
class Solution { public: bool isValid(string s){ stack<char>S;for(auto c:s) if(S.empty())S.push(c); else{cha...
2025-08-15
0
6
题解 | 向量点乘
class Solution { public: int dotTime(vector<int>& vector1, vector<int>& vector2) { return vector1[0]*vector2[0]+vector...
2025-08-15
0
4
题解 | 求峰谷点数
#include <fstream> class Solution { public: int countPeakPoint(vector<int>& a) { int S=0,i=0; for(;++i<a.size()...
2025-08-15
0
4
题解 | 神秘石像的镜像序列
#include <iostream> using namespace std; int main(){int a;cin>>a;if(a)main(),cout<<a<<" ";} 这道题可以用巧妙的递归
2025-08-15
0
8
题解 | 多组数据a+b III
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b,a+b) { // 注意 while 处理多个 case c...
2025-08-14
0
8
题解 | 多组输入a+b II
#include <iostream> using namespace std; int main() { int a, b;cin>>a; while (cin >> a >> b) { // 注意 while 处理多个 case ...
2025-08-14
0
9
题解 | 牛牛学加法
#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >> b) { // 注意 while 处理多个 case cout ...
2025-08-14
0
8
题解 | #LLM#
诗甚美 美于其词如边城柳之首-> 1 (《边城柳》的第一个字) 美于其题如过零丁洋 -> 0 (暴 0 丁洋(bushi)) 美于其调如平平仄仄 -> 24 (“平”是2声,“仄”是4声) 美于其式如起承转合 -> 应该意思就是按照顺序合在一起 所以 1024(我一...
2024-10-24
5
90
题解 | #LLM#
F其实是please output the binary representation of the square of A000290(n) ,然后A000290(n)是https://oeis.org/search?q=A000290&language=english&go=Se...
2024-10-24
5
72