- 博客(12)
- 收藏
- 关注
原创 基础算法:位运算,lowbit
看二进制n的第k位数: n >> k & 1 1.先把第k位移动到最后一位 n >> k 2.看个位是几 x & 1 lowbit(x) 返回x的最后一位1 eg.lowbit(1010) = 10;lowbit(101000) = 1000; 内核: x & -x : x & ( ~取反 x + 1) eg.x = 10000....1000; ~x = 01111....01111; ~x + 1 = ......10
2022-03-27 03:05:18
156
原创 HTML:列表
ul与li unordered list <ul> <li>first</li> <li>second</li> <li>third</li> </ul> ol与li ordered list <ol> <li>fe.
2022-03-23 15:38:15
93
原创 HTML:表单form
form:文档区域,此区域包含交互控件,用于向 Web 服务器提交信息。 <body> <form action=""></form> </body> action:可以传入地址,也可删除 <body> <form> <label for="username">用户名</label> <input type="text" name="iddd
2022-03-23 15:10:59
762
原创 HTML:超链接
a 跳转新页面 <body> <a href="https://blog.youkuaiyun.com/weixin_68375611?type=blog">Sylvia_Ttz </a> </body> 打开新页面 target"_blank" <body> <a href="https://blog.youkuaiyun.com/weixin_68375611?type=blog" target="_blank">
2022-03-22 22:29:09
391
原创 HTML:audio & video
<audio controls src="/audios/bgm.mp3">无法播放</audio> audio controls <audio> 与多个 <source> 元素: <audio controls> <source src="/audios/sound1" type="audio/mpeg"/> <source src="/audios/sound2" type="audio/mpeg.
2022-03-22 22:20:27
110
原创 HTML:图片
<body> <img width="300" height="50" src="/images/头像.jpg" alt="山"> </body> img src:路径;alt:当图片无法显示时,显示alt内容; width:宽 height:高
2022-03-22 22:08:34
293
原创 HTML:基础标签
<div> & <span> <body> <div>hello</div> <div>world</div> <span>hello</span> <span>world</span> </body> <h1> ~ <h6> 标题 <p> 段落:有间距的div:会过滤回车和
2022-03-22 22:02:19
128
原创 HTML:head
HTML树形结构 注释:<!-- --> <head> <head> <meta charset="UTF-8"> <meta name="description" content="全球领先的中文搜索引擎、致力于让网民更便捷地获取信息,找到所求。百度超过千亿的中文网页数据库,可以瞬间找到相关的搜索结果。"> <meta name="keywords" content="baidu"&...
2022-03-22 21:36:50
104
原创 HTML:表格table
<body> <table> <caption>成绩单</caption> <thead> <tr> <th>姓名</th> <th>数学</th> <th>语文</th> ...
2022-03-22 21:08:21
80
原创 C++格式化读入
读入带箭头和空格,以内容结尾的字符串 eg. 1 -> 2 -> 3 -> 4 void read() { string s; getline(cin,s); int c = 0; int i = 0; int arr[100]; for(auto x : s) { if(x >= '0' && x <='9') { c = c * 10 + (x - '0'); ...
2022-03-21 23:22:37
1470
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人