python最简短做法 解题思路:在一篇博客找到的原理图。可以根据此图设计六个方向,x,y轴方向如图所示。注意事项:可以注意到点变化的方向只有(1,0)、(-1,0)、(0,1)、(0,-1)、(1,1)、(-1,-1),而没有其他的方向如(-1,1),(1,-1)参考代码:d1, 题解列表 2023年01月30日 1 点赞 2 评论 1556 浏览 评分:9.5
1505: 蓝桥杯算法提高VIP-单词个数统计 ```cpp#include#includeusingnamespacestd;intmain(){chara[80];gets(a);intk=0;for(inti=0;i 题解列表 2023年01月30日 0 点赞 0 评论 549 浏览 评分:9.9
1481: 蓝桥杯算法提高VIP-剪刀石头布 ```cpp#includeusingnamespacestd;intmain(){enumcaiquan{shitou,bu,jiandao};inta,b;cin>>a>>b;if(a==shitou&&b==jiandao||a==jiandao&&b==bu||a==bu&&b==shitou 题解列表 2023年01月30日 0 点赞 0 评论 693 浏览 评分:9.9
1480: 模拟计算器 摘要:```cpp #include using namespace std; int main() { int a,b; char c; cin>>a>>b>>c; …… 题解列表 2023年01月30日 0 点赞 0 评论 543 浏览 评分:9.9
菜鸟首次尝试(python)超简单解法 摘要:解题思路:注意事项:参考代码:n=int(input())for _ in range(n): x,y=map(int,input().split()) def realsum(n): …… 题解列表 2023年01月29日 0 点赞 0 评论 605 浏览 评分:8.0
向量点积计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,ans=0; scanf("%d",&n); int a[n]; int b[n]; for(i…… 题解列表 2023年01月29日 0 点赞 0 评论 828 浏览 评分:6.0
二分法,求阶乘 摘要:解题思路:通过规律发现:5!-> end 0 number is 110-> end 0 number is 215->end 0 number is 3…………注意事项:参考代码:import os…… 题解列表 2023年01月29日 0 点赞 0 评论 913 浏览 评分:0.0
1003密码破译 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char arr[20]={0};//定义一个随机长度的字符串数组 sc…… 题解列表 2023年01月29日 0 点赞 2 评论 439 浏览 评分:9.3
1007: [编程入门]分段函数求值(简单易懂) 摘要:```c #include int main() { int x,y; scanf("%d", &x); if (x < 1) { y = x; } else if…… 题解列表 2023年01月29日 0 点赞 0 评论 567 浏览 评分:9.9
编写题解 2839: 石头剪刀布 摘要:解题思路:m[i]表示A,t[i]表示Bq表示A胜得次数,W表示B胜得次数同时注意输入完AB各自的出题规律后要循坏填补后面的对决,即创建一个满足N轮的对局数组注意事项:参考代码:a#include<s…… 题解列表 2023年01月29日 0 点赞 0 评论 901 浏览 评分:9.9