题解列表
抓住那头牛(python)
摘要:解题思路:注意事项:参考代码:def catchCow(n, k): if n == k: # 如果农夫和牛的位置相等,那么花费时间为0 return 0 visited ……
c代码记录之数列排序--水题
摘要: #include
int main()
{
int i,j,n,a[9];
scanf("%d",&n);
for(i……
Knight Moves(python)
摘要:解题思路:注意事项:参考代码:from collections import dequedef knight_moves(n, start, end): directions = [ ……
求s=a+aa+aaa+aaaa+aa...a的值
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,s=0,k,i,q=0; ……
c代码记录之字符串的查找删除
摘要: #include
#include
int main()
{
char a[1000],b[1000],c[1000],temp;
……
c代码记录之蛇形矩阵
摘要: #include
int main()
{
int n,k,i,j,t,m;
while(~scanf("%d",&n)){
……
暴力求解———C语言
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char a[3][30],b[30],c[30]; int i; fo……
set的做法,通俗易懂
摘要:```
#include
#include
#include
#include
#include
using namespace std;
const int N =1000;
int……