随笔分类 - 基础算法
摘要:带分数 数字1~9分别出现且只出现一次这类题目:把9个数分成题目要求的几份即可。再通过sprintf把每个部分拼接起来,成为s字符串。最后判断字符串即可。提示:长度为9,排序后是“123456789”。如果枚举超时可以考虑再多写一个函数,舍去有0的情况、有重复数字的情况。 参考博客:https://
阅读全文
摘要:A - Arpa’s hard exam and Mehrdad’s naive cheat CodeForces - 742A There exists an island called Arpa’s land, some beautiful girls live there, as ugly o
阅读全文
摘要:A - Mishka and Contest Mishka started participating in a programming contest. There are n problems in the contest. Mishka's problem-solving skill is e
阅读全文

浙公网安备 33010602011771号