上一页 1 2 3 4 5 6 ··· 87 下一页
摘要: 看面经的时候看到有洗牌算法的问题 题意就很简单 把 54 张扑克牌进行重排 使每张牌在每个位置上等概率的出现 是个小清新算法了 QAQ #include <bits/stdc++.h> using namespace std; int a[110]; void init() { for(int i 阅读全文
posted @ 2020-07-09 09:14 _Zlrrr 阅读(209) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/friend-circles/ There are N students in a class. Some of them are friends, while some are not. Their friendship is trans 阅读全文
posted @ 2020-05-21 14:11 _Zlrrr 阅读(283) 评论(0) 推荐(0)
摘要: A. Alex and a Rhombus #include <bits/stdc++.h> using namespace std; int num[110]; int N; int main() { memset(num, 0, sizeof(num)); num[0] = 0, num[1] 阅读全文
posted @ 2020-04-29 15:06 _Zlrrr 阅读(183) 评论(0) 推荐(0)
摘要: A. Ropewalkers #include <bits/stdc++.h> using namespace std; int num[5]; int d; int main() { for(int i = 0; i < 3; i ++) scanf("%d", &num[i]); scanf(" 阅读全文
posted @ 2020-01-28 15:06 _Zlrrr 阅读(173) 评论(0) 推荐(0)
摘要: A.牛妹爱整除 莽一波就过了??? https://ac.nowcoder.com/acm/contest/3405/A #include <bits/stdc++.h> using namespace std; int K; int main() { scanf("%d", &K); printf 阅读全文
posted @ 2020-01-16 17:13 _Zlrrr 阅读(265) 评论(0) 推荐(0)
摘要: vue 是用于构建用户界面的渐进式框架 当一个 vue 实例被创建的时候 它将 data 对象的所有实例传递到 vue 响应式系统中 这些属性的值发生改变的时候 视图会对应做出响应 这些数据改变的时候视图才会发生响应 只有当实例被创建时就存在在 data 的数据才是响应式的 但是 Object.fr 阅读全文
posted @ 2020-01-15 15:41 _Zlrrr 阅读(208) 评论(0) 推荐(0)
摘要: 音乐研究 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32M,其他语言64M 美团外卖的品牌代言人袋鼠先生最近正在进行音乐研究。他有两段音频,每段音频是一个表示音高的序列。现在袋鼠先生想要在第二段音频中找出与第一段音频最相近的部分。具体地说,就是在第二段音频中找到一个长度和第一段 阅读全文
posted @ 2020-01-08 11:30 _Zlrrr 阅读(285) 评论(0) 推荐(0)
摘要: 每一个可见的 HTML 元素都是一个盒子 盒子模型从外到内分别是 margin border padding content 盒子模型的属性:box-sizing box-sizing:content-box 时是标准盒子模型;box-sizing:border-box 时是IE 盒子模型;inhe 阅读全文
posted @ 2020-01-08 11:01 _Zlrrr 阅读(166) 评论(0) 推荐(0)
摘要: https://www.nowcoder.com/ta/js-assessment?query=&asc=true&order=&tagQuery=&page=1 查找数组元素位置 题目描述 找出元素 item 在给定数组 arr 中的位置 输出描述: 如果数组中存在 item,则返回元素在数组中的 阅读全文
posted @ 2019-12-27 15:10 _Zlrrr 阅读(743) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/ In a list of songs, the i-th song has a duration of time[i] seconds 阅读全文
posted @ 2019-12-26 19:22 _Zlrrr 阅读(203) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 87 下一页