1585: 蓝桥杯算法训练VIP-链表数据求和操作 摘要:```cpp #include using namespace std; int main() { int a,b,x=0,y=0; while(cin>>a>>b) …… 题解列表 2023年01月31日 0 点赞 0 评论 340 浏览 评分:6.0
字符替换C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char beitihuan,tihuanzhe; char a[31]; …… 题解列表 2023年02月01日 0 点赞 0 评论 579 浏览 评分:6.0
1252: 统计立方数 摘要:```cpp #include using namespace std; bool check(int n) { for(int i=1;i*i*i>n&&n) i…… 题解列表 2023年02月03日 0 点赞 0 评论 321 浏览 评分:6.0
编写题解 2858: 整理药名 摘要:参考代码:#include<bits/stdc++.h>using namespace std;char s[1001];int main(){ int l,n; cin>>n; f…… 题解列表 2023年02月09日 0 点赞 6 评论 315 浏览 评分:6.0
题解 2811: 救援 摘要:解题思路:注意事项:参考代码:import math # 调用数学模块 t = 0 n = int(input()) #屋顶数 for i in range(n): a = …… 题解列表 2023年02月09日 0 点赞 0 评论 435 浏览 评分:6.0
2128: 信息学奥赛一本通T1264-合唱队形 摘要:解题思路:运用动态规划解此题!!!注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int a[1005],b[1005],c[1005…… 题解列表 2023年02月10日 0 点赞 0 评论 301 浏览 评分:6.0
1000: [竞赛入门]简单的a+b 摘要:参考代码:while True: try: a,b=map(int,input().strip().split()) print(a+b) except: break…… 题解列表 2023年02月11日 0 点赞 0 评论 1671 浏览 评分:6.0
[编程入门]二进制移位练习-题解(Python代码) 摘要:解题思路: 使用进制转换函数注意事项: 熟记进制转换函数参考代码:if __name__ == '__main__': n = int(input()) t =…… 题解列表 2023年02月13日 0 点赞 0 评论 413 浏览 评分:6.0
大整数乘法(模拟人的计算) 摘要:解题思路:模拟人平时的计算。注意事项:例如:789*123,那么结果最多为3+3=6,即6位。否则最后无进位,结果为5位。参考代码:#include#includeint main(){ ch…… 题解列表 2023年02月13日 0 点赞 0 评论 446 浏览 评分:6.0
计算三角形面积,海伦公式 摘要:解题思路:海伦公式sprt(p(p-a)(p-b)(p-c)),p为三角形的半周长注意事项:涉及距离计算,最好用双精度变量进行存储参考代码:#include <stdio.h>#include <ma…… 题解列表 2023年02月15日 0 点赞 0 评论 433 浏览 评分:6.0