用筛法求之N内的素数 摘要:参考代码:#include<iostream>#include<math.h>using namespace std;int main() { int num,k,i; cin>>num; //暴力法…… 题解列表 2022年03月19日 0 点赞 0 评论 404 浏览 评分:0.0
双指针 找单词 摘要:```cpp #include using namespace std; string s1; int main(){ getline(cin, s1); int sum …… 题解列表 2022年03月19日 0 点赞 0 评论 441 浏览 评分:0.0
图论拓扑排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> //就是一个字符串关系型的拓扑排序 using namespace std; struct node{ int…… 题解列表 2022年03月19日 0 点赞 0 评论 887 浏览 评分:0.0
蓝桥杯算法提高VIP-快速幂 摘要:基于二进制递归的解题思路#include<iostream>using namespace std;long long a,b;int p;long long pow_mod(long long a,…… 题解列表 2022年03月19日 0 点赞 0 评论 538 浏览 评分:0.0
汽水瓶【递归】 摘要:```java //汽水瓶 //这时候剩2个空瓶子。然后你让老板先借给你一瓶汽水,喝掉这瓶满的,喝完以后用3个空瓶子换一瓶满的还给老板 import java.util.Scanner; pu…… 题解列表 2022年03月19日 0 点赞 0 评论 457 浏览 评分:0.0
编写题解 1025: [编程入门]数组插入处理(初始解题,包含数组、循环、判断) 摘要:# 原题链接 **[编程入门]数组插入处理 - C语言网 https://www.dotcpp.com/oj/problem1025.html。** ## 解题思路 **1、按照题…… 题解列表 2022年03月19日 0 点赞 0 评论 496 浏览 评分:0.0
编写题解 1085: A+B for Input-Output Practice (I) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while (scanf("%d %d",&a,&b)!=EOF) { …… 题解列表 2022年03月19日 0 点赞 0 评论 415 浏览 评分:0.0
编写题解 1086: A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int a,b; cin>>n; …… 题解列表 2022年03月19日 0 点赞 0 评论 480 浏览 评分:0.0
编写题解 1087: A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b){ …… 题解列表 2022年03月19日 0 点赞 0 评论 430 浏览 评分:0.0
编写题解 1088: A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int a; while(true){…… 题解列表 2022年03月19日 0 点赞 0 评论 367 浏览 评分:0.0