参考:https://ww2.mathworks.cn/help/matlab/ref/num2str.html?searchHighlight=num2str&s_tid=doc_srchtitle num2str 将数字转换为字符数组 全页折叠 语法 s = num2str(A) s = num2str(A,precision) s = num2str(A,formatSpec) 说明 示例 s = num2str(A) 将数值数组转换为表示数字的字符数组.输出格式取决于原始值的量级.n…
Print a binary tree in an m*n 2D string array following these rules: The row number m should be equal to the height of the given binary tree. The column number n should always be an odd number. The root node's value (in string format) should be put i…
首次正式的$Codeforces$比赛啊,虽然滚粗了,然而终于有$rating$了…… #A Phone Numbers 签到题,然而我第一次写挂了(因为把11看成8了……) 只需要判断一下有多少个8,再特判一下能存在多少个号码就好了 #B Maximum Sum of Digits 我的做法是暴力打表找规律,发现全都是向下取除首位外其他都是9的数作为一个加速,然后就没了 然而没发现0也是可行的……又WA了一次 #C Maximum Subrectangle 苦像$20min$没有思路,只…