题解列表
编写题解 2247: 蓝桥杯算法提高-输出三个整数的最大数
摘要:```cpp
#include
using namespace std;
int max(int a,int b,int c){
couta>>b>>c;
max(a,b,c);
r……
一元二次方程--------------C语言
摘要:解题思路:利用求根公式注意事项:导入数学库<math.h>参考代码:#include <stdio.h>
#include <math.h>
int main()
{
float a, b,……
使用按位与运算求解委派任务
摘要:方法1:使用按位与运算假设0表示不去,1表示去,很显然这是一个二进制数,因此可以使用按位与运算求解,如果二进制数#include int main()
{
int a, b, c, d, ……
6行:万花丛中过,片叶不沾身
摘要:解题思路:注意事项:参考代码:word=input()result=""for i in range(len(word)-1): result += chr(ord(word[i])+ord(w……
12行:万花丛中过,片叶不沾身
摘要:解题思路:注意事项:参考代码:n=int(input())def rule(p1,p2): if p1==p2: return "Tie" elif (p1=="Scisso……
优质题解,回归真神的初始途径
摘要:解题思路:利用字典,统计每个字母出现的次数注意事项:参考代码:word=input()dic={}for le in word: if le in dic: dic[le]+=1 ……
优质题解,回归真神的初始途径
摘要:解题思路:注意事项:参考代码:chuan=input()j=0for fu in chuan: if fu.isdigit(): j+=1print(j)……
优质题解,回归真神的初始途径
摘要:解题思路:注意事项:参考代码:n=int(input())li=list(map(int,input().split()))shul=[0]*4for l in li: if 0<=l<=18:……