摘要:
题目链接:点击打开链接A:题意很清晰了,就是让你打表,问你一共多少字符串看起来一样,把每一位的情况数乘起来就可以了注意取模方式:#includeusing namespace std;int main(){ char s[100010]; scanf("%... 阅读全文
摘要:
Day2:1.今天主要学了变量和字符串,跟C语言最大的区别就是,不用定义,直接用students='bql'注意在交互界面,键入students和print(students)是不一样的。前者输出未经格式化的字符串,后者会达到转义字符的效果比如students='bq... 阅读全文
摘要:
emmm本人开了一个新坑,那就是学习python!目前跟着小甲鱼视频学习中:Day1:input(),括号里面是提示字符串,返回值是从键盘读入的值,相当于先printf再scanf。这里的输入需要转成int类型 函数:int()字符串*一个数 结果为字符串输出n倍... 阅读全文
摘要:
题目原文懒得放了,丢个链接:点击打开链接A:平台上有n个槽,然后要往里面放1*1的方块,如果n个槽的底部同时有方块那么所有槽底下的方块同时去掉,然后你得一分!……想起了什么经典游戏呢哈哈哈……数据较小,暴力查找就行:代码如下:#includeusing namespa... 阅读全文
摘要:
Overlooking the captivating blend of myriads of vernal hues, Arkady the painter lays out a long, long canvas.Arkady has a sufficiently... 阅读全文
摘要:
After waking up at hh:mm, Andrew realised that he had forgotten to feed his only cat for yet another time (guess why there's only one ... 阅读全文
摘要:
地球人习惯使用十进制数,并且默认一个数字的每一位都是十进制的。而在PAT星人开挂的世界里,每个数字的每一位都是不同进制的,这种神奇的数字称为“PAT数”。每个PAT星人都必须熟记各位数字的进制表,例如“……0527”就表示最低位是7进制数、第2位是2进制数、第3位是5... 阅读全文
摘要:
B. Conan and Agasa play a Card GameEdogawa Conan got tired of solving cases, and invited his friend, Professor Agasa, over. They decid... 阅读全文
摘要:
As the guys fried the radio station facilities, the school principal gave them tasks as a punishment. Dustin's task was to add comment... 阅读全文
摘要:
Some positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a give... 阅读全文