信息学奥赛一本通T1499-最短路计数 堆优化+dijkstra 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;#definell&nb…… 题解列表 2025年03月12日 1 点赞 0 评论 514 浏览 评分:0.0
刚学STL的小白 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;map<char,int> mp;int a,b = 100…… 题解列表 2025年03月12日 0 点赞 0 评论 332 浏览 评分:0.0
1051: [编程入门]结构体之成绩统计2 摘要:```c#include struct student{ char id[100]; char name[100]; int a; int b; int c;}; …… 题解列表 2025年03月12日 0 点赞 0 评论 663 浏览 评分:0.0
考虑质数与非质数两种情况即可 摘要:只能切下质数长度的木段,且1和0直接判断先手的人输,不妨直接设置一个数组a[100010]来表示结果,1.输入n,若n为质数,a[n]=1;2.若n不是质数,我们就需要考虑比n小的质数,如果有…… 题解列表 2025年03月12日 3 点赞 0 评论 595 浏览 评分:0.0
一目了然- 亲和数用while、for 摘要:解题思路:注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ int&nb…… 题解列表 2025年03月12日 0 点赞 0 评论 171 浏览 评分:0.0
1049: [编程入门]结构体之时间设计 摘要:```c#include struct Data{ int year; int month; int day;}; int main() { struct…… 题解列表 2025年03月12日 1 点赞 0 评论 619 浏览 评分:0.0
题解 2774: 计算三角形面积(海伦公式)-详解 摘要:解题思路:1.输入部分:使用scanf函数读取三个点的坐标。2.计算三边长度:使用两点间距离公式(x2−x1)2+(y2−y1)2计算三角形的三边长度。…… 题解列表 2025年03月11日 2 点赞 0 评论 745 浏览 评分:10.0
这个代码简单些 摘要:解题思路:注意事项:可以输入输出多组数据,列题有误导,所以要加上跳出条件参考代码:while True: try: n=…… 题解列表 2025年03月11日 0 点赞 0 评论 510 浏览 评分:0.0
-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:n=int(input())sum=1for i in range(1,n+1): sum=sum*iprint(sum) &nbs…… 题解列表 2025年03月11日 0 点赞 0 评论 269 浏览 评分:0.0
< 蓝桥杯C++ > 2024年第十五届省赛真题-宝石组合 摘要:**参考代码链接:[[第十五届蓝桥杯C++B组真题-宝石组合]][1]**[1]: https://blog.dotcpp.com/a/104419---# 题目思路题目公式 …… 题解列表 2025年03月11日 5 点赞 0 评论 1570 浏览 评分:7.0