摘要: 分类:字符串-字符 题目描述: 给定一个单词,你需要判断单词的大写使用是否正确。 我们定义,在以下情况时,单词的大写用法是正确的: 全部字母都是大写,比如"USA"。单词中所有字母都不是大写,比如"leetcode"。如果单词不只含有一个字母,只有首字母大写, 比如 "Google"。否则,我们定义 阅读全文
posted @ 2021-06-11 21:51 LLLLgR 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 秘密分割: #The following function turns an integer into a number of shares given a modulus and a number of parties. def share(value1, parties, prime, coef 阅读全文
posted @ 2021-06-11 21:36 LLLLgR 阅读(335) 评论(0) 推荐(0) 编辑