• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
村雨sup
自己选的路,跪着也要走完 XD
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 6 7 ··· 42 下一页
2021年3月4日
OPENGL shader 知识点
摘要: void gluLookAt(GLdouble eyex,GLdouble eyey,GLdouble eyez,GLdouble centerx,GLdouble centery,GLdouble centerz,GLdouble upx,GLdouble upy,GLdouble upz);该 阅读全文
posted @ 2021-03-04 05:30 村雨sup 阅读(159) 评论(0) 推荐(0)
2021年1月19日
字节跳动2019
摘要: [编程题]万万没想到之聪明的编辑 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32M,其他语言64M 我叫王大锤,是一家出版社的编辑。我负责校对投稿来的英文稿件,这份工作非常烦人,因为每天都要去修正无数的拼写错误。但是,优秀的人总能在平凡的工作中发现真理。我发现一个发现拼写错误的 阅读全文
posted @ 2021-01-19 13:06 村雨sup 阅读(184) 评论(0) 推荐(0)
2021年1月12日
华为机试 迷宫问题dfs
摘要: #include<iostream> #include "bits/stdc++.h" using namespace std; int N,M; int MAP[11][11]; void dfs(int i,int j,vector<int>veci,vector<int>vecj){ if(i 阅读全文
posted @ 2021-01-12 16:35 村雨sup 阅读(215) 评论(0) 推荐(0)
华为机试 字符串加解密
摘要: #include<iostream> #include <vector> #include "bits/stdc++.h" using namespace std; char jiami(char s){ if(s >= 'a'&&s < 'z'){return char(s-31);} else 阅读全文
posted @ 2021-01-12 15:09 村雨sup 阅读(304) 评论(0) 推荐(0)
华为机试 单词倒排
摘要: #include<iostream> #include <vector> #include "bits/stdc++.h" using namespace std; int main() { string s; getline(cin,s); vector<string> vecstr; strin 阅读全文
posted @ 2021-01-12 14:28 村雨sup 阅读(119) 评论(0) 推荐(0)
华为机试-字符串分割
摘要: #include<iostream> #include <vector> #include "bits/stdc++.h" using namespace std; int main() { string s; while(cin >> s){ int lens = s.size(); while( 阅读全文
posted @ 2021-01-12 13:55 村雨sup 阅读(242) 评论(0) 推荐(0)
16位转10位写法
摘要: 题目描述 写出一个程序,接受一个十六进制的数,输出该数值的十进制表示。(多组同时输入 ) 输入描述: 输入一个十六进制的数值字符串。 输出描述: 输出该数值的十进制字符串。 1 2 3 4 5 6 7 8 #include <stdio.h> int main() { int num = 0; wh 阅读全文
posted @ 2021-01-12 01:23 村雨sup 阅读(445) 评论(0) 推荐(0)
2021年1月10日
Leetcode 394. 字符串解码
摘要: class Solution { public: string decodeString(string s) { int num = 0; string stradd = ""; stack<string> strstack; stack<int> intstack; for(int i=0;i < 阅读全文
posted @ 2021-01-10 17:03 村雨sup 阅读(98) 评论(0) 推荐(0)
Leetcode 200. 岛屿数量
摘要: class Solution { public: int numIslands(vector<vector<char>>& grid) { int nr = grid.size(); if(nr == 0) return 0; int nc = grid[0].size(); int ans = 0 阅读全文
posted @ 2021-01-10 15:36 村雨sup 阅读(105) 评论(0) 推荐(0)
Leetcode 3. 无重复字符的最长子串
摘要: class Solution { public: int lengthOfLongestSubstring(string s) { int maxlen = 0; for(int i=0;i < s.size();i++){ unordered_map<char,int> mp; mp[s[i]] 阅读全文
posted @ 2021-01-10 14:30 村雨sup 阅读(97) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 42 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3