题解列表

筛选

python编写a%b

摘要:解题思路:跟a+b一样的思路只是改运算符,具体注意事项参照a+b参考代码:while True: try: a,b=map(int,input().strip().split()) print(a……

链表报数问题(Python)

摘要:解题思路:注意事项:参考代码:def find_last_person(n):    people = list(range(1, n + 1))    current = 0    # 当前报数人的……

2787: 有一门课不及格的学生

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d %d", &a, &b);    if (a<60 && b>……

2788: 晶晶赴约会

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    scanf("%d", &a);    if (1==a || 3==a || 5==……

深搜dfs,python不容易过

摘要:d=[(-1,-2),(1,-2),(-2,-1),(2,-1),(-2,1),(2,1),(-1,2),(1,2)] def dfs(x,y,s):     global res     if……

3014: 计算星期几

摘要:``` #include using namespace std; int main(){ int a,b,ans=1,x=1; cin>>a>>b; //cout……