题解列表

筛选

字符串合并-strcat

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>intmain(){ chars[2……

转化为数学问题

摘要:解题思路:A/(B+1)+1<V<A/B注意事项:参考代码:#include<stdio.h>int main (){int i,n,min=-1,max=999999999,……

SARS病毒C++非常简单

摘要:**直接上到码嗨嗨嗨**```cpp#include #include using namespace std;const long long MOD = 1000000007……

很容易理解的一种做法

摘要:解题思路:注意事项:注意“==”和“=”参考代码:a,b = map(int,input().split())if a >= 60: a = 1else: ……

简单讲讲自己的思路

摘要:def a(n): #当年份小于等于4时,那就只有刚开始的那头母牛在生崽,所以直接输出数量即可 if n <= 4: ……

数位排序简单写法:sorted函数

摘要:解题思路:int(i)for i in str(num):生成器表达式,用于将数字整体分开,看成其组成部分;1.str(num)用于将数字变为字符串,使其不再具有数字的意义,如123变为”123“。2……