题解列表

筛选

C语言解决 加密问题

摘要:解题思路:超简单,利用ASCLL代码表,相邻字母间相差1个ASCLL值注意事项:利用了strlen函数,需要#include<string,h>参考代码:#include <stdio.h>#incl……

[编程基础]输入输出练习之格式控制

摘要:解题思路:两种方法1.左对齐:&#39;%-8d&#39;%n 。不加-为右对齐(默认)2.&#39;{:<8d}&#39;.format(n)。>为右对齐,d表示十进制。注意事项:参考代码:a,b,……

编写题解 1267: A+B Problem

摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())#map()方法将字符串转化为整型 print(a+b)……

蓝桥杯2022年第十三届省赛真题-青蛙过河

摘要: ~~~ // 该题目题意为 最小的跳跃距离在满足每个过程中的h【k】 !=0时,k属于【0-n-1】,能过从起点通过 2c次对岸,思路分析: 根据题目意思,很明显想到使用二分查找,因为跳跃距离……

编写题解 2836: 数组逆序重放

摘要:解题思路:逆序:nums[::-1]注意事项:参考代码:n=int(input()) nums=list(map(int,input().split())) #打包为整型数组 for i in n……

判断能否被3、5、7整除代码

摘要:解题思路:注意事项:注意 else if 的使用方法参考代码:#include <stdio.h>#include <stdio.h>int main(){    int m;    scanf("%……

思路简单的c语言啊

摘要:1,原题链接:[修建灌木](https://www.dotcpp.com/oj/problem2657.html "修建灌木") 2,解题思路: 由题意容易找寻规律,若灌木每天从早上到……