摘要:
看这样一段程序: // 我的减重程序,lbs是磅的简称 package main import ( "fmt" ) func main() { fmt.Println("My weight on the surface of Mars is ") fmt.Println(112 * 0.3783) 阅读全文
摘要:
题目:搜索插入位置 自己尝试了好几种写法: class Solution { public: int searchInsert(vector<int>& nums, int target) { int l = 0, r = nums.size() - 1; while (l <= r) { int 阅读全文
摘要:
题目 自己写的: #include <iostream> #include <algorithm> #include <cmath> using namespace std; const int N = 110; int n, m; int q[N][N], s[N][N]; int main() 阅读全文
摘要:
题目 本人一开始是这样写的: #include <iostream> using namespace std; const int N = 100010; int n; int s[N]; int main() { cin >> n; for (int i = 1; i <= n; i ++ ) { 阅读全文