题解 1004: [递归]母牛的故事 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>int year(int n) { if (n <= 4) { ret…… 题解列表 2024年01月04日 0 点赞 0 评论 111 浏览 评分:0.0
自由落体问题 摘要:解题思路: 在一次落地之后,下一次落地前弹起和下落的距离和为上一次下落的距离 参考代码: ```c #include int main() { int n; scanf("%d",…… 题解列表 2024年01月04日 0 点赞 0 评论 220 浏览 评分:0.0
抓住那头牛(python) 摘要:解题思路:注意事项:参考代码:def catchCow(n, k): if n == k: # 如果农夫和牛的位置相等,那么花费时间为0 return 0 visited …… 题解列表 2024年01月04日 0 点赞 0 评论 192 浏览 评分:0.0
c代码记录之数列排序--水题 摘要: #include int main() { int i,j,n,a[9]; scanf("%d",&n); for(i…… 题解列表 2024年01月04日 0 点赞 0 评论 246 浏览 评分:0.0
Knight Moves(python) 摘要:解题思路:注意事项:参考代码:from collections import dequedef knight_moves(n, start, end): directions = [ …… 题解列表 2024年01月04日 0 点赞 0 评论 122 浏览 评分:0.0
求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,s=0,k,i,q=0; …… 题解列表 2024年01月04日 0 点赞 0 评论 215 浏览 评分:0.0
遍历素数,然后查找 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main() { int x; cin >> x; ve…… 题解列表 2024年01月05日 0 点赞 0 评论 122 浏览 评分:0.0
c代码记录之字符串的查找删除 摘要: #include #include int main() { char a[1000],b[1000],c[1000],temp; …… 题解列表 2024年01月05日 0 点赞 0 评论 218 浏览 评分:0.0
c代码记录之蛇形矩阵 摘要: #include int main() { int n,k,i,j,t,m; while(~scanf("%d",&n)){ …… 题解列表 2024年01月05日 0 点赞 0 评论 163 浏览 评分:0.0
暴力求解———C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[3][30],b[30],c[30]; int i; fo…… 题解列表 2024年01月05日 0 点赞 0 评论 129 浏览 评分:0.0