1.6k words 1 mins.

⭐️ # 題目敘述 You are given two strings word1 and word2 . Merge the strings by adding letters in alternating order, starting with word1 . If a string is longer than the other, append the additional letters onto the end of the merged string. Return the merged string. # Example 1 Input: word1 = “abc”,...
811 words 1 mins.

⭐️ Time limit: 3.000 seconds # 題目連結 ZeroJudge 題目連結 Online Judge uDebug # 解題技巧 # Solution 解題 / 紀錄 #include <bits/stdc++.h>using namespace std;struct Box { int wid, hgt;} box[6];bool cmp(Box a, Box b) { if (a.wid != b.wid) return a.wid < b.wid; return...