
String
love music.
中山大学计算机博士在读,曾就职于腾讯等公司,目前从事AI多模态大模型研究。
展开
-
PAT甲级 1073 Scientific Notation (20 分)String的使用
1073 Scientific Notation (20 分) Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+-][1-9].[0-9]+E[+-...原创 2018-10-06 18:46:30 · 127 阅读 · 0 评论 -
PAT甲级 1069 The Black Hole of Numbers (20 分)STL的使用
1069 The Black Hole of Numbers (20 分) For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order...原创 2018-10-05 19:35:18 · 235 阅读 · 0 评论 -
华为[编程题] 简单错误记录 (string的使用)
[编程题] 简单错误记录 时间限制:1秒 空间限制:65536K 开发一个简单错误记录功能小模块,能够记录出错的代码所在的文件名称和行号。 处理: 1.记录最多8条错误记录,对相同的错误记录(即文件名称和行号完全匹配)只记录一条,错误计数增加;(文件所在的目录不同,文件名和行号相同也要合并) 2.超过16个字符的文件名称,只记录文件的最后有效16个字符;(如果文件名不同,而只是文件名的后1...原创 2018-12-28 23:42:28 · 299 阅读 · 2 评论 -
华为[编程题] 扑克牌大小 (string的使用)
[编程题] 扑克牌大小 时间限制:10秒 空间限制:131072K 扑克牌游戏大家应该都比较熟悉了,一副牌由54张组成,含3~A,2各4张,小王1张,大王1张。牌面从小到大用如下字符和字符串表示(其中,小写joker表示小王,大写JOKER表示大王):) 3 4 5 6 7 8 9 10 J Q K A 2 joker JOKER 输入两手牌,两手牌之间用“-”连接,每手牌的每张牌以空格...原创 2018-12-28 23:47:24 · 502 阅读 · 0 评论