摘要: lottery.py参数 第一题 问题 计算 3 个工作在随机种子为 1、2 和 3 时的模拟解。 输出太长了,不截图了,直接把结果复制了。 随机种子为1时: [whq@whq01 cpu-sched-lottery]$ python lottery.py -j 3 -s 1 -c ARG jlis 阅读全文
posted @ 2024-11-04 21:15 hisun9 阅读(20) 评论(0) 推荐(0)
摘要: 题目 自己第一次写出来的通过的代码: class Solution { public: int removeDuplicates(vector<int>& nums) { int slow = 0, fast = 0; int n = nums.size(); while (fast < n) { 阅读全文
posted @ 2024-11-04 20:07 hisun9 阅读(21) 评论(0) 推荐(0)
摘要: 题目 自己写的: class Solution { public: bool isPerfectSquare(int num) { int l = 1, r = num; while (l <= r) { int mid = l + (r - l) / 2; if ((long long) mid 阅读全文
posted @ 2024-11-04 19:27 hisun9 阅读(19) 评论(0) 推荐(0)
摘要: 1. 组合查询 多数SQL查询都只包含从一个或多个表中返回数据的单条SELECT语句。MySQL也允许执行多个查询(多条SELECT语句),并将结果作为单个查询结果集返回。这些组合查询通常称为并(union)或复合查询(compound query)。 有两种基本情况,其中需要使用组合查询: 在单个 阅读全文
posted @ 2024-11-04 00:41 hisun9 阅读(128) 评论(0) 推荐(0)