摘要:
题目 刚开始写的: class Solution { public: int mySqrt(int x) { if (x == 0) return 0; int l = 0, r = x; while (l < r) { int mid = l + (r - l) / 2 + 1; if (mid 阅读全文
posted @ 2024-11-02 20:44
hisun9
阅读(14)
评论(0)
推荐(0)
摘要:
题目 参考了y总讲的这题 789. 数的范围 自己是这样写的; class Solution { public: vector<int> searchRange(vector<int>& nums, int target) { vector<int> result(2, -1); int l = 0 阅读全文
posted @ 2024-11-02 19:50
hisun9
阅读(14)
评论(0)
推荐(0)
摘要:
看这样一段程序: // 我的减重程序,lbs是磅的简称 package main import ( "fmt" ) func main() { fmt.Println("My weight on the surface of Mars is ") fmt.Println(112 * 0.3783) 阅读全文
posted @ 2024-11-02 16:31
hisun9
阅读(108)
评论(0)
推荐(0)

浙公网安备 33010602011771号