题解列表
一看就懂,简单易上手
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,sum,a; while(cin>>n) ……
题解 | 3008: 买笔(简单易懂)
摘要:## 代码
```python
# 方法1
x = int(input())
pen_4 = int(x/4)
surplus = x%4
if(surplus == 3):……
1707: 数据结构-有向无环图的拓扑排序--邻接表 如果有出现50分情况,或许我能帮助到你
摘要:解题思路:这道题是典型的拓扑排序问题,要用到入度问题的话,那么邻接表是个不错的存储选择注意事项:这道题拓扑排序的算法规规矩矩,但是一定要注意输出顺序参考代码:#include <bits/stdc++……
蓝桥杯算法训练VIP-回文数
摘要:解题思路:注意事项:参考代码:import java.nio.channels.ScatteringByteChannel;import java.util.Scanner;public class ……
[编程入门]阶乘求和
摘要:解题思路:注意事项:用long long int, printf里头用%lld参考代码:#include <stdio.h>long long func(int n){ int j; long lon……
1062: 二级C语言-公约公倍 辗转相除法
摘要:解题思路:数学题,把公式带入。注意事项:参考代码:def gcd(x, y): m = max(x, y) n = min(x, y) while m % n: m, n = ……