题解列表
1009,好懂的方法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c,d,e,f,g; scanf("%d",&a);……
1481: 蓝桥杯算法提高VIP-剪刀石头布(python)
摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())if a == b: print("0")elif (a == 0 and b == 2) or (a ==……
1014,好懂的方法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n;long long s=0,b=1; scanf("%d",&n); for(……
冒泡会超时了,我用sort(c++)
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,b,a[10000……
输入输出练习之第二个数字(小白易懂版)
摘要:解题思路:这道题还是很简单的了,从main函数开始,定义变量,最后再输入输出就好了。注意事项:在输入的格式中,“%d %d %d"中的格式中间有两个空格,用键盘敲入的时候,输入的数字中间也要有空格,不……
C语言训练-阿姆斯特朗数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
#include<math.h>
int main(){
int a,b,c,d,e;
for(a=2;a<1000;a+……
自定义函数之整数处理
摘要:解题思路:注意事项:参考代码:def input_(): a=list(map(int,input().split())) deal(a)def deal(x): x.sort() ……
基础解法(三个函数找最大值)
摘要:解题思路:定义函数——输入其中三个函数——if语句——输出注意事项:定义是定义四个变量,不是三个,因为第四个变量当一个a与b比较结果的载体,不然又得编写多的if语句参考代码:#include<stdi……