[编程入门]二进制移位练习-题解(Python代码) 摘要:解题思路: 使用进制转换函数注意事项: 熟记进制转换函数参考代码:if __name__ == '__main__': n = int(input()) t =…… 题解列表 2023年02月13日 0 点赞 0 评论 314 浏览 评分:6.0
大整数乘法(模拟人的计算) 摘要:解题思路:模拟人平时的计算。注意事项:例如:789*123,那么结果最多为3+3=6,即6位。否则最后无进位,结果为5位。参考代码:#include#includeint main(){ ch…… 题解列表 2023年02月13日 0 点赞 0 评论 363 浏览 评分:6.0
计算三角形面积,海伦公式 摘要:解题思路:海伦公式sprt(p(p-a)(p-b)(p-c)),p为三角形的半周长注意事项:涉及距离计算,最好用双精度变量进行存储参考代码:#include <stdio.h>#include <ma…… 题解列表 2023年02月15日 0 点赞 0 评论 330 浏览 评分:6.0
2856: 潜伏者 (C++) 摘要:解题思路: 根据输入建立译码表 检查2、3情况的发生注意事项:参考代码:#include <iostream> // #include <sstream> // #include <c…… 题解列表 2023年02月15日 0 点赞 0 评论 294 浏览 评分:6.0
1671: 小九九 摘要:```cpp #include using namespace std; //输出九九乘法表,乘法的乘积占两位, //并靠左对齐,每个乘法表达式之间有一个空格! //注意:要使用双重循环!…… 题解列表 2023年02月18日 0 点赞 1 评论 138 浏览 评分:6.0
题解 2518: 信息学奥赛一本通T1620-质因数分解 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int isPrime(int n) { int i, k; k = (i…… 题解列表 2023年02月20日 0 点赞 0 评论 252 浏览 评分:6.0
楼上题解太逊了 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n,a,b,tail,head,k[300],q[300][3],p[300…… 题解列表 2023年02月21日 0 点赞 2 评论 251 浏览 评分:6.0
两个写法轻松简洁解决 摘要:```c 数组法: #include #include int main() { int La[105], Lb[105], Lc[210]; int m, n; …… 题解列表 2023年02月21日 0 点赞 0 评论 344 浏览 评分:6.0
蓝桥杯2022年第十三届省赛真题-纸张尺寸(结构体) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>typedef struct{ //定义结构体,构造数据类型z,分别存储长和宽 int l; int w;}z;i…… 题解列表 2023年02月22日 0 点赞 0 评论 319 浏览 评分:6.0
1431: 蓝桥杯2014年第五届真题-分糖果 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cmath> #include <algorithm> using namespace std; #d…… 题解列表 2023年02月23日 0 点赞 0 评论 190 浏览 评分:6.0